Comparing Cells in a row, Columns (> than 10) and checking if adjacent cells have same cell value

Alvin187

New Member
Joined
Jul 8, 2021
Messages
7
Office Version
  1. 2016
Platform
  1. Windows
Hi all,

Problem: My maximum Range is around 10000 Rows x 365 columns, I want to compare cell values across a row .
Conditions: It has to return how many times a name is repeated in each row for every primary key
if a name comes only once in a row, that need not be shown, anything more than 2 should be displayed
It has to exclude blank cells and if it encounters "Dispatched" then it need not count further.
Requirement: Any solution either excel or macro would do.

PFB Sample excel sheet.

The Output for the same should be
20/F/43352/2 - Filing - 3days, Final Polish - 3 days
20/F/43352/2 - Filing - 3days, Final Polish - 3 days
20/F/43352/2 - Filing - 3days, Final Polish - 3 days

Excel Formula:
[TABLE]
[TR]
[TD]Bag Number[/TD]
[TD]8th July[/TD]
[TD]9th July[/TD]
[TD]10th July[/TD]
[TD]11th July[/TD]
[TD]12th July[/TD]
[TD]13th July[/TD]
[/TR]
[TR]
[TD]20/F/43352/2[/TD]
[TD]FILING[/TD]
[TD]FILING[/TD]
[TD]FILING[/TD]
[TD]FINAL POLISH[/TD]
[TD]FINAL POLISH[/TD]
[TD]FINAL POLISH[/TD]
[/TR]
[TR]
[TD]20/F/43352/3[/TD]
[TD]FILING[/TD]
[TD]FILING[/TD]
[TD]FILING[/TD]
[TD]FINAL POLISH[/TD]
[TD]FINAL POLISH[/TD]
[TD]FINAL POLISH[/TD]
[/TR]
[TR]
[TD]20/F/43352/4[/TD]
[TD]FILING[/TD]
[TD]FILING[/TD]
[TD]FILING[/TD]
[TD]FINAL POLISH[/TD]
[TD]FINAL POLISH[/TD]
[TD]FINAL POLISH[/TD]
[/TR]
[TR]
[TD]20/F/43352/5[/TD]
[TD]FILING[/TD]
[TD]FILING[/TD]
[TD]FILING[/TD]
[TD]FINAL POLISH[/TD]
[TD]FINAL POLISH[/TD]
[TD]FINAL POLISH[/TD]
[/TR]
[TR]
[TD]20/F/43352/6[/TD]
[TD]FILING[/TD]
[TD]FILING[/TD]
[TD]FILING[/TD]
[TD]FINAL POLISH[/TD]
[TD]FINAL POLISH[/TD]
[TD]FINAL POLISH[/TD]
[/TR]
[TR]
[TD]20/F/43352/7[/TD]
[TD]FILING[/TD]
[TD]FILING[/TD]
[TD]FILING[/TD]
[TD]FINAL POLISH[/TD]
[TD]FINAL POLISH[/TD]
[TD]FINAL POLISH[/TD]
[/TR]
[TR]
[TD]20/F/43352/8[/TD]
[TD]FILING[/TD]
[TD]FILING[/TD]
[TD]FILING[/TD]
[TD]FINAL POLISH[/TD]
[TD]FINAL POLISH[/TD]
[TD]FINAL POLISH[/TD]
[/TR]
[TR]
[TD]20/F/43352/9[/TD]
[TD]FILING[/TD]
[TD]FILING[/TD]
[TD]FILING[/TD]
[TD]FINAL POLISH[/TD]
[TD]FINAL POLISH[/TD]
[TD]FINAL POLISH[/TD]
[/TR]
[/TABLE]
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Bag No8th July9th July10th July11th July12th July13th July
20/F/43347/1FILINGFILINGFILINGFINAL POLISHFINAL POLISHFINAL POLISH
20/F/43347/2FILINGFILINGFILINGFINAL POLISHFINAL POLISHFINAL POLISH
20/F/43347/3FILINGFILINGFILINGFINAL POLISHFINAL POLISHFINAL POLISH
20/F/43347/4FILINGFILINGFILINGFINAL POLISHFINAL POLISHFINAL POLISH
20/F/43347/5FILINGFILINGFILINGFINAL POLISHFINAL POLISHFINAL POLISH
20/F/43347/6FILINGFILINGFILINGFINAL POLISHFINAL POLISHFINAL POLISH
20/F/43347/7FILINGFILINGFILINGFINAL POLISHFINAL POLISHFINAL POLISH

this is the excel file.


The Output for the same should be
20/F/43347/1 - Filing - 3days, Final Polish - 3 days
20/F/43347/2 - Filing - 3days, Final Polish - 3 days
20/F/43347/3 - Filing - 3days, Final Polish - 3 days
 
Upvote 0

Forum statistics

Threads
1,224,833
Messages
6,181,240
Members
453,026
Latest member
cknader

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