Return result (parts) for unique value in cell with multiple parts in several rows

Tupelo1984

New Member
Joined
Jan 26, 2021
Messages
22
Office Version
  1. 365
Platform
  1. Windows
Dear all,
I am looking for a formula that can return a result based on which part numbers belong to a unique sales order number.
Example:
I am trying to identify for the first column (=unique sales order number) if this order contains apples or pairs or apples and pears. If the order does not contain apples nor pears I also want the result to return, No Apples or Pears Order. The expected result should show in the 3rd column.
Unique Sales Order #Product typeExpected Result (Type of Order)
123ApplesApples and Pears Order
123ApplesApples and Pears Order
123PearsApples and Pears Order
456ApplesApples Order
456AppelsApples Order
456ApplesApples Order
789PearsPears Order
789PearsPears Order
789PearsPears Order
112NANo Apples or Pears Order
112NANo Apples or Pears Order
112NANo Apples or Pears Order

Thanks in advance,
Tupelo
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
A better image now including the columns...
1624278003514.png
 
Upvote 0
is this what u wanted?
Book4
ABC
1Unique Sales Order #Product typeResult:
2123ApplesApples and Pears Order
3123ApplesApples and Pears Order
4123PearsApples and Pears Order
5456ApplesApples Order
6456ApplesApples Order
7456ApplesApples Order
8789PearsPears Order
9789PearsPears Order
10789PearsPears Order
11112NANo Apples or Pears Order
12112NANo Apples or Pears Order
13112NANo Apples or Pears Order
Sheet1
Cell Formulas
RangeFormula
C2:C13C2=IF(B2="NA","No Apples or Pears Order",CONCAT(TEXTJOIN(" and ",TRUE,UNIQUE(FILTER($B$2:$B$13,$A$2:$A$13=A2)))," Order"))
 
Upvote 0
Solution

Forum statistics

Threads
1,224,585
Messages
6,179,700
Members
452,938
Latest member
babeneker

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