#1   Report Post  
mahmon
 
Posts: n/a
Default column variables

I have databse of products, one colum contains text values for the colours
these products are, red, green , blue, etc. what functinocan tell me how many
colours are in the column? help please

  #2   Report Post  
Anne Troy
 
Posts: n/a
Default

Try =CountA(C2:C65536) or something like that, mahmon.
*******************
~Anne Troy

www.OfficeArticles.com
www.MyExpertsOnline.com


"mahmon" wrote in message
...
I have databse of products, one colum contains text values for the colours
these products are, red, green , blue, etc. what functinocan tell me how

many
colours are in the column? help please



  #3   Report Post  
mahmon
 
Posts: n/a
Default

thanks, but my problem is that the colours are repeated and i dont want it to
count a colour twice


"Anne Troy" wrote:

Try =CountA(C2:C65536) or something like that, mahmon.
*******************
~Anne Troy

www.OfficeArticles.com
www.MyExpertsOnline.com


"mahmon" wrote in message
...
I have databse of products, one colum contains text values for the colours
these products are, red, green , blue, etc. what functinocan tell me how

many
colours are in the column? help please




  #4   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Sun, 26 Jun 2005 08:55:04 -0700, mahmon
wrote:

I have databse of products, one colum contains text values for the colours
these products are, red, green , blue, etc. what functinocan tell me how many
colours are in the column? help please


If there are no blanks in your range:

=SUM(IF(FREQUENCY(MATCH(rng,rng,0),MATCH(rng,rng,0 ))0,1))

If there may be blanks, then use the *array* formula:

=SUM(IF(FREQUENCY(IF(LEN(rng)0,MATCH(rng,rng,0)," "),IF(LEN(rng)0,MATCH(rng,rng,0),""))0,1))

To enter an *array* formula, after typing or pasting it into the cell, hold
down <ctrl<shift while hitting <enter.


--ron
  #5   Report Post  
mahmon
 
Posts: n/a
Default

Thanks cant seem to get that to work dont know of its me, i am quite new to
excel. what do i put in place of rng? Wwhat i want to do is for excel to look
down the list and count the number of different colours without me having to
input any of the values in the function

"Ron Rosenfeld" wrote:

On Sun, 26 Jun 2005 08:55:04 -0700, mahmon
wrote:

I have databse of products, one colum contains text values for the colours
these products are, red, green , blue, etc. what functinocan tell me how many
colours are in the column? help please


If there are no blanks in your range:

=SUM(IF(FREQUENCY(MATCH(rng,rng,0),MATCH(rng,rng,0 ))0,1))

If there may be blanks, then use the *array* formula:

=SUM(IF(FREQUENCY(IF(LEN(rng)0,MATCH(rng,rng,0)," "),IF(LEN(rng)0,MATCH(rng,rng,0),""))0,1))

To enter an *array* formula, after typing or pasting it into the cell, hold
down <ctrl<shift while hitting <enter.


--ron



  #6   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Sun, 26 Jun 2005 10:46:02 -0700, mahmon
wrote:

Thanks cant seem to get that to work dont know of its me, i am quite new to
excel. what do i put in place of rng? Wwhat i want to do is for excel to look
down the list and count the number of different colours without me having to
input any of the values in the function


For "rng" you substitute the range which you are testing. So if your data
(list of colors) is in C2:C1000, you would substitute C2:C1000 where I have
written "rng".

Alternatively, you could NAME that range, "rng" and then you would not have to
substitute anything.


--ron
  #7   Report Post  
mahmon
 
Posts: n/a
Default

BRILLIANT IT WORKS! thanks for your help. one more question, how do then
cross reference to values in another column? i have a second coloumn that has
either a blank of the word 'selected' in it. how do i then count all the same
criteria but only if they are 'selected' ?

"Ron Rosenfeld" wrote:

On Sun, 26 Jun 2005 10:46:02 -0700, mahmon
wrote:

Thanks cant seem to get that to work dont know of its me, i am quite new to
excel. what do i put in place of rng? Wwhat i want to do is for excel to look
down the list and count the number of different colours without me having to
input any of the values in the function


