=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

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
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,911
Messages
6,122,192
Members
449,072
Latest member
DW Draft

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