+ Reply to Thread
Results 1 to 6 of 6

Vlookup by cell background color #VALUE! error

  1. #1
    Registered User
    Join Date
    10-11-2019
    Location
    Nottingham
    MS-Off Ver
    MS Office
    Posts
    42

    Vlookup by cell background color #VALUE! error

    Hello guys,

    i am using the below Macro (found it on pk-anexcelexpert.com) to lookup value but I am getting #VALUE! error, but when i use this macro on a new sheet it works fine .any help please.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    XLS 2016
    Posts
    3,710

    Re: Vlookup by cell background color #VALUE! error

    Can you explain how it should work...!
    In your example, if M5 has the same color than S5 value result is "Bank Holiday" is it ???
    - Battle without fear gives no glory - Just try

  3. #3
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    1,280

    Re: Vlookup by cell background color #VALUE! error

    Quote Originally Posted by ismailshajji View Post
    ... but I am getting #VALUE! error, but when i use this macro on a new sheet it works fine ...
    Cell "M5" has Conditional Formatting and cells "S5:T5" are normally/usually/ordinary formatted - therefore the function does not work.
    Last edited by porucha vevrku; 11-10-2019 at 03:09 PM.

  4. #4
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    XLS 2016
    Posts
    3,710

    Re: Vlookup by cell background color #VALUE! error

    After a first review, it seems that
    Please Login or Register  to view this content.
    is disturbing the function
    What is the purpose of this macro ??

  5. #5
    Registered User
    Join Date
    10-11-2019
    Location
    Nottingham
    MS-Off Ver
    MS Office
    Posts
    42

    Re: Vlookup by cell background color #VALUE! error

    I am planning to implement this with the Annual leave spreadsheet . Using the conditional formatting the leave date will be highlighted with a specific colour.

  6. #6
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    1,280

    Re: Vlookup by cell background color #VALUE! error

    For conditional formatting in the "r1" range and normal formatting in the "cel" range, the following code:
    Please Login or Register  to view this content.
    is incorrect.

+ 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