IF with INDEX / MATCH

Hi. I use INDEX/MATCH regularly, but want to add an "IF" statement and am getting #UNPARSEABLE, and would like your help.
I'd like to pull the "F Name" from Sheet 2 into Sheet 1, when the "Info Level" in Sheet 2 = "Primary".
This formula returns #UNPARSEABLE:
=IF({Sheet 2 Info Level Range} = "Primary"), INDEX({Sheet 2 F Name Range}, MATCH([Customer #]@row, {Sheet 2 Customer # Range}, 0))
Thanks in advance for your help!
Mary
Best Answer
-
It sounds like you need an INDEX/COLLECT.
=INDEX(COLLECT({Name Range}, {Customer Range}, @cell = [Customer #]@row, {Level Range}, @cell = "Primary"), 1)
Answers
-
It sounds like you need an INDEX/COLLECT.
=INDEX(COLLECT({Name Range}, {Customer Range}, @cell = [Customer #]@row, {Level Range}, @cell = "Primary"), 1)
-
Oh my goodness!!! Wonderful! Amazing. Thank you!
-
@Paul Newcome hi Paul hope you're well
i tried to imitate your formula but it returns as #invalid value
my formula:
=INDEX(COLLECT({Commercials Master sheet Range 1}, {Commercials Master sheet Range 3}, @cell = Building@row, {Commercials Master sheet Range 2}, @cell = "Y"), 1)
not sure what im doing wrong
can you please advise
-
@Maz Uddin What does this give you?
=COUNTIFS({Commercials Master sheet Range 3}, @cell = Building@row, {Commercials Master sheet Range 2}, @cell = "Y")
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.8K Get Help
- 474 Global Discussions
- 205 Use Cases
- 516 Announcements
- 5.5K Ideas & Feature Requests
- 87 Brandfolder
- 157 Just for fun
- 82 Community Job Board
- 521 Show & Tell
- 36 Member Spotlight
- 3 SmartStories
- 309 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!