Data Validation and "Ignore Blank"

MikeMcCollister

Board Regular
Joined
May 6, 2020
Messages
55
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
 

Some videos you may like

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

earthworm

Active Member
Joined
May 19, 2009
Messages
368
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
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
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
52,960
Office Version
  1. 365
Platform
  1. Windows
Another option, select A2:C2 & use this
Excel Formula:
=AND(ISNUMBER(A2),COUNTIF($A2:$C2,"")=2)
 

MikeMcCollister

Board Regular
Joined
May 6, 2020
Messages
55
Office Version
  1. 365
Platform
  1. Windows
Thanks all for your help. That made a difference.

Regards,

Mike
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
52,960
Office Version
  1. 365
Platform
  1. Windows
Glad we could help & thanks for the feedback.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,588
Messages
5,597,049
Members
414,117
Latest member
marblepoint

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
Top