Vlookup or?

TrinaT

New Member
Joined
Mar 23, 2022
Messages
14
Office Version
  1. 365
Platform
  1. MacOS
I have a spreadsheet of data that is coming from an event registration software. Along with event registrations, people are able to purchase products. Unfortunately the data export pulls the product sales out in different columns (not the same column for each product), and displays in random order. It also pulls through blank columns randomly.

I'm trying to pull the data into a useable order so I can easily decipher who has ordered what, and pull out overall order quantities for the final orders.

I'm not even sure if this can be done. I've attached an image of how the data pulls out.
Screen Shot 2022-03-23 at 12.27.48 pm.png
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Welcome to the MrExcel board!

I've attached an image of how the data pulls out.
That is a little useful but would be better if
a) we were able to copy it for testing (see XL2BB)
b) we also knew what you wanted the results to look like.
 
Upvote 0
Thanks!

Sample Data.xlsx
ABCDEFGHIJKLMNO
1First NameLast NameItem 1CostQtyItem 2CostQtyItem 3CostQtyItem 4Cost Qty
2JoeBlogsCooler$10.001Shirt$60.001Shirt 2$40.001
3BarryEnglishBag$30.001
4DanaDrinkCooler$10.001Shirt$60.001Shirt 2$40.001
5
6
7
Data Sheet


I don't have a preference for what it looks like at the end, I really just need all the same items to be in the same column for easy collation and summary
 
Upvote 0
Is a macro solution acceptable?
About how many different items would you expect altogether? (less than 10/ tens/ hundreds/ thousands/ ...)
 
Upvote 0
Is a macro solution acceptable?
About how many different items would you expect altogether? (less than 10/ tens/ hundreds/ thousands/ ...)
Yes a macro is fine!

We are expecting about 250 total orders, with up to 7 products available.
 
Upvote 0
Up to 7 products per order so yes in theory 1750.
Then I'm afraid that I will have to leave it to somebody else. For a relatively large number of products, the method that I would use (Windows machine) I believe is not available on a Mac and I don't have a Mac to test this or alternatives. Still, hopefully the extra information now available in the thread will assist any new helpers. Good luck!
 
Upvote 0
You have MacOS 365 which means you should have power query.
Are you happy to get it to this point (see below) ?
If you are then I can either give you the Power Query code or we can do it in VBA ?


20220323 Transpose Data TrinaT.xlsm
ABCDE
13First NameLast NameItemCostQty
14JoeBlogsCooler101
15JoeBlogsShirt601
16JoeBlogsShirt 2401
17BarryEnglishBag301
18DanaDrinkCooler101
19DanaDrinkShirt601
20DanaDrinkShirt 2401
Sheet1
 
Upvote 0
To get a list of all items ordered & how many, you could use
+Fluff 1.xlsm
ABCDEFGHIJKLMNOPQRSTUVW
1First NameLast NameItem 1CostQtyItem 2CostQtyItem 3CostQtyItem 4Cost QtyItem 5Cost QtyItem 6Cost QtyItem 7Cost Qty
2JoeBlogsCooler101Shirt601Shirt 2401
3BarryEnglishBag301
4DanaDrinkCooler102Shirt601Shirt 2401
5
6
7
8
9
10Cooler3
11Shirt2
12Shirt 22
13Bag1
14
Main
Cell Formulas
RangeFormula
A10:A13A10=LET(rng,C2:W8,r,ROWS(rng),s,SEQUENCE(r*COLUMNS(rng)/3,,0),i,INDEX(rng,MOD(s,r)+1,INT(s/r)*3+1),UNIQUE(FILTER(i,i<>"")))
B10:B13B10=SUMIFS(E2:W8,C2:U8,A10#)
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,215,734
Messages
6,126,542
Members
449,316
Latest member
sravya

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