+ Reply to Thread
Results 1 to 7 of 7

V Lookup and Conditional Formatting

Hybrid View

  1. #1
    Registered User
    Join Date
    05-24-2010
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    2

    V Lookup and Conditional Formatting

    Hi Guys,

    Hope you are all ok.

    I require some help with my limited knowledge of Excel.......I know what I want is physically possible, I just dont know how to implement it. And after hours of staring at the screen on Friday afternoon I gave up.

    Basically I want to conditionally format the results my VLOOKUP finds. I work for a mobile phone company and need to report of connections and disconnections and re-activations to accounts.

    My VLookup is comparing MPN (mobile phone number) from Sheet 1 to Sheet 2 and returning a result of either DISCONNECTION, Pending Disconnection, Re-activation or connection.

    IF(ISNA(VLOOKUP(A2,Sheet2!A2:L348,4,FALSE)),"",VLOOKUP(A2,Sheet2!A1:L348,4,0))

    What I want to do is conditionally format this so say the lookup returns ''DISCONNECTION'' i want that returned as a particular colour ie Blue and the same with the other results. The colours are obviously irrelevant.

    I know I need to use a formula in conditional formatting..........I just can't work out the formula.

    Can anyone help?

  2. #2
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: V Lookup and Conditional Formatting

    I don't think you do, really need to use a formula. Just select the column with your results, Press Alt + o, d (bring up conditional formatting dialogue) then you need:
    Cell value (default)
    equal to
    DISCONNECTION
    click [format...]
    select flavours
    [ok]
    [ok]

    Job done?

    HTH
    CC


    If you feel really indebted please consider a donation to charity. My preferred charity is ActionAid but there are plenty of worthy alternatives.

  3. #3
    Registered User
    Join Date
    05-24-2010
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: V Lookup and Conditional Formatting

    Thanks Charlie,

    I have done it this way for the time being but after spending so long on it I am just wondering if anyone can help me with the formula that I was trying to create for four hours on Friday :O)

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

    Re: V Lookup and Conditional Formatting

    Probably:

    =VLOOKUP(A2,Sheet2!A1:L348,4,0)="DISCONNECTION"
    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.

  5. #5
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: V Lookup and Conditional Formatting

    Or, in between:
    formula is:
    =A1="DISCONNECTION"
    HTH

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

    Re: V Lookup and Conditional Formatting

    Yes, for sure that, and your original are the best ways, ... mine was simply, just to satisfy the quandary about incorporating the Vlookup() function in the CF

  7. #7
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: V Lookup and Conditional Formatting

    Indeed, as per your signature

    =VLOOKUP(indirect(lookup(2+("black"="white"),{1,2,3},{"b","a","d"}) & len(right("good",2))),Sheet2!A1:L348,4,0)="DISCONNECTION"



    I'm just being silly, I do understand that yours is the most validating of the OP's original intent.

+ 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