For "rng" you substitute the range which you are testing. So if your data
(list of colors) is in C2:C1000, you would substitute C2:C1000 where I have
written "rng".

Alternatively, you could NAME that range, "rng" and then you would not have to
substitute anything.


--ron

  #8   Report Post  
Ragdyer
 
Posts: n/a
Default

Do you want to count all the "Reds" that have "selected" in the adjoining
column?
Enter the color you're looking for in C1, and try this:

=SUMPRODUCT((A1:A1000=C1)*(B1:B1000="selected"))

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"mahmon" wrote in message
...
BRILLIANT IT WORKS! thanks for your help. one more question, how do then
cross reference to values in another column? i have a second coloumn that

has
either a blank of the word 'selected' in it. how do i then count all the

same
criteria but only if they are 'selected' ?

"Ron Rosenfeld" wrote:

On Sun, 26 Jun 2005 10:46:02 -0700, mahmon


wrote:

Thanks cant seem to get that to work dont know of its me, i am quite

new to
excel. what do i put in place of rng? Wwhat i want to do is for excel

to look
down the list and count the number of different colours without me

having to
input any of the values in the function


For "rng" you substitute the range which you are testing. So if your

data
(list of colors) is in C2:C1000, you would substitute C2:C1000 where I

have
written "rng".

Alternatively, you could NAME that range, "rng" and then you would not

have to
substitute anything.


--ron


  #9   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Sun, 26 Jun 2005 11:22:02 -0700, mahmon
wrote:

BRILLIANT IT WORKS! thanks for your help.


You're welcome. Thank you for the feedback.



one more question, how do then
cross reference to values in another column? i have a second coloumn that has
either a blank of the word 'selected' in it. how do i then count all the same
criteria but only if they are 'selected' ?


If your Colors are in a range named "Colors" (or use the appropriate cell
reference); and your column that may or may not have "Selected" in it is in a
range named "Sel" then

with the color of interest in A1:

=SUMPRODUCT((A1=Colors)*(Sel="Selected"))


--ron
  #10   Report Post  
Anne Troy
 
Posts: n/a
Default

rng is the range, mahmon. So if your colors are in A1:A10, then replace rng
with A1:A10.

Microsoft describes this solution he
http://support.microsoft.com/kb/q268001/

*******************
~Anne Troy

www.OfficeArticles.com
www.MyExpertsOnline.com


"mahmon" wrote in message
...
Thanks cant seem to get that to work dont know of its me, i am quite new

to
excel. what do i put in place of rng? Wwhat i want to do is for excel to

look
down the list and count the number of different colours without me having

to
input any of the values in the function

"Ron Rosenfeld" wrote:

On Sun, 26 Jun 2005 08:55:04 -0700, mahmon


wrote:

I have databse of products, one colum contains text values for the

colours
these products are, red, green , blue, etc. what functinocan tell me

how many
colours are in the column? help please


If there are no blanks in your range:

=SUM(IF(FREQUENCY(MATCH(rng,rng,0),MATCH(rng,rng,0 ))0,1))

If there may be blanks, then use the *array* formula:


=SUM(IF(FREQUENCY(IF(LEN(rng)0,MATCH(rng,rng,0)," "),IF(LEN(rng)0,MATCH(rng
,rng,0),""))0,1))

To enter an *array* formula, after typing or pasting it into the cell,

hold
down <ctrl<shift while hitting <enter.


--ron





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
Help with macro looping and color query function kevinm Excel Discussion (Misc queries) 10 May 26th 05 01:25 AM
Count Position of Filtered TEXT cells in a column Sam via OfficeKB.com Excel Worksheet Functions 8 May 18th 05 04:23 AM
another text to column problem gbeard Excel Worksheet Functions 11 May 5th 05 07:20 AM
How to group similar column titles together???? vrk1 Excel Discussion (Misc queries) 2 April 30th 05 12:17 AM
Return Count for LAST NonBlank Cell in each Row Sam via OfficeKB.com Excel Worksheet Functions 12 April 17th 05 10:36 PM


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