Forum

Notifications
Clear all

Nested IFs, AND functions in one statement

5 Posts
3 Users
0 Reactions
110 Views
(@Anonymous)
Posts: 0
New Member Guest
 

Hello. I hope you will be able to help me… I need to incorporate a couple of IFs and no matter how I try - I do not get values I need. If I separate the two statements, I get the right value but if I try to combine these together, something does not work. I need:

If P3 is >=b5 but E5:O5 is less than A5, then give me C5, otherwise, it is 0. I used this formulae:

=IF(AND(P3>=B5,E5:O5<A5),C5,0) 

I have attached my workings, your advice what I do wrong is greatly appreciated.

 
Posted : 29/03/2022 8:58 am
(@mynda)
Posts: 4761
Member Admin
 

Hi Monika,

Welcome to our forum!

You can use this formula in cell P5:

=IF(AND(P3>=$B$5, SUM($E$5:O5)<$A$5),$C$5,0)

 

And copy to columns F:O

Mynda

 
Posted : 29/03/2022 10:20 pm
(@niamul21)
Posts: 1
New Member
 

I'm eagerly welcoming you here!

 
Posted : 30/03/2022 1:16 am
(@Anonymous)
Posts: 0
New Member Guest
 

Thank you very much for accepting me to this forum and for welcoming messages.

I cannot believe, that just by locking the cells my puzzle got sorted!  Thank you!

 
Posted : 30/03/2022 4:33 am
(@mynda)
Posts: 4761
Member Admin
 

And adding the SUM to the condition 😉

 
Posted : 30/03/2022 7:27 am
Share: