validation help

ganeshpoojary05

Board Regular
Joined
Apr 26, 2011
Messages
105
hi all,

i need a help in validating cells.

for example:

I am preparing a Attendance Report, i need to validate in such a way that if there are leaves(L) more than 10, than it should not allow me to enter and it should prompt a message as "Leaves Exceeded"
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Go to Data tab and press Data Validation.
Here you can set your requirement for input data. Also you can display warning in case of incorrect input.
 
Upvote 0
hi all,

i need a help in validating cells.

for example:

I am preparing a Attendance Report, i need to validate in such a way that if there are leaves(L) more than 10, than it should not allow me to enter and it should prompt a message as "Leaves Exceeded"
Let's assume the range of cells is A2:A20.

Select the entire range A2:A20
Goto Data>Validation
Allow: Custom
Formula: =COUNTIF(A$2:A$20,"L")<=10
Click the Error Alert tab
As the error alert message enter: Leaves Exceeded
OK out
 
Upvote 0

Forum statistics

Threads
1,224,561
Messages
6,179,522
Members
452,923
Latest member
JackiG

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