Just about every formula i type, excel says it needs apostrophes. Why? For example, =IF(ISNUMBER(06)) and format is set to fill to YELLOW. I get told there is a problem with the formula to use an apostrophe.
Just about every formula i type, excel says it needs apostrophes. Why? For example, =IF(ISNUMBER(06)) and format is set to fill to YELLOW. I get told there is a problem with the formula to use an apostrophe.
IF(logical_test, value_if_true, [value_if_false])
logical_test (required) - The condition you want to test.
value_if_true (required) - The value that you want returned if the result of logical_test is TRUE.
value_if_false (optional) - The value that you want returned if the result of logical_test is FALSE.
your logical_test is : ISNUMBER(06) = always TRUE
but you forgot about value_if_true and value_if_false so function IF() doesn't know what to show.
edit:
but if you want to check number or not number enough to use =ISNUMBER(A1) (cell address change suitable). Result will be TRUE/FALSE so it will enough for CF
Last edited by sandy666; 03-17-2016 at 11:29 AM.
I am trying to fill a cell yellow if it is over 0, but ignore 0 and blank cells that have formulas.
for CF: =AND(A1>0,A1<>"")
Conditional Formatting works only on TRUE or FALSE, so you only need to structure your formulas to return that...
=IF(ISNUMBER(06))
just needs to be...
=ISNUMBER(06)
Sandy's suggestion should work for you
1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
2. If your question is resolved, mark it SOLVED using the thread tools
3. Click on the star if you think someone helped you
Regards
Ford
Thanks for that Tony, good to know![]()
You can use all three conditions: =AND(ISNUMBER(A1),A1>0) . why three? because A1<>"" is included in A1>0
so if:
A1 = xyz (text) result = FALSE
A1 = 0 or -123 result = FALSE
A1 > 0 result = TRUE
check logical of AND function
Last edited by sandy666; 03-17-2016 at 02:10 PM.
----------
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks