Sales Data - Did Customer Exchange Up or Down?

GrampsOnGrass

New Member
Joined
Jul 20, 2023
Messages
1
Office Version
  1. 2019
Platform
  1. Windows
Hi Gurus,

I've been requested to run a report for work, that looks at exchanges of apparel for our online store, and we're wanting to look at if the customer is exchanging up a size, or down a size.

I have the following data, and have applied a numerical value to a size (XL = 6, 2XL = 7), but wanting to subtract one value from the other within the pivot; and then at some point, be able to filter on a particular product, and find that "X amount of exchanges were for going down a size" and "X amount of exchanges were for going up a size"

(I've copied/pasted a part of the Pivot into another sheet, and changed some of the sensitive information)


For the first Order, we can see that the customer exchanged an 1x XL Navy/White Check Mens Tee for 1x 2XL Navy/White Check Mens Tee

In the second Order, we can see that the customer exchanged 1x Large Forest Green Womens Tee for 1x 2XL Forest Green Womens Tee, and 1x Large Navy Womens Tee for 1x 2XL Forest Womens Tee.

Ideally, it would look something like this:


Thanks in advance
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
What about if the customer is having the same size but different colour?
 
Upvote 0
On your original Data you could try this
Book1
ABCDEFGHIJKLM
1SO Cust Order NumberSO OriginalSO Order DateSO Trans TypeProd CodeProd NameCir CodeCir NameSKU SizeSKU Size SeqExchange Up/DownValueKey
2ORDER000087912312367162302/01/2022Credit Note1234Mens TeeNAVWHTNavy/white CheckXL6 -1ORDER00008791231236716231234NAVWHT
3ORDER000087912312367162302/01/2022Invoice1234Mens TeeNAVWHTNavy/white Check2XL7Up1 
4ORDER000007945612368735604/02/2022Credit Note5678Womens TeeFORForest GreenL5 -1ORDER00000794561236873565678FOR
5ORDER000007945612368735604/02/2022Credit Note5678Womens TeeNAVNavyL5 -1ORDER00000794561236873565678NAV
6ORDER000007945612368735604/02/2022Invoice5678Womens TeeFORForest Green2XL7Up1 
7ORDER000007945612368735604/02/2022Invoice5678Womens TeeNAVNavy2XL7Up1 
8ORDER000087912412389233005/02/2022Credit Note9023Child TeeFORForest GreenM4 -1ORDER00008791241238923309023FOR
9ORDER000087912412389233005/02/2022Invoice9023Child TeeFORForest GreenS3Down1 
10ORDER000091022112398001006/02/2022Credit Note9023Child TeeFORForest GreenM4 -1ORDER00009102211239800109023FOR
11ORDER000091022112398001006/02/2022Invoice9023Child TeeNAVNavyM4No Change1 
Sheet1
Cell Formulas
RangeFormula
K2:K11K2=IF([@[SO Trans Type]]="Invoice",IF(J2>INDEX([SKU Size Seq],MATCH(A1&B1&E1&G1,[SO Cust Order Number]&[SO Original]&[Prod Code]&[Cir Code],0)),"Up",IF(J2<INDEX([SKU Size Seq],MATCH(A1&B1&E1&G1,[SO Cust Order Number]&[SO Original]&[Prod Code]&[Cir Code],0)),"Down","No Change")),"")
M2:M11M2=IF([@[SO Trans Type]]="Credit Note",CONCAT([@[SO Cust Order Number]],[@[SO Original]],[@[Prod Code]],[@[Cir Code]]),"")


I have created a helper column for comparision. This could be hidden
 
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,310
Members
452,634
Latest member
cpostell

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