#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default CountIF

I have a column named PTS Number
I have used the custom validation to ensure that duplicate values are not
repeated.
Is there a way of combining the COUNTIF formula to ensure that at least 6
numeric characters are imputed?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default CountIF

Is there a way of combining the COUNTIF formula to ensure
that at least 6 numeric characters are imputed?


What is the format of these 6 numbers? Will there be any leading 0s? Is this
a legitimate number: 000000 ?

--
Biff
Microsoft Excel MVP


"JohnButt" wrote in message
...
I have a column named PTS Number
I have used the custom validation to ensure that duplicate values are not
repeated.
Is there a way of combining the COUNTIF formula to ensure that at least 6
numeric characters are imputed?



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default CountIF

It could vary - 123567 - 234567 - 556777 - 776688 etc

"T. Valko" wrote:

Is there a way of combining the COUNTIF formula to ensure
that at least 6 numeric characters are imputed?


What is the format of these 6 numbers? Will there be any leading 0s? Is this
a legitimate number: 000000 ?

--
Biff
Microsoft Excel MVP


"JohnButt" wrote in message
...
I have a column named PTS Number
I have used the custom validation to ensure that duplicate values are not
repeated.
Is there a way of combining the COUNTIF formula to ensure that at least 6
numeric characters are imputed?




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default CountIF

Assume the range of interest is A1:A10. Use this as the validation formula:

=AND(INT(A1)=A1,AND(A1=100000,A1<=999999),COUNTIF ($A$1:$A$10,A1)<2)


--
Biff
Microsoft Excel MVP


"JohnButt" wrote in message
...
It could vary - 123567 - 234567 - 556777 - 776688 etc

"T. Valko" wrote:

Is there a way of combining the COUNTIF formula to ensure
that at least 6 numeric characters are imputed?


What is the format of these 6 numbers? Will there be any leading 0s? Is
this
a legitimate number: 000000 ?

--
Biff
Microsoft Excel MVP


"JohnButt" wrote in message
...
I have a column named PTS Number
I have used the custom validation to ensure that duplicate values are
not
repeated.
Is there a way of combining the COUNTIF formula to ensure that at least
6
numeric characters are imputed?






  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default CountIF

Thank You - works perfectly - you deserve the MVP.

"JohnButt" wrote:

I have a column named PTS Number
I have used the custom validation to ensure that duplicate values are not
repeated.
Is there a way of combining the COUNTIF formula to ensure that at least 6
numeric characters are imputed?



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default CountIF

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"JohnButt" wrote in message
...
Thank You - works perfectly - you deserve the MVP.

"JohnButt" wrote:

I have a column named PTS Number
I have used the custom validation to ensure that duplicate values are not
repeated.
Is there a way of combining the COUNTIF formula to ensure that at least 6
numeric characters are imputed?



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default CountIF

Hello once again

The formula you provided worked fine until I entered the text 'MainID' into
A1 - have tried all sorts of permutations but have failed to get the results
wanted - do you have any suggestions.

"T. Valko" wrote:

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"JohnButt" wrote in message
...
Thank You - works perfectly - you deserve the MVP.

"JohnButt" wrote:

I have a column named PTS Number
I have used the custom validation to ensure that duplicate values are not
repeated.
Is there a way of combining the COUNTIF formula to ensure that at least 6
numeric characters are imputed?




  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default CountIF

to ensure that at least 6 numeric characters are imputed
worked fine until I entered the text 'MainID' into A1


Hmmm...

The text "MainID" isn't 6 digits, is it? <g

So, does that mean the entry could be *either* a text string or a 6 digit
number?



--
Biff
Microsoft Excel MVP


"JohnButt" wrote in message
...
Hello once again

The formula you provided worked fine until I entered the text 'MainID'
into
A1 - have tried all sorts of permutations but have failed to get the
results
wanted - do you have any suggestions.

"T. Valko" wrote:

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"JohnButt" wrote in message
...
Thank You - works perfectly - you deserve the MVP.

