+ Reply to Thread
Results 1 to 3 of 3

Problems with conditional formatting and cells with VLOOKUP.

  1. #1
    Registered User
    Join Date
    08-12-2013
    Location
    Cambridge, England
    MS-Off Ver
    Excel 2007
    Posts
    3

    Problems with conditional formatting and cells with VLOOKUP.

    Hi. Im having problems with conditional formatting and cells with VLOOKUP. Here is my table. snip.JPG

    I have two conditional formats on the cumulative column to turn cells red. The two formula are:
    1) =AND(G44="Test",I44>2)
    2) =AND(G44="sample",I44>5)

    G = product description column
    I = Cumulative column
    44 = First row under the headers

    This seems to work perfectly if I type the product description in manually into column G. However these are the product of a VLOOKUP formula and I can not get it to work. The VLOOKUP formula in the product description column is:
    =IF(D44>0,(VLOOKUP(D44,standard,2)),0)

    D= Code column
    standard = 2nd sperate excell worksheet

    Any help would be great.

    Thanks

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,598

    Re: Problems with conditional formatting and cells with VLOOKUP.

    To attach a Workbook
    (please do not post pictures of worksheets)
    • Click Advanced (next to quick post),
    • Scroll down until you see "Manage Attachments",
    • Click that then select "add files" (top right corner).
    • Click "Select Files" find your file, click "open" click "upload"
    • Once the upload is completed the file name will appear below the input boxes in this window.
    • Click "Done" at bottom right to close the Attachment Manager.
    • Click "Submit Reply"
    Ben Van Johnson

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Problems with conditional formatting and cells with VLOOKUP.

    In 2007, CF does not allow referencing another worksheet. Either pull in the reference to the sheet where you want the CF, or create a named range for the reference and use that in the CF
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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: 05-30-2013, 02:09 AM
  2. Conditional Formatting problems.
    By Jables in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-30-2013, 05:32 PM
  3. Replies: 5
    Last Post: 08-18-2011, 05:03 AM
  4. [SOLVED] Problems with Conditional Formatting
    By Niall in forum Excel General
    Replies: 2
    Last Post: 08-22-2006, 04:45 PM
  5. [SOLVED] Conditional formatting on cells with a VLOOKUP formula in them
    By JenniM in forum Excel General
    Replies: 4
    Last Post: 04-01-2005, 02:06 PM

Tags for this Thread

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