simple if won't work

msohare91

New Member
Joined
Jun 8, 2020
Messages
19
Office Version
  1. 2016
Hi. I am trying to do a simple if formula to divide another cell if the text value is true and to leave it as is or *1 if false. I have the below:

=IF(J2="USC",I2/100,*1).

So if J2 ="USC" I want it to divide i2 by 100 and just leave it as is if not USC. I can't see the issue with this and have also tried an IF AND formula but that didn't work.

I've done many of these IFs with one type of operation so I assume the / and * is causing the issue...

Thanks!
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
You haven't specified what to multiply by 1, so either:

=IF(J2="USC",I2/100,I2*1)

or just:

=IF(J2="USC",I2/100,I2)

or even:

=I2/IF(J2="USC",100,1)
 
Upvote 0
You haven't specified what to multiply by 1, so either:

=IF(J2="USC",I2/100,I2*1)

or just:

=IF(J2="USC",I2/100,I2)

or even:

=I2/IF(J2="USC",100,1)
Great thanks for this. I guess I thought I'd already specified that the logical test was on J2 being X. So I'm not sure why you have to again specify what you want done to cell I2 if the logical test is false as assumed that was implied. Good to know for future ref.
 
Upvote 0

Forum statistics

Threads
1,214,384
Messages
6,119,201
Members
448,874
Latest member
Lancelots

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