+ Reply to Thread
Results 1 to 11 of 11

Condtional Format based on Lookup Value?

  1. #1
    Registered User
    Join Date
    11-20-2015
    Location
    Cheshire, England
    MS-Off Ver
    2013
    Posts
    11

    Angry Condtional Format based on Lookup Value?

    So i have a table of data see attached file for example of data:

    Excel Forum Example.xlsx

    The sheet is supposed to compare the data in the table to its relevant SOM bracket and then highlight with CF if the value exceeds the screening value.
    What happens here is the SOM bracket on row 5 is calculated based on the figure in row 14.
    After that what i want to do is condtionally format the data in range h7:k13. So to follow the data through for a specific example this is what i want to happen.

    E.g. K7

    The value is 14.1 and (following the same sample down) the SOM is 3.4. The correct SOM bracket for this data is 6% SOM. (i have already figured out the formula for this).
    Going to the range c6:e6 we can then find the correct SOM and corresponding screening values. This should then imply the corresponding determinant for cell k7 is in cell e7.

    I want excel to then decide 'is k7 greater than e7'. If it is then highlight it to the user.

    I cannot wrap my brain around how to do this.. I feel like it may require a h or vlookup within a conditional format equation... but i may be wrong.

    Does anyone have any ideas on this?

    Regards,

    Dan

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,881

    Re: Condtional Format based on Lookup Value?

    The formula for CF for cell K7 is:

    =K7>E7
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Condtional Format based on Lookup Value?

    I'm a bit lost..... How does the value of 3.4 in K14 influence the outcome of this???

    Also, you say you have some formulae here - but htere are none in your example.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Condtional Format based on Lookup Value?

    Yea - is it just as simple as Ali has suggested??? If so, I've horribly mis-read your request.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,881

    Re: Condtional Format based on Lookup Value?

    I think this is the key request:

    I want excel to then decide 'is k7 greater than e7'. If it is then highlight it to the user.
    I don't really understand the rest ...
    Last edited by AliGW; 11-22-2015 at 01:30 PM.

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    31,230

    Re: Condtional Format based on Lookup Value?

    This formula will retrieve the value in E7

    =INDEX($C$7:$E$13,,MATCH(K$14,$C$6:$E$6,1)) using K14 as SOM value (But why not the SOM values in row 5?)

    You should able to adapt it for the other columns.

    For CF you could then use =K7>INDEX($C$7:$E$13,,MATCH(K$14,$C$6:$E$6,1)) and apply to K7 to K13

    Hope this helps.

  7. #7
    Registered User
    Join Date
    11-20-2015
    Location
    Cheshire, England
    MS-Off Ver
    2013
    Posts
    11

    Re: Condtional Format based on Lookup Value?

    I have ammended the file slightly for Glenn K. See attached.

    Excel Forum Example.xlsx

    Glenn K: Sorry i have inserted the formula now. I have taken this data from another sheet and only pasted the values not the formulae.
    The SOM in row 14 is raw data. Then I then put it into one of three brackets 1% 2.5% and 6% (calculated by row 5).

    I understand basic conditional formatting so thats not the issue so much.
    John Topley is on the right tracks of what im trying to do here i feel. However this formula is only returning values from determinand A only.

    What it needs to do is for any given cell in the range h7:k13 [e.g. i9] it should read UP to the SOM from row 5 [2.5%] (which has been calculated) then go across to the determinand on that row [determinand c] and the corresponding SOM [2.5%] to find the screening value [510].
    The value in i9 (0.74) should then be compared to see if it is greater than c9 (510) in this case, no.

    Hope that helps the description.

  8. #8
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    Win10/MSO2016
    Posts
    12,997

    Re: Condtional Format based on Lookup Value?

    Please Login or Register  to view this content.
    Screen_Header, $C$6:$E$6
    Screening_Table, $C7:$E$13
    SOM_Bracket, $H$5:$K$5
    Ben Van Johnson

  9. #9
    Registered User
    Join Date
    11-20-2015
    Location
    Cheshire, England
    MS-Off Ver
    2013
    Posts
    11

    Re: Condtional Format based on Lookup Value?

    protonLeah - This worked great Thanks.
    Just what i needed.

    Many Thanks,

    Dan

  10. #10
    Registered User
    Join Date
    11-20-2015
    Location
    Cheshire, England
    MS-Off Ver
    2013
    Posts
    11

    Re: Condtional Format based on Lookup Value?

    I am struggling to apply this conditional formatting to the larger table of data.

    See my attached excel file.

    Basic Summary Sheet.xlsx

    The formatting appears to be still looking at the top line and cannot be applied to the lower rows.

    Can i ask what the index column figure '-7' is doing in this equation?
    Or if someone could explain the whole equation that may help too.
    I am struggling to understand why this wont apply when I am formatting it.

    Regards,
    Attached Files Attached Files
    Last edited by DGATES8; 11-26-2015 at 06:56 AM.

  11. #11
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2505
    Posts
    27,223

    Re: Condtional Format based on Lookup Value?

    Participants in this thread, please see follow-up question in

    http://www.excelforum.com/excel-form...ting-help.html

    Thanks.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Condtional Format a shape
    By rosshkerr in forum Excel General
    Replies: 2
    Last Post: 09-17-2015, 11:01 PM
  2. [SOLVED] Condtional format to entire row based on two difference cell value.
    By shiva_reshs in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-04-2014, 11:02 AM
  3. [SOLVED] Lookup date and condtional format colour based on date
    By Smudge.Smith in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-25-2013, 08:38 AM
  4. Condtional Format Maximum and Text
    By windme in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 12-25-2010, 06:08 PM
  5. Condtional format range
    By windme in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-22-2006, 02:14 PM
  6. condtional format to
    By Todd in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-16-2006, 01:00 PM
  7. Replies: 8
    Last Post: 05-14-2005, 10:07 PM

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