Removing "#NUM!" Error

Brass Contributor

I don't understand what I am doing wrong.  Can someone please help!  Working on office 365, and making a table to consolidate data, and remove spaces.  My formula works (as far as data), and I watched a guy on youtube do the same exact formula.  His worked... mine, not so well!   Why will excel not see the ,"", and make it blank?

image001.png

6 Replies

@Budman36 

Better wrap your INDEX formula with IFERROR, i.e.

=IFERROR(INDEX(...),"")

 

@Sergei Baklan 

 

Thank you so much for responding.  Would I put my code in the "..." part of your example?  

 

B.

@Budman36 

=IFERROR(INDEX($E$2:$E396,.. till end of INDEX pat),""). Remove IF with conditions at all.

@Sergei Baklan 

 

OMG!!! Thank you so much!!!   That worked.  I was going crazy trying to figure that out.  Watching youtube videos, etc.   Hard to try and google an issue of coding when you can't explain what it is doing wrong!

 

thank you soooo much and have an awesome day! 

 

B. 

@Budman36 , you are welcome, glad to help

@Budman36 

I think that the problem is on your first argument of the IF function... It states that the formula should work only for the amount of rows that have data in it. It's a nice approach, but if the data you're looking at are not hardcoded data (if they come form formulas) the COUNTA function still counts the "empty" cells. So instead of stopping the formula where the cells are empty, he repeats it for as many rows as you have applied your other formulas to. Indeed, as Sergei Baklan said, it's better just to wrap it with and IFERROR.