Account for returns resulting in negative quantity with positive sales

Caly

Board Regular
Joined
Jul 19, 2015
Messages
159
Office Version
  1. 365
  2. 2013
  3. 2011
  4. 2010
  5. 2007
Platform
  1. Windows
Hi I have a report with data that contains orders with sales and returns. For one order there were three lines where two weee returns and one was a sale. When doing a pivot the amount of the units purchased results in a negative but the sales is positive. I can’t have the negative quantity with positive sales but is there a way to capture this with a formula?

Example below
Order 1: Quantity = -1, sales = -0.58
Order 2: Quantity = 1, sales = 35.00
Order 3: Quantity = -1, sales = -2.58

The sum total Quantity results in -1 and sales results in 31.84

But is there a way with a formula or even the pivot table to make this scenario show positive for the quantity?
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Hi,

Do you mean something like this:

Book3.xlsx
ABC
3QuantitySales
4Order 1-1-0.58
5Order 2135
6Order 3-1-2.58
7
8Total131.84
91
Sheet937
Cell Formulas
RangeFormula
C8C8=SUM(C4:C6)
B8B8=ABS(SUM(B4:B6))
B9B9=IF(COUNTIF(B4:B6,">0"),ABS(SUM(B4:B6)),SUM(B4:B6))


Use B9 formula for in case you want to show -3 when All orders were returned.
 
Upvote 0
Wow thank you so much this is perfect. Curious, is there a way to do this in a pivot table?
 
Upvote 0
You're welcome, glad it works for you.
I don't use pivot tables much, but I would think the formula should work with it.
 
Upvote 0

Forum statistics

Threads
1,214,522
Messages
6,120,022
Members
448,939
Latest member
Leon Leenders

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