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

How do i create a formula that will add all cells with the word DS in it then
a seperate formula that will add all the cells with the word SM in it and so
on
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default excel 2007

Do you mean count the number of cells with DS in them?

If DS is in the cell by itself:
=countif(a1:a10,"DS")

if DS is in the cell with other stuff:
=countif(A1:a10,"*DS*")
or
=countif(A1:a10,"*" & "DS" & "*")
or
=countif(A1:a10,"*" & b1 & "*")
(if B1 containd DS)

Similar formulas for SM


Katy wrote:

How do i create a formula that will add all cells with the word DS in it then
a seperate formula that will add all the cells with the word SM in it and so
on


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default excel 2007

Enter the "word" to *count* in say, B1, where the cells that contain the
words are in A1 to A100, and try this:

=Countif(A1:A100,B1)

When you change the contents of B1, the *count* will change to reflect the
new "word".

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Katy" wrote in message
...
How do i create a formula that will add all cells with the word DS in it

then
a seperate formula that will add all the cells with the word SM in it and

so
on


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default excel 2007

=SUMPRODUCT(--(A1:A100="DS"))

=SUMPRODUCT(--(A1:A100="SM"))


"Katy" wrote:

How do i create a formula that will add all cells with the word DS in it then
a seperate formula that will add all the cells with the word SM in it and so
on

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
Average by Date inta251 via OfficeKB.com Excel Worksheet Functions 24 February 24th 07 01:19 PM
Am I the Only One Having Excel 2007 Performance Problems Concerned Excel Discussion (Misc queries) 4 January 30th 07 01:17 AM
Where did my Publish to Excel Services go? Mike L Setting up and Configuration of Excel 8 December 7th 06 10:46 AM
RTD Function Always Returns #N/A in Excel 2007 Jose Excel Worksheet Functions 0 November 29th 06 07:29 PM
RTD Function Always Returns #N/A in Excel 2007 Jose Excel Worksheet Functions 0 November 29th 06 07:28 PM


All times are GMT +1. The time now is 01:41 AM.

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

About Us

"It's about Microsoft Excel"