How JustAnswer Works:
  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.
Ask Pete Your Own Question
Pete, Computer Expert
Category: Microsoft Office
Satisfied Customers: 17273
Experience:  MS Office expert
Type Your Microsoft Office Question Here...
Pete is online now
A new question is answered every 9 seconds

I receive a 7,000 row excel file every couple days that has

This answer was rated:

I receive a 7,000 row excel file every couple days that has a unique identifier in the first column and the rows are sorted by this.

I would like to highlight the rows with the same unique identifier, then not highlight the next group of rows with a unique identifier then highlight the next group of rows that has the next unique identifier...repeating for all 7,000 rows.
I am Pete, and I'll be happy to assist with your question today.

Are the unique identifiers all consecutive numbers?
Could you attach a sample file here, if possible?
Customer: replied 4 years ago.

Pete - They are not consecutive.


How do I attach?



Hi Greg,

You should see a Paperclip icon (or possibly a 'Tree' icon) on the toolbar above where you reply here, depending on which web browser you are using. It is normally used for attached images, but can also be used to attach files.
If you don't see any such icons, you can upload the file to a free file-sharing website, e.g.
Customer: replied 4 years ago.

Attachment: 2012-11-12_151514_prior_day_10_27.xlsx


File attached

Hi Greg,

I have assumed the Job No. is the unique identifier.
I have added an additional column on the right hand side to identify if the Job No's are the same or not. I have then used conditional formatting to highlight the entire row based on the identifier. See attached.

Attachment: 2012-11-12_234052_prior_day_10_27-shaded.xlsx

Customer: replied 4 years ago.

Pete....Great solution ...I will send a tip after you explain how to apply the rule to all rows with a 1 value

I see the if statment but can not get it to apply to the whole worksheet when I try to replicate your work.


I will tip


Thanks Greg

Hi Greg,

To get the rule to apply to the whole worksheet, first highlight all of the cells you want to apply the formatting to by clicking in the top left cell (A2) then press CTRL-SHIFT-END,
before entering the conditional format IF statement.


Pete and 3 other Microsoft Office Specialists are ready to help you

Related Microsoft Office Questions