Data re-arrangement issue

yuvalshabt

New Member
Joined
Jan 11, 2017
Messages
21
Office Version
  1. 2021
Platform
  1. Windows
I have to following clothing related data.

Its a sheet of the item's ID, sizes and the quantity.

Different items have different size chart (like shoes are 10,11,12 but shirts are S M L...)
so in this table we have "tag" that we can visually match the correct size to the quantity.

I need to re-arrange that data so it will show:

item's id"-"size in one cell

and quantity in another cell.

For example - sku1 - marked as tag #4 so the first quantity is 0 for size 30, then 1 quantity for size 30.5....

sku3 is "tag" #3 and has 6 quantity size M.


Any help will be much appreciated!!! thank you all!

Please see pic for reference:


Screenshot_5.jpg
 
Last edited:
You are using wrong cell referencing. Try changing to...

Excel Formula:
=LET(Sz,FILTER(WOMAN!$C$1:$Q$8,WOMAN!$B$1:$B$8=$R$10),Qty,FILTER(WOMAN!$C$10:$Q$14,WOMAN!$B$10:$B$14=$R$10),Sz&"-"&Qty)
Thank you, I'll share the original as there is something that I'm missing here 100% as there are 2 issues:
1. It doesnt go all the way down the rows (specifically in this shorter version of the file)
2. it doesnt change once the tag changes (from 17 to 13 for this example)

BRUNELLO WOMENS MASTER 01.30.24(1).xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAI
101XSSMLXLXXLXXX4X5X
205OS
31236384042444648505254
4143535½3636½3737½3838½3939½4040½4141½42
516XXSXSSMLXLXXLXXX4X5XL
617XXSXSSMLXLXXL3XL4XL5XL6XL
723343638404244464850525456
839SML25
9COMPOSIZIONETtg...............TOTALE MSRP
10sku11722$ 5,895.0017XXS-XS-S-M-2L-XL-XXL-3XL-4XL-5XL-6XL-----
11sku21722$ 5,895.0017XXS-XS-S-M-2L-XL-XXL-3XL-4XL-5XL-6XL-----
12sku31711$ 3,695.0017
13sku423112$ 1,150.0023
14sku523123$ 2,795.0023
15sku6231261111$ 1,295.0023
16sku72322$ 1,395.0023
17sku82322$ 1,150.0023
WOMAN
Cell Formulas
RangeFormula
R8R8=SUM(R10:R17)
U10:AI11U10=LET(Sz,FILTER(WOMAN!$C$1:$Q$8,WOMAN!$B$1:$B$8=$T$10),Qty,FILTER(WOMAN!$C$10:$Q$17,WOMAN!$B$10:$B$17=$T$10),Sz&"-"&Qty)
T10:T17T10=B10
Dynamic array formulas.
 
Upvote 0

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Check this and revert -

Book1
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAI
11XSSMLXLXXLXXX4X5X
25OS
31236384042444648505254
4143535½3636½3737½3838½3939½4040½4141½42
516XXSXSSMLXLXXLXXX4X5XL
617XXSXSSMLXLXXL3XL4XL5XL6XL
723343638404244464850525456
839SML25
9COMPOSIZIONETtg...............TOTALE MSRP
10sku1122258951236 -38 -40 -42 - 244 -46 -48 -50 -52 -54 - - - - - -
11sku21622589516XXS - XS - S - M - 2L - XL - XXL - XXX - 4X - 5XL - - - - - -
12sku31611369516XXS - XS - S - M - 1L - XL - XXL - XXX - 4X - 5XL - - - - - -
13sku4511211505OS - - - - 1- 1 - - - - - - - - - -
14sku52312327952334 -36 -38 -40 - 142 - 244 -46 -48 -50 -52 -54 -56 - - - -
15sku6391261111129539S - M - L - 1- 2- 6- 1 - - 1 - - - - - - -
16sku7232213952334 -36 -38 -40 -42 - 244 -46 -48 -50 -52 -54 -56 - - - -
17sku8232211502334 -36 -38 -40 -42 - 244 -46 -48 -50 -52 -54 -56 - - - -
Sheet1
Cell Formulas
RangeFormula
R8R8=SUM(R10:R17)
T10:T17T10=B10
U10:AI17U10=LET(Sz,FILTER($C$1:$Q$8,$B$1:$B$8=$T10,""),Qty,$C10:$Q10,Sz&" - "&Qty)
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,215,219
Messages
6,123,678
Members
449,116
Latest member
HypnoFant

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