LoginSign up
AccountingWEB
Subscribe to Newsletter
Menu
Tax
Sales TaxIRSIndividualsBusiness Tax
Practice
ClientsGrowthPractice Excellence
A&A
StandardsFraudAuditing
Technology
ExcelSoftware NewsTrends
Bookkeeping Essentials
White Papers
Ask an Accountant
Webinars
Practice ExcellenceTax TalkTech Pulse
Summit 2023
Subscribe to Newsletter
TomTheToolman
Member Since: Jul 27th 2015
Blogger
Likes: 0
Thanks: 0
TomTheToolman
  • Blog posts
  • Questions
  • Answers
  • Comments

My answers

Jul 27th 2015

It requires some non-trivial VBA, but you could add a Worksheet_Change event handler to the sheet to validate the data using the Target cell and the named range of the validation table. This gives you a lot of options on how to handle invalid data - a pop-up error message (msgbox) or moving the cursor back to the invalid cell are two.

For situations where a simple warning will suffice, I've used conditional formatting to automatically highlight a cell with an invalid or missing value. Here's the formula:

=ISNA(VLOOKUP(J7,DataTable,2,FALSE))

Tom the Toolman

Reply to
Automating Data Validation Lists in Excel
Jul 27th 2015

I was puzzled at first about the assertion that for Excel 2007 and earlier, "data validation lists cannot be placed on other worksheets". I routinely do this in both 2003 and 2007 and it seems to work fine. I simply use a defined name for the range of cells that covers the data for the validation list.

It turns out that the issue is due to the "table" or "list" feature in Excel. As I didn't know about this feature, I had never used it. (BTW thanks for that into - I love learning new stuff). I simply used a named range for my validation data.

Of course, when I want to insert items, I must be sure to insert *within* the list so that the named range is updated properly. Often, I then have to copy/paste or sort the data to put it where it needs to be in the list. But I inadvertently avoided the "different sheet" issue this way.

So I thought I'd mention this for users who really want to put the data validation list on another sheet. Just use a global named range for the values and it'll work fine. Just be sure to insert new entries between existing ones so that the defined name gets updated as needed.

Tom the Toolman

Reply to
Automating Data Validation Lists in Excel

Most read this week

Clients
Jun 27th 2022

How Financial Planning Will Lead to More Business

by
Bryce Sanders
stock options tax

Trending

Clients
Jun 27th 2022

How Financial Planning Will Lead to More Business

by
Bryce Sanders
Growth
Jun 27th 2022

How to Make Your Digital Transformation Successful

by
Lee Frederiksen
Practice Excellence
Dec 14th 2021

Maximizing Your Firm's Profitability in 2022

by
Randy Johnston

Upcoming Events

AICPA Engage
June 6-9
Scaling New Heights
June 19-22
NAEA 2022 Tax Summit
July 24-26
Xerocon US 2022
August 24-25
  • About SIFT
  • Advertise on AccountingWEB
  • Terms of use
  • Privacy policy
  • Contact us
Copyright 2022 Sift
Sift