A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Can I Use a Count Function for Text?



 
 
Thread Tools Display Modes
  #71  
Old February 24th, 2009, 04:02 PM posted to microsoft.public.excel.worksheet.functions
Nichole Beck
external usenet poster
 
Posts: 1
Default Can I Use a Count Function for Text?

I have a similar problem but your suggestion isn't working for me.

I have two columns of data that I want to count, but I only want to count
the intersection of the two columns. So, if A1 and B1 both contain the same
text I only want to count it once. Is that possible to do?

"T. Valko" wrote:

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Steve Scatt" wrote in message
...
Thanks Biff,

tried it again and made sure no unseen characters and it seems to work.
Cheers.

"Steve Scatt" wrote:

I have 2 separate columns and I am trying to count the nu,ber of
occurances
for a 2 different values. i.e. how many times admin column C and sick
Column
D show up. Tried the SUMPRODUCT and it doesn't seem to work. I get a
value of
0 when there should be 3.

"David Biddulph" wrote:

=SUMPRODUCT((A1:A100="A")*(A1:A100="D")*(B1:B100 ="psychiatrist"))
--
David Biddulph

"Nick Brunetti" wrote in
message
...
I am trying to count a cell if criteria from two separate columns are
met.

For example, my first column has the letters A, B, C, D or no letters
at
all. The second column has different descriptive words (i.e.
internal
medicine, psychiatrist, etc). I would like a cell to be counted if a
cell
in
the first column contains an A or B or C or D AND a cell in the
second
colum
contains the word "psychiatrist".

What is the best function/formula to use for this problem?

"Bob Phillips" wrote:

=COUNTIF(A1:A100,"*@*")

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in
my
addy)



"Joan NYC" wrote in message
...
Aha... Sumproduct is not a function I ever tried

I have a column of text. Some cells contain the character "@"
with a
space
preceding the rest of text in the cell. I realize the @ could be
considered
an operator so it is preceded with an apostrophe to designate
text. I
want
to sum the cells that have the "@"

Thanks

"David Biddulph" wrote:

You'll need to be a bit clearer as to what you're trying to do.
If
COUNTIF
or SUMIF doesn't do the job, you may want to try SUMPRODUCT.
--
David Biddulph

"Joan NYC" wrote in message
...
I have been trying to calculate a column of Text in order to sum
contents
by
certain criteria

I have tried Count, CoutA and CountIF and cannot be able to get
anything
to
work.

Am I barking up the wrong tree? Can this be done?

Thanks much.













  #72  
Old February 24th, 2009, 06:29 PM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default Can I Use a Count Function for Text?

Maybe this:

=SUMPRODUCT(--(A1:A5=B1:B5))

...........A..........B
1........x...........x
2........y...........z
3........c...........c
4........s...........s
5........v..........w

Based on that sample data the result would be 3.

--
Biff
Microsoft Excel MVP


"Nichole Beck" Nichole wrote in message
...
I have a similar problem but your suggestion isn't working for me.

I have two columns of data that I want to count, but I only want to count
the intersection of the two columns. So, if A1 and B1 both contain the
same
text I only want to count it once. Is that possible to do?

"T. Valko" wrote:

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Steve Scatt" wrote in message
...
Thanks Biff,

tried it again and made sure no unseen characters and it seems to work.
Cheers.

"Steve Scatt" wrote:

I have 2 separate columns and I am trying to count the nu,ber of
occurances
for a 2 different values. i.e. how many times admin column C and sick
Column
D show up. Tried the SUMPRODUCT and it doesn't seem to work. I get a
value of
0 when there should be 3.

"David Biddulph" wrote:

=SUMPRODUCT((A1:A100="A")*(A1:A100="D")*(B1:B100 ="psychiatrist"))
--
David Biddulph

"Nick Brunetti" wrote in
message
...
I am trying to count a cell if criteria from two separate columns
are
met.

For example, my first column has the letters A, B, C, D or no
letters
at
all. The second column has different descriptive words (i.e.
internal
medicine, psychiatrist, etc). I would like a cell to be counted
if a
cell
in
the first column contains an A or B or C or D AND a cell in the
second
colum
contains the word "psychiatrist".

What is the best function/formula to use for this problem?

"Bob Phillips" wrote:

=COUNTIF(A1:A100,"*@*")

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail
in
my
addy)



"Joan NYC" wrote in message
...
Aha... Sumproduct is not a function I ever tried

I have a column of text. Some cells contain the character "@"
with a
space
preceding the rest of text in the cell. I realize the @ could
be
considered
an operator so it is preceded with an apostrophe to designate
text. I
want
to sum the cells that have the "@"

Thanks

"David Biddulph" wrote:

You'll need to be a bit clearer as to what you're trying to
do.
If
COUNTIF
or SUMIF doesn't do the job, you may want to try SUMPRODUCT.
--
David Biddulph

"Joan NYC" wrote in
message
...
I have been trying to calculate a column of Text in order to
sum
contents
by
certain criteria

