VlookUp Multiple Matches & Display Labels

Ravey

New Member
Joined
Apr 19, 2015
Messages
8
Hello,
I have data with over 50K rows.
I'm trying categorize this data for analysis.
The data looks like this.
Orange_Shirt_P$50
Orange_Shirt_C$40
Orange_Shirt_P$10
Orange_Shirt_C$5
some misc data here$70
Black_Shirt_P$20
Black_Shirt_C$19
Black_Shirt_P$12
Black_Shirt_C$5

<tbody>
</tbody>




I want to categorize the higher prices together and the lower prices together.

Orange_Shirt_P$50High P
Orange_Shirt_C$40High C
Orange_Shirt_P$10Low P
Orange_Shirt_C$5Low C
Some crazy data here$70N/A
Black_Shirt_P$20High P
Black_Shirt_C$19High C
More Crazy data here$500N/A
Black_Shirt_P$12Low P
Black_Shirt_C$5Low C

<tbody>
</tbody>
 
Last edited:

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
You could do this very simply by using a Pivot Table...
A​
B​
C​
D​
E​
F​
1​
ItemPriceRow LabelsMax of PriceMin of Price
2​
Orange_Shirt_P$50 Black_Shirt_C
19​
5​
3​
Orange_Shirt_C$40 Black_Shirt_P
20​
12​
4​
Orange_Shirt_P$10 Orange_Shirt_C
40​
5​
5​
Orange_Shirt_C$5 Orange_Shirt_P
50​
10​
6​
some misc data here$70 some misc data here
70​
70​
7​
Black_Shirt_P$20 Grand Total
70​
5​
8​
Black_Shirt_C$19
9​
Black_Shirt_P$12
10​
Black_Shirt_C$5
11​
I used Item as Column label
Then I inserted Price twice, and set the 1st up as Max and the 2nd up as Min (you could add a 3rd for avg if you wanted)
 
Upvote 0

Forum statistics

Threads
1,214,644
Messages
6,120,709
Members
448,983
Latest member
Joaquim_Baptista

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