Validate Cells Against 2 Values In Different Sheet Via VBS

slewitan

New Member
Joined
Apr 22, 2013
Messages
2
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 (nonessential for the answer) 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.

Excel 2007/Windows XP
ABCDEFGHIJK
1Application NameApplication IDFirst NameLast NameUsernameReqPOReceiveInvoiceApproveAccount Group
2App11John1Doe1jdoe1WWWWN/AMarketing
3App11John2Doe2jdoe2WRWRN/AStore display
4App11John3Doe3jdoe3N/AN/AN/AN/AWIS and GP
5App11John4Doe4jdoe4WRWRN/AIS
6App11John5Doe5jdoe5WWWWN/AGradus
7App11John6Doe6jdoe6WRWRN/AAll
8App11John7Doe7jdoe7N/AN/AN/AN/AWStore Ops
9App11John8Doe8jdoe8RRWRN/AIS
10App11John9Doe9jdoe9RRWRN/AIS and GP
11App11John10Doe10jdoe10RRWRN/AMarketing
12App11John11Doe11jdoe11WWWWN/AIS and GP
13App11John12Doe12jdoe12N/AN/AN/AN/AWIS
14App11John13Doe13jdoe13N/AN/AN/AN/AWLegal
15App11John14Doe14jdoe14RRWWN/AAll

<tbody>
</tbody>
Sheet1

Excel 2007
ABCD
1Application IDApplication NameOption IDOption Value
231App119Advertising
241App13N/A
251App12W
261App11R
272App243View, Update
282App242View, Add, Update, Delete, Copy
292App241View

<tbody>
</tbody>
Sheet2
Thank you for your time.

P.S. Cross-posted last week at Validate Cells Against 2 Values In Different Sheet Via VBS
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.

Forum statistics

Threads
1,216,040
Messages
6,128,454
Members
449,455
Latest member
jesski

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top