ISNUMBER acting odd

MiniFav

Board Regular
Joined
Mar 10, 2020
Messages
81
Office Version
  1. 365
Platform
  1. Windows
Could some one explain why cell W3 is counted as a number, yet W5 is not?
both are formatted to [h]:mm
I potentially get data ranging from 00:00 to 9999999:59, but ISNUMBER seems to stop working at 9999:59.

Any help with this?

Aircraft AD template Remake V13.xlsx
W
39600:45
4a
510000:00
(REPEAT) - REPEAT
Cells with Conditional Formatting
CellConditionCell FormatStop If True
textNO
W2:W1000Expression=IF($W2="","",IF(ISNUMBER($W2),FALSE,TRUE))textNO
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
There is nothing wrong with ISNUMBER, when any time value greater than or equal 10000:00:00 is manually entered into a cell it will be treated as text & not a number.
 
Upvote 0
There is nothing wrong with ISNUMBER, when any time value greater than or equal 10000:00:00 is manually entered into a cell it will be treated as text & not a number.
Is there anyway around this?

I just need to highlight anything which falls outside of 00:00 - 9999999:59.
 
Upvote 0
Would this suffice?
Note that currently it does not highlight row 8 which is outside your range but I thought that your initial post may have meant you would not get a value like that anyway?
Also, there are other values that would not get picked up by this formula (eg 12DEC:23) due to the nature of ISNUMBER.
To get a more robust check you would possibly need to use vba.

22 06 16.xlsm
A
1150:00:00
210000:00
39999:59:00
410000:00
5a
615:12:22
79999999:59
89999999999:11
912:12:23:33
1012:12xxx
CF
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A1:A10Expression=NOT(OR(ISNUMBER(A1),AND(LEN(A1)-LEN(SUBSTITUTE(A1,":",""))=1,ISNUMBER(LEFT(A1,FIND(":",A1)-1)+0),ISNUMBER(REPLACE(A1,1,FIND(":",A1),"")+0))))textNO
 
Upvote 0
Solution
Would this suffice?
Note that currently it does not highlight row 8 which is outside your range but I thought that your initial post may have meant you would not get a value like that anyway?
Also, there are other values that would not get picked up by this formula (eg 12DEC:23) due to the nature of ISNUMBER.
To get a more robust check you would possibly need to use vba.

22 06 16.xlsm
A
1150:00:00
210000:00
39999:59:00
410000:00
5a
615:12:22
79999999:59
89999999999:11
912:12:23:33
1012:12xxx
CF
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A1:A10Expression=NOT(OR(ISNUMBER(A1),AND(LEN(A1)-LEN(SUBSTITUTE(A1,":",""))=1,ISNUMBER(LEFT(A1,FIND(":",A1)-1)+0),ISNUMBER(REPLACE(A1,1,FIND(":",A1),"")+0))))textNO
That works great, Thank you.
 
Upvote 0

Forum statistics

Threads
1,215,409
Messages
6,124,743
Members
449,186
Latest member
HBryant

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