Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Allow only 12 entries in a column

I have a sheet with Products on them. I only the customer to choose up to
12 items. They do this by putting a quantity in column "D".

I would like a message box to appear if they have filled in more than 12
rows for column "D". So on the 13th entry, the message box should appear.
How can I do this?

Thanks,

Gary


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Allow only 12 entries in a column

Use Data validation

Select column D

data=Validation

Select custom from the Allow: dropdown

put in the custom formula:

=CountA(D:D)<=13

then go to the message tab and enter your message

Change 13 to 12 if you don't have a header entry in D1.

--
Regards,
Tom Ogilvy

"Gary" wrote in message
...
I have a sheet with Products on them. I only the customer to choose up to
12 items. They do this by putting a quantity in column "D".

I would like a message box to appear if they have filled in more than 12
rows for column "D". So on the 13th entry, the message box should appear.
How can I do this?

Thanks,

Gary




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Allow only 12 entries in a column

Tom,

Thanks for the reply but I just tried it and it works well for the column.
What if I wanted to only count entries in rows 2-50? Only allow 12 entries
in those rows? I tried to modify the =CountA(D:D)<=13 to
=CountA(D2:D50)<=13, but it didn't work.

Thanks,

Gary

"Tom Ogilvy" wrote in message
...
Use Data validation

Select column D

data=Validation

Select custom from the Allow: dropdown

put in the custom formula:

=CountA(D:D)<=13

then go to the message tab and enter your message

Change 13 to 12 if you don't have a header entry in D1.

--
Regards,
Tom Ogilvy

"Gary" wrote in message
...
I have a sheet with Products on them. I only the customer to choose up

to
12 items. They do this by putting a quantity in column "D".

I would like a message box to appear if they have filled in more than 12
rows for column "D". So on the 13th entry, the message box should

appear.
How can I do this?

Thanks,

Gary






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Allow only 12 entries in a column

You need to use absolute cell references

=CountA($D$2:$D$50)<13

Select D2:D50 and do Data=Validation, entering that formula

--
Regards,
Tom Ogilvy

"Gary" wrote in message
...
Tom,

Thanks for the reply but I just tried it and it works well for the column.
What if I wanted to only count entries in rows 2-50? Only allow 12

entries
in those rows? I tried to modify the =CountA(D:D)<=13 to
=CountA(D2:D50)<=13, but it didn't work.

Thanks,

Gary

"Tom Ogilvy" wrote in message
...
Use Data validation

Select column D

data=Validation

Select custom from the Allow: dropdown

put in the custom formula:

=CountA(D:D)<=13

then go to the message tab and enter your message

Change 13 to 12 if you don't have a header entry in D1.

--
Regards,
Tom Ogilvy

"Gary" wrote in message
...
I have a sheet with Products on them. I only the customer to choose

up
to
12 items. They do this by putting a quantity in column "D".

I would like a message box to appear if they have filled in more than

12
rows for column "D". So on the 13th entry, the message box should

appear.
How can I do this?

Thanks,

Gary








Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Checking Column Entries gtb Excel Worksheet Functions 9 November 3rd 08 06:10 AM
Duplicate entries in more than one column ZoR Excel Worksheet Functions 5 January 31st 08 06:27 PM
Counting entries in column based on condition in another column RobertR Excel Worksheet Functions 1 February 8th 07 03:54 PM
Count entries in one column based on values in another column Kurt Excel Worksheet Functions 7 January 10th 07 09:29 PM
Locking column entries to an adjacent linked column Steeljaw Excel Discussion (Misc queries) 1 January 23rd 06 10:45 PM


All times are GMT +1. The time now is 11:44 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"