Help with IF Formula and +ive & -ive

revillj

New Member
Joined
Feb 22, 2011
Messages
1
Hey Everyone,

First post for me. Sorry if this is old ground.
Maybe you can help me with an issue i have.

Depending on the value of a cell (E6 in this example) I want to do the following.

If E6 is a negative number then use 1-(100/E6)
If E6 is a positive number then use 1+(E6/100)

Where e6= '-'
=IF(E6<0,1-(100/E6),1+(E6/100))
Answer is incorrect

Where e6= '+'
=IF(E6<0,1-(100/E6),1+(E6/100))
Answer is correct

Any help would be greatly recieved.

Thanks

J
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Hey Everyone,

First post for me. Sorry if this is old ground.
Maybe you can help me with an issue i have.

Depending on the value of a cell (E6 in this example) I want to do the following.

If E6 is a negative number then use 1-(100/E6)
If E6 is a positive number then use 1+(E6/100)

Where e6= '-'
=IF(E6<0,1-(100/E6),1+(E6/100))
Answer is incorrect

Where e6= '+'
=IF(E6<0,1-(100/E6),1+(E6/100))
Answer is correct

Any help would be greatly recieved.

Thanks

J


Welcome to the board...

The formula you posted will do exactly what you described.

But, the problem is likely that this
If E6 is a negative number then use 1-(100/E6)
doesn't do what you think it does..

Perhaps you want this instead

=1+(ABS(E6)/100)

This makes it give the same result regardless if E6 is negative or positive.


Hope that helps.
 
Upvote 0

Forum statistics

Threads
1,224,505
Messages
6,179,152
Members
452,891
Latest member
JUSTOUTOFMYREACH

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