Unexpected results

normpam

Active Member
Joined
Oct 30, 2002
Messages
354
If I apply conditional formatting to a group of cells to make any number bold if it is greater than 10,000 it works fine. But I find that any cells with labels in them also turned bold. I tried to evaluate this in two ways, but come up with weird results. If I put the letter "u" in four cells and sum them, the sum is zero, which I expected. But if I write the formula =if(B4>10000,"Y","N"), Excel will look at the character in B4 and give me the result of "Y"! This would indicate that the letter "U" has a value greater than 10,000, even though when I sum four of them together the value is zero?

Any ideas?

Thanks.
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Go back to your formula in conditional formatting and make sure excel didn't put quotes around it. This would surpress you formula and basically evaluate everything as true.
 
Upvote 0
The letter u is greater than 10000 in the sort order (numbers first, letters last) in the same way that B is greater than A.

Try something like:

=IF(AND(ISNUMBER(B4),B4>10000),"Y","N")
 
Upvote 0
Good call Andrew. I was guilty again of not ready the question. Another route would be
changing
B4>10000
to
(B4+0)>10000

which would evaluate to error to the worksheet, but wouldn't kick off a true in conditional formatting.
This message was edited by IML on 2002-11-01 13:42
 
Upvote 0
Thanks for the info. I'm still a little confused about one thing. If the letter "U" has a value, why does the sum of four "U"s come out to zero?
 
Upvote 0
Letter "U" has an ASCII value which is returned by the CODE worksheet function.

=CODE("U") returns 85

The SUM worksheet function only operates on numeric data, and clearly "U" is text.

Perhaps you would benefit from a better understanding of collating (or sort) order... See the Excel Help topic for "Default sort orders".
 
Upvote 0

Forum statistics

Threads
1,213,520
Messages
6,114,099
Members
448,548
Latest member
harryls

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