+ Reply to Thread
Results 1 to 7 of 7

Conditional Format colour

  1. #1
    Registered User
    Join Date
    12-16-2006
    Posts
    26

    Conditional Format colour

    Is it possible to have the conditional formating in my attached file to say DISQ instead of whats there now if a match is not found?
    Attached Files Attached Files

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,481
    Try iserror for vlookup, place this formula in column B
    =IF(ISERROR(VLOOKUP(A1,E:G,2,FALSE)),"disq",VLOOKUP(A1,E:G,2,FALSE))
    =IF(ISERROR(VLOOKUP(A2,E:G,2,FALSE)),"disq",VLOOKUP(A2,E:G,2,FALSE))
    =IF(ISERROR(VLOOKUP(A3,E:G,2,FALSE)),"disq",VLOOKUP(A3,E:G,2,FALSE))
    =IF(ISERROR(VLOOKUP(A4,E:G,2,FALSE)),"disq",VLOOKUP(A4,E:G,2,FALSE))
    =IF(ISERROR(VLOOKUP(A5,E:G,2,FALSE)),"disq",VLOOKUP(A5,E:G,2,FALSE))

  3. #3
    Registered User
    Join Date
    12-16-2006
    Posts
    26
    Dave, I then get #NAME? and lose my original match of GB07L39311 a1:

    BUY & SELL MEN #NAME? 02:05:14.700
    P T DOBIE disq 02:05:15.200

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,481
    Quote Originally Posted by meridklt
    Dave, I then get #NAME? and lose my original match of GB07L39311 a1:

    BUY & SELL MEN #NAME? 02:05:14.700
    P T DOBIE disq 02:05:15.200
    #NAME error?
    But it works for the second line,?
    I'm sure you can see what the formula is supposed to do, try rewriting it in B1

    here's more help on vlookup

    http://www.contextures.com/xlFunctions02.html

  5. #5
    Registered User
    Join Date
    12-16-2006
    Posts
    26
    Thanks Dave, but all that lost me.

  6. #6
    Forum Contributor
    Join Date
    08-28-2006
    Posts
    280
    meridklt,

    If you look at the formulas in Daves post you will notice a space between the "u" and "p" in the second instance of Vlookup.

    =IF(ISERROR(VLOOKUP(A1,E:G,2,FALSE)),"disq",VLOOKU P(A1,E:G,2,FALSE))


    That space should not be there. It happens sometimes on this forum. Just remove that space and you should no longer get #NUM.

    hth,

    Dean

  7. #7
    Registered User
    Join Date
    12-16-2006
    Posts
    26
    Thanks Dean, works fine now.

+ 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