Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default What equation will total number of cells with specific words?

I have set up a spread sheet where each cell represents an employee covering
a half hr shift during a certain time of day and want it to sum up how many
cells contain each person's name. Therefore if their name is listed 80 times
that week I know we have them scheduled to cover 40 hrs (or whatever they
need that week).

Can anyone tell me how I can set up an equation to automatically sum/total
the number of times that a specific word/name is found in a cell or just in
the spread sheet in general? It would be most helpful!

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 100
Default What equation will total number of cells with specific words?

There are several ways. I am a fan of SUMPRODUCT.

If your schedule contains the names in B2:B81, use
=SUMPRODUCT(--(B2:B81="name")) where "name" is the person's name in quotes or
a reference to the person's name without quotes.

"Tidejwe" wrote:

I have set up a spread sheet where each cell represents an employee covering
a half hr shift during a certain time of day and want it to sum up how many
cells contain each person's name. Therefore if their name is listed 80 times
that week I know we have them scheduled to cover 40 hrs (or whatever they
need that week).

Can anyone tell me how I can set up an equation to automatically sum/total
the number of times that a specific word/name is found in a cell or just in
the spread sheet in general? It would be most helpful!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default What equation will total number of cells with specific words?

Assume the names are in the range A1:A100.

=COUNTIF(A1:A100,"Joe")

Or, use a cell to hold the name:

C1 = Joe

=COUNTIF(A1:A100,C1)

--
Biff
Microsoft Excel MVP


"Tidejwe" wrote in message
...
I have set up a spread sheet where each cell represents an employee
covering
a half hr shift during a certain time of day and want it to sum up how
many
cells contain each person's name. Therefore if their name is listed 80
times
that week I know we have them scheduled to cover 40 hrs (or whatever they
need that week).

Can anyone tell me how I can set up an equation to automatically sum/total
the number of times that a specific word/name is found in a cell or just
in
the spread sheet in general? It would be most helpful!



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default What equation will total number of cells with specific words?

That's excellent! It worked Great! I later tried to export it to Google
Docs' Spreadsheet to share with others to be able to check from home, and
apparently Google has disabled this feature or something. :( People online
mentioned it used to work for them and then suddenly stopped. Sadness! Oh
well, at least it works in Excel. Great answer! It was EXACTLY what I was
looking for. If you know how to get it to also work in Google Doc's Spread
Sheet, then that would be doubly awesome.

"sb1920alk" wrote:

There are several ways. I am a fan of SUMPRODUCT.

If your schedule contains the names in B2:B81, use
=SUMPRODUCT(--(B2:B81="name")) where "name" is the person's name in quotes or
a reference to the person's name without quotes.

"Tidejwe" wrote:

I have set up a spread sheet where each cell represents an employee covering
a half hr shift during a certain time of day and want it to sum up how many
cells contain each person's name. Therefore if their name is listed 80 times
that week I know we have them scheduled to cover 40 hrs (or whatever they
need that week).

Can anyone tell me how I can set up an equation to automatically sum/total
the number of times that a specific word/name is found in a cell or just in
the spread sheet in general? It would be most helpful!

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
total of cells that are next to a cell that contains specific text suziQ Excel Worksheet Functions 1 March 1st 07 04:41 PM
Is it possible to count specific words in a number of cells? theboytree Excel Discussion (Misc queries) 1 June 15th 06 09:29 AM
i need a number total derived from words greenlion Excel Worksheet Functions 4 June 1st 06 08:06 PM
How do i total cells in excel that contain specific text? Zurbs17 Excel Discussion (Misc queries) 4 March 25th 06 01:49 AM
how do I find an average number of specific words in a column cashgrfx New Users to Excel 7 January 6th 05 04:44 PM


All times are GMT +1. The time now is 07:16 AM.

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"