Transposing Data Efficiently

JansiJansi

New Member
Joined
Jun 22, 2022
Messages
16
Office Version
  1. 365
Platform
  1. Windows
Hi!

Problem: I have two SKUs (col B) per Code (col A). I need to somehow transpose the data efficiently so that it is in the desired format. Each only has 2, so I don't need to make it dependent on the Code.

Current Data:

Book1
AB
2B003TQM9VA6D-BZDA-DVVY
3B003TQM9VAYG-TJYH-O0G2
4B003TQM9XSEK-19SU-5H0H
5B003TQM9XS6B-KVK8-8250
6B003UW8O4YFF-1K7C-RZQQ
7B003UW8O4YSD-D1N8-Y5LK
Sheet1


Desired Format:

Book1
DE
1Parent Search TermAlternate SKU
26D-BZDA-DVVYYG-TJYH-O0G2
3EK-19SU-5H0H6B-KVK8-8250
4FF-1K7C-RZQQSD-D1N8-Y5LK
Sheet1


Here's what I have been doing (warning: cringe): Help Me Excel Gods.webm

I've tried pivot tables, and can't get it to display each SKU in a new column by Code.

Thank you in advance!
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
How about
Fluff.xlsm
ABCDE
1
2B003TQM9VA6D-BZDA-DVVY6D-BZDA-DVVYYG-TJYH-O0G2
3B003TQM9VAYG-TJYH-O0G2EK-19SU-5H0H6B-KVK8-8250
4B003TQM9XSEK-19SU-5H0HFF-1K7C-RZQQSD-D1N8-Y5LK
5B003TQM9XS6B-KVK8-8250
6B003UW8O4YFF-1K7C-RZQQ
7B003UW8O4YSD-D1N8-Y5LK
8
Main
Cell Formulas
RangeFormula
D2:E4D2=WRAPROWS(B2:B7,2)
Dynamic array formulas.
 
Upvote 0
Solution
Fluff... I love you lol. Thank you so much.

There's always a super simple way that I just didn't know about!
 
Upvote 0
Glad to help & thanks for the feedback.
Is there a way to do this for other amounts of duplicates? The formula is designed for 2, but can it work with 3, 4, 5+, etc.?

The problem is the result must be constrained to two columns. So:

Used Book Depot.xlsx
AB
1Parent Search TermAlternate SKU
221.28_1071109_20210911_20722
325.20_1092348_20210911_18271
433.70_368803_20210911_K-10_15
509-06-2022_FN_536K_300B27
634.99_393517_20210911_17644
742.00_741456_20210911_11800
Sheet11


would be

Used Book Depot.xlsx
AB
1Parent Search TermAlternate SKU
221.28_1071109_20210911_2072225.20_1092348_20210911_18271
321.28_1071109_20210911_2072233.70_368803_20210911_K-10_15
409-06-2022_FN_536K_300B2734.99_393517_20210911_17644
509-06-2022_FN_536K_300B2742.00_741456_20210911_11800
Sheet11


It takes the first of the 3, then puts the other 2 in the column next to it. Seems a bit too complicated but figured I'd ask!
 
Upvote 0
As this is a totally different question, it needs a new thread. Thanks
 
Upvote 0

Forum statistics

Threads
1,215,028
Messages
6,122,749
Members
449,094
Latest member
dsharae57

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