Order Mix Identifier

JazzyBeaver

New Member
Joined
Feb 28, 2018
Messages
1
Hello all,

I have a dataset of orders broken down by the different items and quantities in each order.

Order #Item TypeSKUQuantityOrder Mix
1234Red1032RedGreen
1234Red1127RedGreen
1234Green2054RedGreen
1234Green2176RedGreen
5678Red1019RedGreenBlue
5678Green2063RedGreenBlue
5678Blue3182RedGreenBlue
5678Blue3012RedGreenBlue
5678Blue3262RedGreenBlue

<colgroup><col><col><col span="2"><col></colgroup><tbody>
</tbody>

I need a formula to join the different Item Types in each order to create a Order Mix identifier.
I provided an example of what I need in the Order Mix column above.

Idk if it will help find a solution, but Red Items all start with 1, Green items start with 2, and Blue items start with 3.
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Hi,

This will achieve what you describe:


Book1
ABCDE
1Order #Item TypeSKUQuantityOrder Mix
21234Red1032RedGreen
31234Red1127RedGreen
41234Green2054RedGreen
51234Green2176RedGreen
65678Red1019RedGreenBlue
76789Red1111RedBlue
86789Blue3332RedBlue
95678Green2063RedGreenBlue
105678Blue3182RedGreenBlue
115678Blue3012RedGreenBlue
125678Blue3262RedGreenBlue
Sheet11
Cell Formulas
RangeFormula
E2=CHOOSE(SUM(IF(COUNTIFS(A$2:A$12,A2,B$2:B$12,"Red"),1,0),IF(COUNTIFS(A$2:A$12,A2,B$2:B$12,"Green"),2,0),IF(COUNTIFS(A$2:A$12,A2,B$2:B$12,"Blue"),4,0)),"Red","Green","RedGreen","Blue","RedBlue","GreenBlue","RedGreenBlue")


Formula copied down.
 
Upvote 0

Forum statistics

Threads
1,214,975
Messages
6,122,538
Members
449,088
Latest member
RandomExceller01

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