IF Statement

tlc53

Active Member
Joined
Jul 26, 2018
Messages
399
Hi there,

I have written this formula but it is not working correctly

=IF(AND(F45>0,D8="Partnerhip"),F45*D14,IF(F45>0,F45))

This is what I am trying to achieve..
If F45 is more than 0, and D8 = "Partnership" then F45*D14 but if F45 is more than 0 and D8 does not equal "Partnership", return cell F45.

Can someone help me please?

Thanks!
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Re: IF Statement - Help

In what way is it not working?
 
Upvote 0
Re: IF Statement - Help

If both criteria is false, then return zero.
I see I had a spelling error, s/b Partnership not Partnerhip. However, that still doesn't fix the problem.
Regardless of what D8 says (Partnership, or Company etc), it's just multiplying F45*D14 and not return F45.

Ignore - it was that spelling error! Thank you!
 
Last edited:
Upvote 0
Re: IF Statement - Help

Try writing it with if F45 is negative 0 then go from there. something like
=if(F45<0,0,if(D8="partnership",F45*D14,F45))
 
Upvote 0
Re: IF Statement - Help

It works for me, this will return 0 for the false requirement
=IF(AND(F45>0,D8="Partnership"),F45*D14,IF(F45>0,F45,0))
What do you have in F45 & D14?
 
Upvote 0

Forum statistics

Threads
1,224,755
Messages
6,180,776
Members
452,996
Latest member
nelsonsix66

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