Produce List of Values Based on ID / Batch

surkdidat

Well-known Member
Joined
Oct 1, 2011
Messages
582
Office Version
  1. 365
Hi

I have data as below, which has the batch number in column A, and a Product ID in Column C

I need to know (for Batch 5 only)

If its Unique to batch 5
If it is in Batch 5 and Batch 4
If it is in Batch 5 and Batch 3
If it is in Batch 5, Batch 4 and Batch 3

(II dont need to know if it is in 3 and 4 for example)
Column A ( BATCH)Column B (PRODUCT ID)Column d (BATCH 5)In Batch 3?In Batch 4?In Both?
Row 133590165432
Row 23234563591
Row 332314523456
Row 431357924680
Row 531234513579
Row 646543212345
Row 7423456
Row 8412345
Row 9565432
Row 10535901
523456
524680
513579
512345
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
So, if I follow this since you didn't provide solutions 65432 is YES for batch 4; 35901 (assume you mistyped -- better to use XL2BB, by the way) is YES in batch 3; etc. ???

How about:

continents.xlsx
ABCDEFG
1BATCHPRODUCT IDBATCH 5Batch 3Batch 4Both
233590165432NOYESNO
332345635901YESNONO
432314523456YESYESYES
531357924680NONONO
631234513579YESNONO
746543212345YESYESYES
8423456
9412345
10565432
11535901
12523456
13524680
14513579
15512345
Sheet3
Cell Formulas
RangeFormula
E2:F7E2=IF(0=SUMPRODUCT(((1*RIGHT(E$1,1))=$A$2:$A$15)*($D2=$B$2:$B$15)),"NO","YES")
G2:G7G2=IF(AND("YES"=E2,"YES"=F2),"YES","NO")
 
Last edited:
Upvote 0
Column d (BATCH 5)​
In Batch 3?​
In Batch 4?​
In Both?​
65432​
NO​
YES​
NO​
35901​
YES​
YES​
NO​
23456​
YES​
YES​
YES​
24680​
NO​
NO​
NO​
13579​
YES​
NO​
NO​
12345​
YES​
YES​
YES​
 
Upvote 0
So, if I follow this since you didn't provide solutions 65432 is YES for batch 4; 35901 (assume you mistyped -- better to use XL2BB, by the way) is YES in batch 3; etc. ???
Column d (BATCH 5)​
In Batch 3?​
In Batch 4?​
In Both?​
65432​
NO​
YES​
NO​
35901​
YES​
YES​
NO​
23456​
YES​
YES​
YES​
24680​
NO​
NO​
NO​
13579​
YES​
NO​
NO​
12345​
YES​
YES​
YES​
 
Upvote 0

Forum statistics

Threads
1,215,340
Messages
6,124,386
Members
449,155
Latest member
ravioli44

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