Creating a "valid" or a "invalid" list for accurate data input

JinTHR

New Member
Joined
Jan 7, 2015
Messages
13
Hello everyone, Hope everyone is doing well.

I am trying to design a spreadsheet that will be used to record information from invoices. One column in this spreadsheet will be used to record the store number that the invoice originated from. This number has to match the invoice or else the information is worthless. I am trying to come up with a way to deny the input of an incorrect number. So if the person inputting the data makes a typo, and types "1235" instead of "1234", excel prompts them with a message or just denies the input all together. I was thinking about listing all the store numbers on a separate spreadsheet and if the inputted number doesn't match that list, excel than prompts with a message or something along those lines. If anyone can help that would be fantastic! If further explanation is needed please let me know!

Thanks Everyone!
Jin
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
You can do that with Data Validation.

If your list of valid entries is in say Sheet2!A1:A10

Then select your cell(s) that you want to restrict entry to that list
On the Data Tab, click Data Validation
Select List
And put in
=Sheet2!$A$1:$A$10
Click OK
 
Upvote 0

Forum statistics

Threads
1,222,749
Messages
6,167,958
Members
452,158
Latest member
MattyM

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