Frequent pattern in range of cells formula

xlinator

New Member
Joined
Feb 13, 2018
Messages
3
Hi Everyone,

I have 2 worksheets first sheet has list of computers. second sheet has list of computers (same computers as first sheet) but also has their errors , this sheet consists of 2 columns: computer name, error message. I have multiple error messages per computer, some repeating per computer. I need on the first sheet in a cell beside the computer to show the top most repeated error message per computer by that respective computer. I found online kind of what I want which is find the top repeated pattern in cell within a range but it doesn't depend on the computer, it just gives the top error in all the errors. also if there is nothing repeating, return "-"

I hope I explained the issue properly.

any help would be appreciated. I've been struggling with this for days.
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
sure, thanks


sheet 1:
computer, top error
comp1 0x80070002 <-should return this
comp2 0x80244010 <-should return this

sheet2:
computer, error
COMP1 WARNING: Failed to delete service from the backup store, error = 0x80070002
COMP1 * WARNING: Failed to synchronize, error = 0x80244010
COMP1 WARNING: WU client failed Searching for update with error 0x80244010
COMP1 WARNING: WU client fails CClientCallRecorder::RemoveService with error 0x80248014
COMP1 WARNING: WU client fails CClientCallRecorder::RemoveService with error 0x80248014
COMP1 WARNING: Failed to delete service from the backup store, error = 0x80070002
COMP1 WARNING: failed to calculate prior restore point time with error 0x80070002; setting restore point
COMP2 WARNING: Failed to delete service from the backup store, error = 0x80070002
COMP2 * WARNING: Failed to synchronize, error = 0x80244010
COMP2 WARNING: WU client failed Searching for update with error 0x80244010
COMP2 WARNING: Operation failed due to earlier error, hr=80244010
COMP2 Windows Update Client failed to detect with error 0x80244010.
COMP2 WARNING: WU client fails CClientCallRecorder::RemoveService with error 0x80248014
COMP2 WARNING: WU client fails CClientCallRecorder::RemoveService with error 0x80248014
COMP2 WARNING: failed to calculate prior restore point time with error 0x80070002; setting restore point
COMP2 - Install call complete (succeeded = 1, succeeded with errors = 0, failed = 0, unaccounted = 0)
COMP2 Completed install of CBS update with type=3, requiresReboot=1, installerError=0, hr=0x0
COMP2 Completed install of CBS update with type=3, requiresReboot=1, installerError=0, hr=0x0
 
Upvote 0
I found this array formula: {=INDEX(I2:I2005,MATCH(MIN(COUNTIF(I2:I2005,I2:I2005)),COUNTIF(I2:I2005,I2:I2005),0))} that (presume I is the column for the errors) will find the top error in the list, but it ignores the computer column on both sheet 1 and 2. just don't understand enough about this to modify it for my needs.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,242
Members
452,623
Latest member
russelllowellpercy

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