INDEX/MATCH - I want to return a blank cell if another cell is also blank
Hello, thanks in advance for the help.
I am using a DISTINCT formula.
Then I have an INDEX/MATCH formula in the next cell, pulling in from a different sheet. I have the IFERROR part programmed, but I would also like it to give a blank cell result if there is not a number in the "Harvest Batch Name" column. This way, If I haven't yet assigned a name, it won't pull in anything for the "Immature plant batch UID". Is there another part of the function that will allow me to tell it to leave it blank if the other cell is also blank?
Thanks so much!
Answers
-
Yes! You can add an IF statement at the very beginning before your formula to first check if the cell is blank:
=IF([HARVEST BATCH NAME]@row = "", "", formula
Let me know if that makes sense or if you'd like to see the full formula spelled out.
Cheers,
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
-
@Genevieve P. I apologize, but I do need it spelled out for me. I tried to figure it out, but I am still pretty green when it comes to formulas.
Thanks so much.
-
No problem at all 🙂
=IF([HARVEST BATCH NAME]@row = "", "", IFERROR(INDEX({IMMATURE BATCH ID}, MATCH([HARVEST BATCH NAME]@row, {HARV BATCH NAME}, 0)), ""))
This way the formula will first look to see if the cell is blank or = "", then if it is, it will return a blank cell, "", otherwise if that cell is not blank, it will then go through your Index(Match formula.
Let me know if this now works for you!
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
-
That worked
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
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!