+ Reply to Thread
Results 1 to 2 of 2

Validate Cells Against 2 Values In Different Sheet Via VBS

  1. #1
    Registered User
    Join Date
    10-24-2012
    Location
    ny
    MS-Off Ver
    Excel 2007
    Posts
    2

    Validate Cells Against 2 Values In Different Sheet Via VBS

    Hi,
    I need to validate sheet1 against sheet2 that the values in columns sheet1 F-G will match sheet2 D and shhet1 B will match sheet2 A.
    Basically I'm trying to recreate something similar to: {=INDEX(Sheet2!$C:$C,MATCH(1,IF(Sheet2!$A:$A=$B2,IF(Sheet2!$D:$D=F2,1)),0))} (I'm not using this b/c it would make the spreadsheet difficult for the end-user to use.)

    Other Details:
    1. Non-Valid: Red
    2. Valid: White
    3. Validation should (if possible) be case insensitive
    4. Sheet1's validation will always start in F but different applications will vary in columns length.
    5. Sheet2's list is connected to a refreshing data connection and will grow over time.

    example.xlsx

    Thank you for your time.
    Last edited by slewitan; 04-22-2013 at 03:47 PM. Reason: updated example.xlsx

  2. #2
    Registered User
    Join Date
    10-24-2012
    Location
    ny
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Validate Cells Against 2 Values In Different Sheet Via VBS

    By the way the "other details" I can handle myself, so if some can just answer the main question I would greatly appreciate it.

    Thanks again.

+ 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