Forum Discussion

AnEntree's avatar
AnEntree
Copper Contributor
Aug 23, 2021

Very strange formatting affecting match function

TLDR: Look at the video link.

My match function is acting very strange. The formula is below. Basically, it's supposed to ignore zeros and return the cell number of the first number in a range. However, it's still counting the zeros. These are some things I tried to make it not count the formulas

- change the cells formating from general to number
- copy the cells and paste on the values (this deletes the formulas in the cells while keeping the values)

Neither worked. The only way the match function works is if I go manually enter a zero in every cell. That's the only time the function will ignore the zeros. Of course, I have thousands of zeros it needs to ignore, so this solution isn't viable.

 

What's going on? Please help.

 

Here's a video to show it in action: https://youtu.be/VP_ai0o9Raw

 

=MATCH(TRUE,AE4:AP4>0,0)
another way to write it but still the same problem:
=MATCH(TRUE,INDEX(AE4:AP4>0,0),0)

 

1 Reply

  • Detlef_Lewin's avatar
    Detlef_Lewin
    Silver Contributor

    AnEntree 

    If you check the cells with ISNUMER() then it will spill out FALSE because your formulas evaluate to "0" and not to 0.

     

Resources