Using INDEX/MATCH, but not returning a blank value
Here's what I'm trying to figure out, and hopefully you can assist.
I have a form that adds a new row each time it's completed. Not every field is required though. Using a second sheet, and the INDEX / MATCH functions, I have a sheet that shows the most recent entry for each site. But, when a field on the form (and thus the initial sheet) is blank, it shows a blank on the Master Sheet. I would like for it to show the previous result if the current result is blank. Is this possible?
I am currently using the formula: INDEX({Power_Column}, MATCH(Site@row, {Site_Column}, 0))
whereas "Power_Column" is a Reference Column and "Site" is the column that I am using as a MATCH.
Any suggestions?
Answers
-
@Frenla02 Try this...
if(isblank(INDEX({Power_Column}, MATCH(Site@row, {Site_Column}, 0))), INDEX({Power_Column}, MATCH(Site@row, {Site_Column}, 0)-1)).
OR
if(isblank(INDEX({Power_Column}, MATCH(Site@row, {Site_Column}, 0))), INDEX({Power_Column}, MATCH(Site@row, {Site_Column}, 0)+1))
I'm not sure if you need to subtract 1 or add 1 to the index number returned by Match to get the value below the blank one. I also didn't put this in Smartsheet to try it or check that my parentheses are correct :)
Darren Mullen, join the Smartsheet Guru Elite
Get my 7 Smartsheet tips here
Author of: Smartsheet Architecture Solutions
-
Darren,
Thank you for the quick response. I was able to get the formula into Smartsheets (and it accepted it after some minor adjustments), but now the whole column is blank despite there being data on the initial sheet. I tried both the +1 and -1 formulas.
=
IF(ISBLANK(INDEX({Power_Column}, MATCH(Site@row, {Site_Column}, 0))), INDEX({Power_Column}, MATCH(Site@row, {Site_Column}, 0) - 1))
Any idea what I'm doing wrong?
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.1K Get Help
- 444 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 5K Ideas & Feature Requests
- 83 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 497 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!