Can I use IF function to use a formula if true and another formula if false

dougkpga

New Member
Joined
Apr 15, 2016
Messages
8
Hi

I have a condition that either returns a profit or does not return a profit.

So if there is a sale, column A = S.
If there is no sale, column A = NS

If there is a sale then the return (column D) is price (Column B)*quantity (number of units) (Column C)
If no sale then the return is 0 (zero)

So using IF function I tried the following -

=IF(A1=S,"B1*C1","0")

=IF(A1=S,(B1*C1),0))

=IF(A1=S,(B1*C1),"0")

None of which gave me either the return or the zero.

Can anyone help please?

Much appreciated.

Thanks in advance Doug
 
I love excel and I love the fact that you guys have this site to help out if I get stuck which does happen occasionally when I push my boundaries... Cheers Doug
 
Upvote 0

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
I love excel and I love the fact that you guys have this site to help out if I get stuck which does happen occasionally when I push my boundaries... Cheers Doug
Keep pushing them! There's lots of fun stuff you can do with Excel!:cool:
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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