Create data validation formula so pop up box appears when a number is entered

gatorbug

New Member
Joined
Aug 16, 2018
Messages
5
How do I create a Data Validation formula for Column C? If a person tries to enter a number in Column C when an "X" is in a cell in Column B, would like a pop up box to open that says "Miles Not Allowed". I would prefer not having to create a VBA formula. Also, would I need two different formulas for Column C if a person enters a capital "X" or a lower case "x" in Column B?

[TABLE="class: grid, width: 50"]
<tbody>[TR]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[/TR]
[TR]
[TD]Day[/TD]
[TD]Vacation[/TD]
[TD]Miles[/TD]
[/TR]
[TR]
[TD]Mon[/TD]
[TD="align: center"]X[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Tues[/TD]
[TD="align: center"]X[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Wed[/TD]
[TD="align: center"][/TD]
[TD]200[/TD]
[/TR]
[TR]
[TD]Thurs[/TD]
[TD="align: center"][/TD]
[TD]25[/TD]
[/TR]
[TR]
[TD]Fri[/TD]
[TD="align: center"][/TD]
[TD]50[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Hi & welcome to the board.
in DV select custom & use this formula
=UPPER(B2)<>"X"
 
Upvote 0
Cross posted https://www.excelforum.com/excel-fo...ars-when-a-number-is-entered.html#post4957517

While we do not prohibit Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule 13 here along with the explanation: Forum Rules).
This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered.
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,849
Members
452,361
Latest member
d3ad3y3

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