Creating a popup using data validation

andrewb90

Well-known Member
Joined
Dec 16, 2009
Messages
1,077
I am trying to set up a popup box that appears if no data or a number not between 1 and 12 appears in box D1 on the welcome page.
In the data validation screen, I select allow custom, and uncheck ignore black and put in this formula, but even when I have an acceptable variable in D1 it still pops up.
=IF(Welcome!D1="",FALSE,IF(OR(Welcome!D1<1,Welcome!D1>12),FALSE,TRUE))
What am I doing wrong here?
Any help would be appreciated.

Thanks,
Andrew
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Hi Andrew,

When I enter the formula that you posted in DataValidation (DV) Custom > Formula, I get an error message that ~You cannot use references to other worksheets.

When I removed !Welcome and used just the formula below, it works as you intended (I get the popup message for numbers outside of 1-12 and blanks, but no message upon entering numbers 1-12).

=IF(D1="",FALSE,IF(OR(D1<1,D1>12),FALSE,TRUE))

BTW, You don't need to use the DV Custom formula option for what you are doing.

Instead choose...
Allow: Whole number
Data: between
Minimum: 1
Maximum: 12
 
Upvote 0

Forum statistics

Threads
1,224,566
Messages
6,179,558
Members
452,928
Latest member
101blockchains

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