+ Reply to Thread
Results 1 to 8 of 8

Thread: Need some help on Conditional Formatting

  1. #1
    Registered User
    Join Date
    10-19-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    9

    Need some help on Conditional Formatting

    Hi everybody,

    This is my problem, I have two tables of values, 2nd table to compare against table 1 values with cells being highlighted if values of the 2nd table are higher than that of the first.

    However, because I have certain duplicates for some data, my formula for conditional formatting only detects the first data and totally misses the 2nd one. Its kind of hard to narrate my problem so I have attached a sample of it.

    Thanks if you are viewing this.
    Attached Files Attached Files
    Last edited by Leon86; 10-28-2011 at 06:30 AM.

  2. #2
    Forum Guru Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    5,572

    Re: Need some help on Conditional Formatting

    Try
    Highlight E8:E12
    Conditional Formatting > New Rule > Use Formula to ....
    Format values where this value is true
    =E8>INDEX($B$2:$E$5,MATCH(B8,$A$2:$A$5,0),MATCH(D8,$B$1:$E$1,0))
    Format Cells > Your Choice.
    Attached Files Attached Files
    Last edited by Marcol; 10-27-2011 at 05:29 AM.
    If you need any more information, please feel free to ask.

    However, if this takes care of your needs, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED. It helps everybody! ....
    Also
    If you are satisfied by any members response to your problem please consider using the small Star icon botom left of thier post to show your appreciation.

  3. #3
    Registered User
    Join Date
    10-19-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Need some help on Conditional Formatting

    Thanks for your fast response. It is more or less what I wanted however, how would I need to edit it cause i actually want it compared in opposite ways. The table at the bottom would be where I input the data to be compared against the table at the top which would be highlighted. So the problem which I had was that Holland CC & Holland TP needs to be compared against one value at the top only.

    Thanks for everything againz

  4. #4
    Forum Guru Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    5,572

    Re: Need some help on Conditional Formatting

    If I read you correctly I would use a helper table, this can be hidden using the grouping button.

    See if this workbook helps.
    Attached Files Attached Files
    Last edited by Marcol; 11-02-2011 at 07:12 AM. Reason: Corrected formula refs as shown in post #8
    If you need any more information, please feel free to ask.

    However, if this takes care of your needs, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED. It helps everybody! ....
    Also
    If you are satisfied by any members response to your problem please consider using the small Star icon botom left of thier post to show your appreciation.

  5. #5
    Registered User
    Join Date
    10-19-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Need some help on Conditional Formatting

    Sorry for the late reply. Is it possible in your solution to not have the result table and hence just the two tables from the original, which means end of the day I am only left with only two tables only.

    Thanks Alot !!

  6. #6
    Forum Guru Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    5,572

    Re: Need some help on Conditional Formatting

    It's possible but would be quite complicated and in all probability much heaviery on memory with larger tables.

    You could put the result table on a seperate, hidden, sheet if that would suit you better.
    If you need any more information, please feel free to ask.

    However, if this takes care of your needs, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED. It helps everybody! ....
    Also
    If you are satisfied by any members response to your problem please consider using the small Star icon botom left of thier post to show your appreciation.

  7. #7
    Registered User
    Join Date
    10-19-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Need some help on Conditional Formatting

    Will do. Thanks Againz much appreciated !

  8. #8
    Forum Guru Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    5,572

    Re: Need some help on Conditional Formatting

    In reply to yuor PM regarding extending this table.

    Unfortunately I was a bit careless this is solution.
    The formula in H2 should have been
    =MAX(MAX(IF($B$8:$B$12&$D$8:$D$12=$B$1&D$1,$E$8:$E$12,"")),MAX(IF($B$8:$B$12&$D$8:$D$12=$D$1&B$1,$E$8:$E$12,"")))
    Confirm with Ctrl+Shift+Enter
    Drag across as required.
    Copy this to I3 and drag the references to B1 & C1 to C1 & D1, confirm the formula then drag across.
    Repeat this pattern as required.

    I have replaced the attachment in post #4 with a corrected workbook.
    If you need any more information, please feel free to ask.

    However, if this takes care of your needs, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED. It helps everybody! ....
    Also
    If you are satisfied by any members response to your problem please consider using the small Star icon botom left of thier post to show your appreciation.

+ 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.2.0