tjlaser shepard
New Member
- Joined
- Jun 1, 2016
- Messages
- 7
What factors determine whether the index/match function combination to returns “” rather than “0” when the referenced cell is blank?
I set up a spreadsheet that tracks changes to expected project revenue by month. The reference table [NRSDATA] has project numbers as the rows [SREFROWS] and months as the columns [SREFCOLS]. If a project has no changes for a given month, that cell is left blank in the reference table. On another sheet, I list all the months in SREFROWS in column “A” and the user enters the project number in B1. Next to each month in in column B (starting with B3) I have the following formula:
=IFNA(INDEX(NSRDATA,MATCH($B$1,SREFROWS,0),MATCH(A3,SREFCOLS,0)),"")
If there is no change for that project in that month, the reference cell will be blank and this formula should return “”. Based on what the index/match formula returns, I have this formula in column E:
=IF(ISNUMBER(B3),1,"")
And then a macro that hides all the rows that have blank cells in column E.
All of this worked perfectly for the historical data, but all of the new projects I have added to the reference table since setting all of this up return “0” for every month where the reference is blank. Does anyone know why this would/could be the case?
Thanks
I set up a spreadsheet that tracks changes to expected project revenue by month. The reference table [NRSDATA] has project numbers as the rows [SREFROWS] and months as the columns [SREFCOLS]. If a project has no changes for a given month, that cell is left blank in the reference table. On another sheet, I list all the months in SREFROWS in column “A” and the user enters the project number in B1. Next to each month in in column B (starting with B3) I have the following formula:
=IFNA(INDEX(NSRDATA,MATCH($B$1,SREFROWS,0),MATCH(A3,SREFCOLS,0)),"")
If there is no change for that project in that month, the reference cell will be blank and this formula should return “”. Based on what the index/match formula returns, I have this formula in column E:
=IF(ISNUMBER(B3),1,"")
And then a macro that hides all the rows that have blank cells in column E.
All of this worked perfectly for the historical data, but all of the new projects I have added to the reference table since setting all of this up return “0” for every month where the reference is blank. Does anyone know why this would/could be the case?
Thanks