I have tried Count, CoutA and CountIF and cannot be able to
get
anything
to
work.

Am I barking up the wrong tree? Can this be done?

Thanks much.















  #73  
Old March 12th, 2009, 04:00 PM posted to microsoft.public.excel.worksheet.functions
gaelf
external usenet poster
 
Posts: 2
Default Can I Use a Count Function for Text?



"Joan NYC" wrote:

I have been trying to calculate a column of Text in order to sum contents by
certain criteria

I have tried Count, CoutA and CountIF and cannot be able to get anything to
work.

Am I barking up the wrong tree? Can this be done?

Thanks much.

  #74  
Old March 12th, 2009, 04:07 PM posted to microsoft.public.excel.worksheet.functions
gaelf
external usenet poster
 
Posts: 2
Default Can I Use a Count Function for Text?



"Joan NYC" wrote:

I have been trying to calculate a column of Text in order to sum contents by
certain criteria

I have tried Count, CoutA and CountIF and cannot be able to get anything to
work.

Am I barking up the wrong tree? Can this be done?

Thanks much.

  #75  
Old March 21st, 2009, 08:57 PM posted to microsoft.public.excel.worksheet.functions
Christopher770[_2_]
external usenet poster
 
Posts: 1
Default Can I Use a Count Function for Text?


Need more information. Can you provide an exampleo of what you're
trying to do?


--
Christopher770
------------------------------------------------------------------------
Christopher770's Profile: http://www.thecodecage.com/forumz/member.php?userid=188
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=74543

  #76  
Old March 21st, 2009, 10:29 PM posted to microsoft.public.excel.worksheet.functions
Simon Lloyd[_167_]
external usenet poster
 
Posts: 1
Default Can I Use a Count Function for Text?


When you say calculate, do you mean SUM rather than COUNT?gaelf;267108 Wrote:
"Joan NYC" wrote:

I have been trying to calculate a column of Text in order to sum

contents by
certain criteria

I have tried Count, CoutA and CountIF and cannot be able to get

anything to
work.

Am I barking up the wrong tree? Can this be done?

Thanks much.



--
Simon Lloyd

