+ Reply to Thread
Results 1 to 5 of 5

Conditional formatting Vloolup/Match inside to change Colour

  1. #1
    Forum Contributor
    Join Date
    09-24-2017
    Location
    Vic Australia
    MS-Off Ver
    Office 365 Apps for enterprise
    Posts
    147

    Conditional formatting Vloolup/Match inside to change Colour

    Good afternoon

    I have been looking on the net to use conditional formatting Cant seem to find the right guide

    I am trying to get Column A to look up its self the truck number and match it to Column j and M and going on the cell next to it the colour would change
    Green for PIK Red for REL

    I have tried to use =$N3="PIK" which was working Then I remember some times we have a truck that is not on the list so we add it in e.g. Truck 14A Truck3A in Column A

    which then bugs out =$N3="PIK" and it changes some of the colours

    I think I need to use a vlookup or a Match

    Any help would be great
    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,717

    Re: Conditional formatting Vloolup/Match inside to change Colour

    1. Select cell A1.
    2. Create the first formatting rule (green) using this formula: =IFERROR(VLOOKUP(A1,$J$3:$K$27,2,0)="PIK",VLOOKUP(A1,$M$3:$N$27,2,0)="PIK")
    3. Set the Applies To field to =$A:$A.
    4. Create the second formatting rule (red) using this formula: =IFERROR(VLOOKUP(A1,$J$3:$K$27,2,0)="REL",VLOOKUP(A1,$M$3:$N$27,2,0)="REL")
    5. Set the Applies To field to =$A:$A.

    All done. You will have to delete all your attempted rules first, or they will interfere with the results.
    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 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,717

    Re: Conditional formatting Vloolup/Match inside to change Colour

    Sample of the above now attached.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    09-24-2017
    Location
    Vic Australia
    MS-Off Ver
    Office 365 Apps for enterprise
    Posts
    147

    Re: Conditional formatting Vloolup/Match inside to change Colour

    Good afternoon AliGW

    You are the best did not know you could do 2 vlookups with inside the 1 formula
    After getting this to work on my sample book I have changed all the cells to match my main sheet
    =IFERROR(VLOOKUP(B1,'Pick order'!$L$4:$M$28,2,0)="REL",VLOOKUP(B1,'Pick order'!$O$4:$P$28,2,0)="REL")

    Thanks again for all your help
    JustinwB

  5. #5
    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,717

    Re: Conditional formatting Vloolup/Match inside to change Colour

    You're welcome!

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

+ 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. Change text colour in Conditional formatting
    By webcommerce in forum Excel General
    Replies: 6
    Last Post: 04-16-2017, 07:20 PM
  2. Replies: 6
    Last Post: 04-11-2016, 09:48 AM
  3. Replies: 5
    Last Post: 10-03-2009, 04:31 PM
  4. Conditional formatting to change colour of Rows
    By bengaluru in forum Excel General
    Replies: 10
    Last Post: 08-19-2009, 02:41 PM
  5. Change colour in a cell - conditional formatting?
    By ionistis in forum Excel General
    Replies: 9
    Last Post: 12-04-2008, 03:38 PM
  6. [SOLVED] change the colour of a value:Conditional formatting query
    By oktc in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-23-2006, 05:35 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