Fill any five cell only

kamaruddinjnv

Board Regular
Joined
Mar 14, 2014
Messages
56
A. B. C. D. E. F. G
1. 4. 6. 8. 9. 6
2. 6. 8. 9. 4. 3
3. 4. 5. 7. 8. 3
4
5
FILL LIKE THIS.
IF FILL MORE THAN FIVE CELL IT SHOULD SHOW ERROR.
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

Try this
Select A1:G5
Data ribbon tab -> Data Validation -> Settings tab -> Allow: Custom -> Formula: =COUNTA($A1:$G1)<=5 -> OK
 
Upvote 0
Thanks mr Peter, its working nicely.
but i want to add one more criteria in this cell like in b1:b3 cells not more than B5 value.
how can i add this validation also.
 
Upvote 0
Please review the first paragraph of my previous post. ;)

Thanks mr Peter, its working nicely.
Good news. Thanks for the confirmation.

i want to add one more criteria in this cell like in b1:b3 cells not more than B5 value.
how can i add this validation also.
I am not entirely clear what is required. Can you give some examples of rows of data showing what is allowed and what is not allowed with XL2BB and explain again in relation to that sample data?
 
Upvote 0

Forum statistics

Threads
1,215,088
Messages
6,123,056
Members
449,091
Latest member
ikke

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