multiplying a product by a different percentage based on a positive or negative number

axlegrease99

New Member
Joined
Mar 3, 2017
Messages
4
Hello, i have a spreadsheet that i use to compare projected costs to actual costs. Column C are projected costs, column B are my actuals, and i want column D to have the difference multiplied by a certain percentage based off of a positive or negative return. I would like the difference in these amounts to be multiplied by 110% if its a positive number and 100% if its a negative number. What kind of code would i have to write in column D to achieve this?

Thanks!
 

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
Welcome to the Board!

Since the factor you multiply by depends on if the difference is positive or negative, we need to know how exactly the difference is being calculated.
Should the difference be column B minus column C, or the other way around (column C minus column B)?
It isn't quite clear which way it should go from the question.
 
Upvote 0
OK, see if this formula does what you want (place in cell D2):
Code:
=IF(B2>C2,(B2-C2)*1.1,(C2-B2))
 
Upvote 0
it worked on the instances where there was a positive number return but not when there is a negative number. This is what it returned. i would want the $300 to show as a -300.

$900.00$1,200.00$300.00

<tbody>
</tbody>
 
Upvote 0
Sorry, I had the subtraction in last argument reversed.
Try:
Code:
=IF(B2>C2,(B2-C2)*1.1,([COLOR=#ff0000]B2-C2[/COLOR]))
 
Upvote 0

Forum statistics

Threads
1,214,593
Messages
6,120,434
Members
448,961
Latest member
nzskater

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