+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : Conditional Format on matching ID's

  1. #1
    Registered User
    Join Date
    01-04-2011
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    2

    Conditional Format on matching ID's

    Hello,

    I am new to excel 2007 and have been trying to do the following for a few hours (without any luck).

    I have 2 columns of data one containing an unique user ID and the other showing some user submitted data as shown below.

    ID Data

    48 forename 1
    48 surname 1
    48 Address 1
    48 Comment 1
    49 forename 2
    49 surname 2
    49 Address 2
    49 Comment 2
    50 forename 3
    50 surname 3
    50 Address 3
    50 Comment 3


    What i would like to do would be to either merge the 2 columns into single rows where the ID numbers match.

    OR

    Leave the structure the same and have alternative row(s) colour for each set of ID's so all the ID's that equal 48 will be red, all ID's that equal 49 will be blue ID's equal 50 will be red again and so on.

    Many thanks in advance

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Conditional Format on matching ID's

    With the second option,

    If you select from row2 downwards, the whole range.. then apply conditional Formatting|New Rule from the Home tab.

    Select Use a formula to determine which cells to format... then insert:

    =MOD(ROUNDUP(SUM(1/COUNTIF($A$1:$A1,$A$1:$A1)),0),2)=1

    Assuming you are starting at A2....

    Click format and choose colour from Fill tab
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    01-04-2011
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Conditional Format on matching ID's

    WOW, thanks a million for the fast / accurate reply, works like a charm.

    Cheers

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1