Excel Formula Question 2

Associate
Joined
15 Jul 2008
Posts
1,225
Sorry guys, thought I better start a new thread as no one will read once other one solved (Many Thanks)

I have a colunm with loads of TRUE or FALSE in, and the same in another so say column A and B. I want a cell that will count which one has most TRUE and put a A or B in to say which has most. I know I got to use COUNT but I spent 2 hours messing around last night and cant get anything to work.

Cheers

Sheldon
 
Last edited:
Associate
OP
Joined
15 Jul 2008
Posts
1,225
Oki guys I know Im a pain but this one I dont think is my fault!

I have in AQ9 : =AND(AP9=TRUE,AM9=TRUE)

AP9 and AM9 have formula in that then display TRUE.

Why does AQ9 still show FALSE?
 
Soldato
Joined
17 Aug 2003
Posts
20,158
Location
Woburn Sand Dunes
make sure your TRUE and FALSEs are consistent, and by that i mean if you are checking for TRUE or FALSE then make sure your formulas are returning TRUE or FALSE and not "TRUE" or "FALSE" because they are two different things; "TRUE"/"FALSE" are strings and TRUE/FALSE are boolean values.
 
Last edited:

HeX

HeX

Soldato
Joined
20 Jun 2004
Posts
12,018
Location
Huddersfield, UK
As above, it's because in your IF statements you've returned "TRUE" as text rather than a boolean value.

If you change your IF statement to just return TRUE (no quotation marks) then your AND formula will work.

Or as others have said you can amend your AND formula to look for the text TRUE.


In a nutshell "TRUE" and TRUE are different things in Excel :)
 
Back
Top Bottom