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!
-
Happy to help. 👍️
-
@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
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 494 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!