Grouping Data

Salar

Board Regular
Joined
Mar 19, 2008
Messages
122
Hi All,

At work I am grouping data from maintenance records to look at frequency of service.

The groups I have are like the following

A12-0001
A12-0001
A12-0001
A12-0002
A12-0002
A12-0003
A12-0003
A12-0003
A12-0003

This list can go on up to 20000 rows. Each group should have an even number of entries and should be of the following sequence ie. 2,4,8,12,16,20, or 24.

What I need is a macro for column A in my spreadsheet that would review the entries an highlight any anomalies. In the example above it would be A12-0001 Highlightling would be by changing colour of the group cells with the anomaly.

Incidentally I am using Excel 2003.

Thanks for any help

Salar
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

GlennUK

Well-known Member
Joined
Jul 8, 2002
Messages
11,685
If you put the 2,4,8 etc in a list, named say ValidList, then you could use conditional formatting, with a condition of:
Code:
=ISNA(MATCH(COUNTIF($A$1:$A$20000,A1),validlist,0))
... and choose a suitable format. ( assuming that you are selecting the range, starting in cell A1 ).
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,598
Messages
5,832,646
Members
430,150
Latest member
amitk1

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
Top