+ Reply to Thread
Results 1 to 9 of 9

Cell formatting based on vlookup and multiple cell values

  1. #1
    Registered User
    Join Date
    01-23-2020
    Location
    Scotland
    MS-Off Ver
    0365
    Posts
    18

    Cell formatting based on vlookup and multiple cell values

    What I am looking for is when a % is input in Sheet "Input" Cell B2, B3 Etc, a lookup on Cell B1is carried out against column "B" sheet "lookup". Then the cell "C3" in Sheet "input" is updated to "Not Compliant", "At Risk" and "Compliant" with red, amber and green fill depending upon the acceptable values in sheet "lookup" columns D, E and F
    Attached Files Attached Files

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

    Re: Cell formatting based on vlookup and multiple cell values

    I will have a look, however please remember that we do expect a modicum of common courtesy here - 'please' and 'thank you' are universal courtesies, and you should not take the free help you may be offered here for granted.

    EDIT: Please manually fill in what you are expecting to see in the empty cells and post the workbook again. Thanks.

    AliGW on MS365 Insider (Windows) 32 bit
    A
    B
    C
    1
    Metric Ref:
    Perctange complete
    Formatted Cell
    2
    GOV.AM1
    10%
    3
    GOV.AM1.1
    90%
    Sheet: Input
    Last edited by AliGW; 09-20-2021 at 10:45 AM.
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    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
    28,208

    Re: Cell formatting based on vlookup and multiple cell values

    See attached: I changed the "Lookup" table

    in C2

    =INDEX(Lookup!$D$1:$F$1,MATCH($B2,INDEX(Lookup!$D$3:$F$9,MATCH(Input!$A2,Lookup!$B$3:$B$9,0),0),1))
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    01-23-2020
    Location
    Scotland
    MS-Off Ver
    0365
    Posts
    18

    Re: Cell formatting based on vlookup and multiple cell values

    ALiGW

    You are of course correct and I apologise. I copied this out of an extract from something else I was doing that had the appropriate p's & Q's in.

  5. #5
    Registered User
    Join Date
    01-23-2020
    Location
    Scotland
    MS-Off Ver
    0365
    Posts
    18

    Re: Cell formatting based on vlookup and multiple cell values

    @John Topley, This is so close it is painful . The result is what I am looking for however I still need to visually show what range constitutes at risk etc in the lookup as this is the metrics they are looking to achieve. Is there another way of doing the magic. If I could also ask, would it be possible to put an explanation around what you did with this formula so that I can understand and learn. We should never let good work go to waste.

    If not I will go with this solution.
    Thx

  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
    28,208

    Re: Cell formatting based on vlookup and multiple cell values

    See attached: add the ranges to table

    in D2

    =VLOOKUP(Input!$A2,Lookup!$B$3:$I$9,MATCH(C2,Lookup!$D$1:$F$1,0)+5,FALSE)
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    01-23-2020
    Location
    Scotland
    MS-Off Ver
    0365
    Posts
    18

    Re: Cell formatting based on vlookup and multiple cell values

    That does the job great John. Thanks for all your support.

    K

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,910

    Re: Cell formatting based on vlookup and multiple cell values

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  9. #9
    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
    28,208

    Re: Cell formatting based on vlookup and multiple cell values

    You're welcome and thank you for the rep.

+ 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. Replies: 6
    Last Post: 11-20-2018, 05:38 PM
  2. return multiple header cell values into one cell concatenated based on a cell value
    By anchuri_chaitanya in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-13-2016, 10:27 PM
  3. Replies: 8
    Last Post: 05-01-2015, 02:07 PM
  4. Conditional formatting in multiple cell based on a singe cell
    By Macster in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-29-2014, 04:12 AM
  5. Multiple vlookup values based on text in another cell
    By jmewebb in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-19-2014, 03:24 PM
  6. Replies: 4
    Last Post: 01-31-2012, 04:36 AM
  7. Formatting multiple cells based on cell values
    By BananaTang in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-14-2008, 10:31 AM

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