Data Validation and "Ignore Blank"

MikeMcCollister

Board Regular
Joined
May 6, 2020
Messages
71
Office Version
  1. 365
Platform
  1. Windows
I have three adjacent cells which I want to restrict numbers to be entered into only one. So I have a data validation scheme setup so that I am using for cell A2

Excel Formula:
=AND(ISNUMBER(A2), ISBLANK(B2), ISBLANK(C2))

If I have "Ignore blank" checked, this does not work, as shown here. Why is that?

1599834497063.png


Thanks,

Mike
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Apply this formula in Data validation and Uncheck click blank and apply in all three cell

Excel Formula:
=OR(AND(ISNUMBER($A2),ISBLANK($B2),ISBLANK($C2)),AND(ISNUMBER($B2),ISBLANK($A2),ISBLANK($C2)),AND(ISNUMBER($C2),ISBLANK($A2),ISBLANK($B2)))

after this user will be allowed to input only 1 number in a row . otherwise it will give error as required
 
Upvote 0
Another option, select A2:C2 & use this
Excel Formula:
=AND(ISNUMBER(A2),COUNTIF($A2:$C2,"")=2)
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,642
Messages
6,120,701
Members
448,980
Latest member
CarlosWin

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