Help with True/False Formula

McNeil87

Board Regular
Joined
Dec 6, 2019
Messages
55
Office Version
  1. 2016
Platform
  1. Windows
  2. MacOS
Hello!

Am stumped how to fix this formula, in which my result returns 'True', but it should return False. =IF(AG2=True, IF(AH2=TRUE,TRUE,FALSE),TRUE). The result brings True, but it actually needs to be False (for this specific case). Am I missing a 'False' statement after the first logical test? Any recommendations how I should write this would be great. All the data returns True, and that is not correct.

Thank you!
 

Attachments

  • 2019-12-09_15h33_55.png
    2019-12-09_15h33_55.png
    33.2 KB · Views: 21

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Hi,

Still not getting it to work. This is how the formula is set up, but it is returning all 'TRUE' Statements. IF cells AG and AH are false, then the result should return True. IF cells AG is true and AH is false, then return False. IF cells AG is true

Any input is greatly appreciated.

Thank you!
 
Upvote 0
something like that, but type all possibilities for your cells as TRUE / FALSE then try AND, XOR, OR and combination of them with NOT or IF
I really don't know what you want to achieve ;)
ANDXOROR
TrueTrueTrueFalseTrue
FalseFalseFalseFalseFalse
TrueFalseFalseTrueTrue
FalseTrueFalseTrueTrue
Cell Formulas
RangeFormula
E4:E7E4=AND(C4,D4)
F4:F7F4=XOR(C4,D4)
G4:G7G4=OR(C4,D4)
 
Upvote 0
This is the current formula: =IF(AG2=TRUE,IF(AH2=TRUE,TRUE,FALSE),TRUE), but all the results return 'True."
IF AG is 'true' and AH is 'false' then return 'false.'
IF AG is 'false and AH is 'false' then return 'True'

Thanks!
 
Upvote 0
try =NOT(OR(AG,AH))

#VALUE!
Cell Formulas
RangeFormula
N3:N4N3=NOT(OR(L3,M3))
 
Upvote 0
what are the values in AG and AH?
TRUE and FALSE? or something different?
 
Upvote 0
see post#16 and check for quotes, spaces etc., there shouldn't be them
or just copy table from the post and change references to yours

edit
Book1
AGAHAIAJ
2TrueFalseFalse
3FalseFalseTrue
Sheet8
Cell Formulas
RangeFormula
AJ2:AJ3AJ2=NOT(OR(AG2,AH2))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,213,530
Messages
6,114,162
Members
448,554
Latest member
Gleisner2

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