Double Quote IF bug - Infinitely large number

Ryan C

New Member
Joined
Oct 14, 2015
Messages
8
I'm running a MAX(IF( on a range of cells where the IF range has to be over a certain number. The IF range is calculated with a lot of double quotes "" to represent blank cells.

For some reason when running an if test on a "" cell excel counts the "" cell as an infinitely large number.
For example:
=IF(CELL>9999999999999999999999999999999,"yes","no")
Returns a "yes" result.

Firstly: What, why is excel doing this?

Secondly:
My actual equation is: (ctrl+shift+enter) =MAX(IF(F4:F142631>3.9,D4:D142631))
Is there a solution better than converting all the numbers in the F range to negative and modifying the equation to: =MAX(IF(F4:F142631<3.9,D4:D142631))?
While this works the information in the F range is useful and would likely be confusing to people as to why they are negative values.

Thanks for your help
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

There is no bug involved here.

Firstly: What, why is excel doing this?

21 10 18.xlsm
A
1cat
24
3dog
42
Sample


If you were to manually sort the values above would you say cat, dog, 2, 4 or would you say 2, 4, cat, dog?
Without some sort of 'rule' about comparing text and numbers, either could be correct.
Excel has simply adopted the rule that (any) text is always greater than (any) numbers. Therefore in your formula "" (being a text value) is greater than 3.9

Is there a solution better than converting all the numbers in the F range to negative
Yes, one way is to try this (C+S+E unless using Microsoft 365)

Excel Formula:
=MAX(IF(F4:F142631<>"",IF(F4:F142631>3.9,D4:D142631)))
 
Upvote 0

Forum statistics

Threads
1,214,590
Messages
6,120,423
Members
448,961
Latest member
nzskater

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top