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

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
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.

[TABLE="width: 249"]
<tbody>[TR]
[TD="class: xl63, width: 72, align: right"]$900.00[/TD]
[TD="class: xl63, width: 79, align: right"]$1,200.00[/TD]
[TD="class: xl63, width: 98, align: right"]$300.00[/TD]
[/TR]
</tbody>[/TABLE]
 
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,223,214
Messages
6,170,774
Members
452,353
Latest member
strainu

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