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
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 141 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!