Data re-arrangement issue

yuvalshabt

New Member
Joined
Jan 11, 2017
Messages
24
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:

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Share sample data using XL2BB and also update your profile with Current version of Excel and platform to give you an optimal solution. Links below 👇
 
Upvote 0
New Microsoft Excel Worksheet.xlsx
ABCDEFGHIJK
11XSSMLXLXXL
22OS
33363840424446
443030.53131.53232.5
5tagquantityquantityquantityquantityquantityquantity
6SKU14015132
7SKU221
8SKU33406000
9SKU41056000
10
11wanted output:
12A1+"-"+tag identifierquantity
13SKU1-300
14SKU1-30.51
15SKU1-315
16SKU1-31.51
17SKU1-323
18SKU1-32.52
19
Sheet3
 
Upvote 0
Check this and revert -

Book1
ABCDEFGHI
11XSSMLXLXXL
22OS
33363840424446
443030.53131.53232.5
5tagquantityquantityquantityquantityquantityquantity
6SKU14015132
7SKU221
8SKU33406000
9SKU41056000
10
11wanted output:Tag4
12A1+"-"+tag identifierquantity
13SKU1-30SKU1-3000
14SKU1-30.5SKU1-30.511
15SKU1-31SKU1-3155
16SKU1-31.5SKU1-31.511
17SKU1-32SKU1-3233
18SKU1-32.5SKU1-32.522
Sheet1
Cell Formulas
RangeFormula
D13:D18D13=LET(SKU,XLOOKUP($D$11,$C$6:$C$9,$A$6:$A$9),Sz,FILTER($D$1:$I$4,$C$1:$C$4=$D$11),TRANSPOSE(SKU&"-"&Sz))
E13:E18E13=TRANSPOSE(FILTER($D$6:$I$9,$C$6:$C$9=$D$11))
Dynamic array formulas.
 
Upvote 0
Thank you!
The final result that I need is basically have sku, quantity and relavant size is a more readable, eay-to-work way...
I need to run this for all the skus and their different sizes...
Is there any way to "recreate" the original table and add the quantity to the size as follows:
New Microsoft Excel Worksheet.xlsx
OPQRSTUVW
11XSSMLXLXXL
22OS
33363840424446
443030.53131.53232.5
5tagquantityquantityquantityquantityquantityquantity
6SKU1430-030.5-131-531.5-132-332.5-2
Sheet3





Thanks again!
 
Upvote 0
Check this and revert -

Book1
ABCDEFGHI
11XSSMLXLXXL
22OS
33363840424446
443030.53131.53232.5
5tagquantityquantityquantityquantityquantityquantity
6SKU14015132
7SKU221
8SKU33406000
9SKU41056000
10
11SKU1430-030.5-131-531.5-132-332.5-2
12
13
14wanted output:Tag4
15A1+"-"+tag identifierquantity
16SKU1-30SKU1-3000
17SKU1-30.5SKU1-30.511
18SKU1-31SKU1-3155
19SKU1-31.5SKU1-31.511
20SKU1-32SKU1-3233
21SKU1-32.5SKU1-32.522
Sheet1
Cell Formulas
RangeFormula
A11,C11A11=A6
D11:I11D11=LET(Sz,FILTER($D$1:$I$4,$C$1:$C$4=$C$11),Qty,FILTER($D$6:$I$9,$C$6:$C$9=$C$11),Sz&"-"&Qty)
D16:D21D16=LET(SKU,XLOOKUP($D$14,$C$6:$C$9,$A$6:$A$9),Sz,FILTER($D$1:$I$4,$C$1:$C$4=$D$14),TRANSPOSE(SKU&"-"&Sz))
E16:E21E16=TRANSPOSE(FILTER($D$6:$I$9,$C$6:$C$9=$D$14))
Dynamic array formulas.
 
Upvote 0
Hi, I tried it on my real file but ran into a problem.
I didnt change the "sizes" for the rest of the skus with different "tag" number.
It just continues to run the first tag sizes it found in the first column and doesnt "drag" all the way down for the entire table.
Any help will be much apricated!

BRUNELLO WOMENS MASTER 01.30.24.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAG
101XSSMLXLXXLXXX4X5X
205OS
31236384042444648505254
4143535½3636½3737½3838½3939½4040½4141½42
516XXSXSSMLXLXXLXXX4X5XL
617XXSXSSMLXLXXL3XL4XL5XL6XL
723343638404244464850525456
839SML
9COMPOSIZIONETtg...............
10sku117217XXS-XS-S-M-2L-XL-XXL-3XL-4XL-5XL-6XL-----
11sku223223XXS-XS-S-M-3L-XL-XXL-3XL-4XL-5XL-6XL-----
12sku314114XXS-4XS-7S-M-4L-5XL-2XXL-3XL-4XL-5XL-6XL-----
13sku417317
14sku5174745217
WOMAN
Cell Formulas
RangeFormula
S10:AG12S10=LET(Sz,FILTER(WOMAN!$C$1:$Q$8,WOMAN!$B$1:$B$8=R10),Qty,FILTER(WOMAN!$C$10:$Q$14,WOMAN!$B$10:$B$14=R10),Sz&"-"&Qty)
R10:R14R10=B10
Dynamic array formulas.
 
Upvote 0
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)
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,254
Members
452,623
Latest member
Techenthusiast

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