Jyotirmaya
Board Regular
- Joined
- Dec 2, 2015
- Messages
- 205
- Office Version
- 2019
- Platform
- Windows
I want a formula that If sum of H1 & I1 less than or equal to 2 and if I1 is greater than 0 then H1*1000+I1*500 else H1*1000+I1*500
I want a formula that If sum of H1 & I1 less than or equal to 2 and if I1 is greater than 0 then H1*1000+I1*500 else H1*1000+I1*500
I still think this is flawed as the calculation will happen regardless of whether the IF statement is True or False but anyway:
=IF(AND(SUM($H$1:$I$1)<=2,I1>0),H1*1000+I1*500,H1*1000+I1*500)
That's what I was trying to say - regardless of what condition the formula will be returned as both the True and False part of the IF statement are the same
So in words if the sum of cells H1 and I1 and I1 is greater than 0 what do you want to return (True part of IF statement)? If these conditions are not meet what should be returned (False part of IF statement)?
Hi,
Please try to explain what results are desired for the following examples:
h = 2, i = 0
i = 2, h = 0
h = 1.8, i = 0
h = 3, i = 3
h = 3, i = 1.5
h = 3, i = 0