• 460K Members
• 11.7K Online
• 558K Conversations

Contributor

# Removing &quot;#NUM!&quot; Error

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?

6 Replies

# Re: Removing &quot;#NUM!&quot; Error

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

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

# Re: Removing &quot;#NUM!&quot; Error

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

B.

# Re: Removing &quot;#NUM!&quot; Error

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

# Re: Removing &quot;#NUM!&quot; Error

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.

Highlighted

# Re: Removing &quot;#NUM!&quot; Error

@Budman36 , you are welcome, glad to help

# Re: Removing &quot;#NUM!&quot; Error

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.

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
29 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies