In the image I have column B that is filling in 0's on the data I wish to remove and display in column D. So from the example in D I would like to see D2=2, D3=6, & D4=7. The code as I have it works if B has true blank cells in where the 0's are, not "" blanks the functions return.
I tried finding a way to have the function that generates these to make true blanks for this to work but that doesn't seem possible from what I saw on the web. So I need help converting this to remove the 0's instead as I couldn't get Match() to work in place of the isblank().
The data is randomly generated so the values won't always be the same and by the end of the project there will be close to 1,000 cells in the range it will be checking against.
Here is the line of code used
{=IFERROR(INDEX($B$2:$B$17, SMALL(IF(ISBLANK($B$2:$B$17), "", ROW($B$2:$B$17)-MIN(ROW($B$2:$B$17))+1), ROW(A1))), "")}
I am using this as an array with ctrl+shift+enter.
example.jpg
Thanks in advance for help on how to make this happen.
Bookmarks