"JohnButt" wrote:

I have a column named PTS Number
I have used the custom validation to ensure that duplicate values are
not
repeated.
Is there a way of combining the COUNTIF formula to ensure that at
least 6
numeric characters are imputed?






  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default CountIF

Thanks for the response - at least you didn't call me a dope!

I have generally always used a database with defined fields but
unfortunatley the company I am presently working for have Office installed
but without Access so I have had to convert the database I already had into
Excel.

The reason - as you have probably already guessed - for placing the text in
A1 as 'Main Id' - is to give a descriptive title to the entries below it -
which will always be numeric.

I think I may have worked out how to solve the problem - purely by taking
the validation off the single cell A1. At least it seems to work.

You may have another suggestion.

"T. Valko" wrote:

to ensure that at least 6 numeric characters are imputed

worked fine until I entered the text 'MainID' into A1


Hmmm...

The text "MainID" isn't 6 digits, is it? <g

So, does that mean the entry could be *either* a text string or a 6 digit
number?



--
Biff
Microsoft Excel MVP


"JohnButt" wrote in message
...
Hello once again

The formula you provided worked fine until I entered the text 'MainID'
into
A1 - have tried all sorts of permutations but have failed to get the
results
wanted - do you have any suggestions.

"T. Valko" wrote:

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"JohnButt" wrote in message
...
Thank You - works perfectly - you deserve the MVP.

"JohnButt" wrote:

I have a column named PTS Number
I have used the custom validation to ensure that duplicate values are
not
repeated.
Is there a way of combining the COUNTIF formula to ensure that at
least 6
numeric characters are imputed?






  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default CountIF

Yes, you did the right thing. If A1 is just the column header do not apply
the validation to that cell.


--
Biff
Microsoft Excel MVP


"JohnButt" wrote in message
...
Thanks for the response - at least you didn't call me a dope!

I have generally always used a database with defined fields but
unfortunatley the company I am presently working for have Office installed
but without Access so I have had to convert the database I already had
into
Excel.

The reason - as you have probably already guessed - for placing the text
in
A1 as 'Main Id' - is to give a descriptive title to the entries below
it -
which will always be numeric.

I think I may have worked out how to solve the problem - purely by taking
the validation off the single cell A1. At least it seems to work.

You may have another suggestion.

"T. Valko" wrote:

to ensure that at least 6 numeric characters are imputed
worked fine until I entered the text 'MainID' into A1


Hmmm...

The text "MainID" isn't 6 digits, is it? <g

So, does that mean the entry could be *either* a text string or a 6 digit
number?



--
Biff
Microsoft Excel MVP


"JohnButt" wrote in message
...
Hello once again

The formula you provided worked fine until I entered the text 'MainID'
into
A1 - have tried all sorts of permutations but have failed to get the
results
wanted - do you have any suggestions.

"T. Valko" wrote:

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"JohnButt" wrote in message
...
Thank You - works perfectly - you deserve the MVP.

"JohnButt" wrote:

I have a column named PTS Number
I have used the custom validation to ensure that duplicate values
are
not
repeated.
Is there a way of combining the COUNTIF formula to ensure that at
least 6
numeric characters are imputed?








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
Countif NOT brian thompson3001 via OfficeKB.com New Users to Excel 7 March 10th 06 10:28 AM
How do I use a countif function according to two other countif fu. Kirsty Excel Worksheet Functions 2 February 20th 06 11:44 AM
edit this =COUNTIF(A1:F16,"*1-2*")+COUNTIF(A1:F16,"*2-1*") sctroy Excel Discussion (Misc queries) 2 September 25th 05 04:13 AM
COUNTIF or not to COUNTIF on a range in another sheet Ellie Excel Worksheet Functions 4 September 15th 05 10:06 PM
COUNTIF in one colum then COUNTIF in another...??? JonnieP Excel Worksheet Functions 3 February 22nd 05 02:55 PM


All times are GMT +1. The time now is 05:24 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"