Regards,
Simon Lloyd
'The Code Cage' (http://www.thecodecage.com)
------------------------------------------------------------------------
Simon Lloyd's Profile: http://www.thecodecage.com/forumz/member.php?userid=1
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=74543

  #77  
Old April 22nd, 2009, 09:29 PM posted to microsoft.public.excel.worksheet.functions
Davina
external usenet poster
 
Posts: 1
Default Can I Use a Count Function for Text?

Here is my question:

How can I use a formula to create the following:

I want one column to be three-five different text (i.e. W, L, D, etc..) and
the next column to convert that text into a number (10, 5, 0, etc..)

I have been trying to figure this out all day, and any help is greatly
appreciated.

Thank you,
  #78  
Old April 22nd, 2009, 11:03 PM posted to microsoft.public.excel.worksheet.functions
Gord Dibben
external usenet poster
 
Posts: 20,252
Default Can I Use a Count Function for Text?

=LOOKUP(A1,{"D","L","W"},{0,5,10}) entered in B1

Note the lookup_vector {"D","L","W"} must be in ascending order.


Gord Dibben MS Excel MVP


On Wed, 22 Apr 2009 13:29:02 -0700, Davina
wrote:

Here is my question:

How can I use a formula to create the following:

I want one column to be three-five different text (i.e. W, L, D, etc..) and
the next column to convert that text into a number (10, 5, 0, etc..)

I have been trying to figure this out all day, and any help is greatly
appreciated.

Thank you,


  #79  
Old May 7th, 2009, 02:11 PM posted to microsoft.public.excel.worksheet.functions
Richard Horn
external usenet poster
 
Posts: 1
Default Can I Use a Count Function for Text?

I found these comments very helpful so far. Now I am stumped.

I have a workbook with multiple worksheets and I am making a summary page up
front for management review.

Here's what I am trying to do. From worksheet named Q2, I have all my
projects leads in column D, and then the current status of their projects in
column E, for instance, intake, editing, pending, etc.. What I am trying to
do is count all the instances of one project lead, in this case chris craig,
and then I want to know all projects she is working on, unless, or except, if
the status is completed or carried forward. If the status for a project lead
is completed or carried, then do not count.

This is the formula I am trying to use, but is is counting all projects for
the given lead with all statuses, including completed and carried forward.

=SUMPRODUCT(('Q2'!D833="chris craig")*('Q2'!E8:E33"completed, carried
forward"))

"T. Valko" wrote:

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Steve Scatt" wrote in message
...
Thanks Biff,

tried it again and made sure no unseen characters and it seems to work.
Cheers.

"Steve Scatt" wrote:

I have 2 separate columns and I am trying to count the nu,ber of
occurances
for a 2 different values. i.e. how many times admin column C and sick
Column
D show up. Tried the SUMPRODUCT and it doesn't seem to work. I get a
value of
0 when there should be 3.

"David Biddulph" wrote:

=SUMPRODUCT((A1:A100="A")*(A1:A100="D")*(B1:B100 ="psychiatrist"))
--
David Biddulph

"Nick Brunetti" wrote in
message
...
I am trying to count a cell if criteria from two separate columns are
met.

For example, my first column has the letters A, B, C, D or no letters
at
all. The second column has different descriptive words (i.e.
internal
medicine, psychiatrist, etc). I would like a cell to be counted if a
cell
in
the first column contains an A or B or C or D AND a cell in the
second
colum
contains the word "psychiatrist".

What is the best function/formula to use for this problem?

"Bob Phillips" wrote:

=COUNTIF(A1:A100,"*@*")

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in
my
addy)



"Joan NYC" wrote in message
...
Aha... Sumproduct is not a function I ever tried

I have a column of text. Some cells contain the character "@"
with a
space
preceding the rest of text in the cell. I realize the @ could be
considered
an operator so it is preceded with an apostrophe to designate
text. I
want
to sum the cells that have the "@"

Thanks

"David Biddulph" wrote:

You'll need to be a bit clearer as to what you're trying to do.
If
COUNTIF
or SUMIF doesn't do the job, you may want to try SUMPRODUCT.
--
David Biddulph

"Joan NYC" wrote in message
...
I have been trying to calculate a column of Text in order to sum
contents
by
certain criteria

I have tried Count, CoutA and CountIF and cannot be able to get
anything
to
work.

Am I barking up the wrong tree? Can this be done?

Thanks much.













  #80  
Old May 7th, 2009, 03:21 PM posted to microsoft.public.excel.worksheet.functions
David Biddulph
external usenet poster
 
Posts: 8,714
Default Can I Use a Count Function for Text?

That probably means that you've got some slight difference in the content of
column E, perhaps spare spaces or other characters (such as non-breaking
spaces) in the cell.

You can check with a helper column:
=('Q2'!E8"completed, carried forward") and copy down
and/or
=('Q2'!E8="completed, carried forward") and copy down.

You might also want to try =LEN('Q2'!E8)=26

You might wish to copy the string (which you think is ="completed, carried
forward") from a suitable cell in column E into your formula.
--
David Biddulph

"Richard Horn" Richard wrote in message
...
I found these comments very helpful so far. Now I am stumped.

I have a workbook with multiple worksheets and I am making a summary page
up
front for management review.

Here's what I am trying to do. From worksheet named Q2, I have all my
projects leads in column D, and then the current status of their projects
in
column E, for instance, intake, editing, pending, etc.. What I am trying
to
do is count all the instances of one project lead, in this case chris
craig,
and then I want to know all projects she is working on, unless, or except,
if
the status is completed or carried forward. If the status for a project
lead
is completed or carried, then do not count.

This is the formula I am trying to use, but is is counting all projects
for
the given lead with all statuses, including completed and carried forward.

=SUMPRODUCT(('Q2'!D833="chris craig")*('Q2'!E8:E33"completed, carried
forward"))

"T. Valko" wrote:

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Steve Scatt" wrote in message
...
Thanks Biff,

tried it again and made sure no unseen characters and it seems to work.
Cheers.

"Steve Scatt" wrote:

I have 2 separate columns and I am trying to count the nu,ber of
occurances
for a 2 different values. i.e. how many times admin column C and sick
Column
D show up. Tried the SUMPRODUCT and it doesn't seem to work. I get a
value of
0 when there should be 3.

"David Biddulph" wrote:

=SUMPRODUCT((A1:A100="A")*(A1:A100="D")*(B1:B100 ="psychiatrist"))
--
David Biddulph

"Nick Brunetti" wrote in
message
...
I am trying to count a cell if criteria from two separate columns
are
met.

For example, my first column has the letters A, B, C, D or no
letters
at
all. The second column has different descriptive words (i.e.
internal
medicine, psychiatrist, etc). I would like a cell to be counted
if a
cell
in
the first column contains an A or B or C or D AND a cell in the
second
colum
contains the word "psychiatrist".

What is the best function/formula to use for this problem?

"Bob Phillips" wrote:

=COUNTIF(A1:A100,"*@*")

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail
in
my
addy)



"Joan NYC" wrote in message
...
Aha... Sumproduct is not a function I ever tried

I have a column of text. Some cells contain the character "@"
with a
space
preceding the rest of text in the cell. I realize the @ could
be
considered
an operator so it is preceded with an apostrophe to designate
text. I
want
to sum the cells that have the "@"

Thanks

"David Biddulph" wrote:

You'll need to be a bit clearer as to what you're trying to
do.
If
COUNTIF
or SUMIF doesn't do the job, you may want to try SUMPRODUCT.
--
David Biddulph

"Joan NYC" wrote in
message
...
I have been trying to calculate a column of Text in order to
sum
contents
by
certain criteria

I have tried Count, CoutA and CountIF and cannot be able to
get
anything
to
work.

Am I barking up the wrong tree? Can this be done?

Thanks much.















 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:41 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.