=IF Statement issue

dmcgetti

Board Regular
Joined
Feb 16, 2015
Messages
66
I am trying to to us an IF statement to sum prices depending on what is in another column.


This is the formula I am using in Q2:


=IF(M2=2%,J2*0.98,IF(M2=13%,J2*0.87,))


and here is my data:

JKLMNOPQ
9750R2%
1260250.00R13%1096.20

<tbody>
</tbody>

It works fine on the "13%" but not the "2%"
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Are you simply trying to apply a percentage calculation? Like:
=J2*(100%-M2)
 
Upvote 0
Then you don't need the 2nd if.

=IF(M2=2%,J2*0.89,J2*0.76,))



Maybe I am using the wrong formula, this is what I am trying to do:

If M2 is "2%", than I want to multiply J2 by .89. If the amount in M2 is "13%", I want to multiply J2 by .76.
 
Upvote 0

Forum statistics

Threads
1,214,615
Messages
6,120,538
Members
448,970
Latest member
kennimack

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