"if(and)" function help

charlotte89

New Member
Joined
Aug 20, 2023
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi there, I am struggling to get a nested if(and) formula to work in my spreadsheet.
I would like to report the content in column D if the following conditions are met:
pH>4.5, AND pH<7.5, AND flow>0, AND Al>0.055. I have used the following formula:

=IF(AND(C2>7.5,C2<4.5,B2>0,D2>0.055),D2,FALSE)

While it is not throwing up an error code, it is not returning any value when all 4 conditions are met - see row 36.
Can anybody please offer some help on this issue?

Thank you :giggle:

1727394293639.png
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Your conditions for col C look backwards.. at least as it shows in the formula bar anyway, that won't work. The number can't be both greater than 7.5 and less than 4.5 at the same time. Maybe your > and < are backwards?
 
Upvote 0
@charlotte89 I'm a bit confused. The text indicates you want the True condition to be when the Ph is between 4.5-7.5 and @Michael M and @dreid1011 are reading it that way but your formula and example suggest that you actually want it outside of those parameters, which would translate to something like this:
Excel Formula:
=IF(AND(OR(C2>7.5,C2<4.5),B2>0,D2>0.055),D2,FALSE)
 
Upvote 0

Forum statistics

Threads
1,222,622
Messages
6,167,137
Members
452,098
Latest member
xel003

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