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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Trying to total the number of times a word occurs
I am trying to count the number of times a certain word occurs in a
certain cell on 10 different worksheets. =IF(C70,"yes", "no") is the function I use in the cell and on the last worksheet I want to total the number of times "yes" is printed from the IF statement. I want it done automatically b/c I need the value from the total in different parts of the workbook. --- Message posted from http://www.ExcelForum.com/ |
#2
|
|||
|
|||
Trying to total the number of times a word occurs
COUNTIF(Range,"yes")
-- Regards, Peo Sjoblom (No private emails please, for everyone's benefit keep the discussion in the newsgroup/forum) "pcrum73 " wrote in message news I am trying to count the number of times a certain word occurs in a certain cell on 10 different worksheets. =IF(C70,"yes", "no") is the function I use in the cell and on the last worksheet I want to total the number of times "yes" is printed from the IF statement. I want it done automatically b/c I need the value from the total in different parts of the workbook. --- Message posted from http://www.ExcelForum.com/ |
#3
|
|||
|
|||
Trying to total the number of times a word occurs
Hi
try for one worksheet =COUNTIF(C:C,"yes") -- Regards Frank Kabel Frankfurt, Germany I am trying to count the number of times a certain word occurs in a certain cell on 10 different worksheets. =IF(C70,"yes", "no") is the function I use in the cell and on the last worksheet I want to total the number of times "yes" is printed from the IF statement. I want it done automatically b/c I need the value from the total in different parts of the workbook. --- Message posted from http://www.ExcelForum.com/ |
#4
|
|||
|
|||
Trying to total the number of times a word occurs
to use the (range,"yes") it would look something like this
(SHEET1!A1 and SHEET2!A1 and SHEET3!A1),"yes" I don't know how to seperate the cells so that I don't get an error, so I have used COUNTIF(SHEET1!A1, "yes")+COUNTIF(SHEET2!A1,"yes").... It works but I was hoping for a little easier way to do it. --- Message posted from http://www.ExcelForum.com/ |
#5
|
|||
|
|||
Trying to total the number of times a word occurs
pcrum73 wrote...
... I don't know how to seperate the cells so that I don't get an error, so I have used COUNTIF(SHEET1!A1, "yes") +COUNTIF(SHEET2!A1,"yes").... It works but I was hoping for a little easier way to do it. Maybe not easier for only 3 worksheets, but =SUMPRODUCT(COUNTIF(INDIRECT("'"& {"Sheet1";"Sheet2";"Sheet3"}&"'!"&CELL("Address",A 1))."yes")) --- Message posted from http://www.ExcelForum.com/ |
#6
|
|||
|
|||
Trying to total the number of times a word occurs
If indeed the sheets are named sheet1 - sheet10 you can use
=SUMPRODUCT(COUNTIF(INDIRECT("'Sheet"&ROW(INDIRECT ("1:10"))&"'!"&CELL("addre ss",A1)),"yes")) since I doubt that it is better to put all sheet names in let's say A1:A10 and name the range Lst, then use =SUMPRODUCT(COUNTIF(INDIRECT("'"&Lst&"'!"&CELL("ad dress",A1)),"yes")) the cell function is thre so you can copy down and change cell but if the cell reference is fixed at A1 you can use =SUMPRODUCT(COUNTIF(INDIRECT("'Sheet"&ROW(INDIRECT ("1:3"))&"'!A1"),"yes")) or =SUMPRODUCT(COUNTIF(INDIRECT("'"&Lst&"'!A1"),"yes" )) -- Regards, Peo Sjoblom (No private emails please, for everyone's benefit keep the discussion in the newsgroup/forum) "pcrum73 " wrote in message news to use the (range,"yes") it would look something like this (SHEET1!A1 and SHEET2!A1 and SHEET3!A1),"yes" I don't know how to seperate the cells so that I don't get an error, so I have used COUNTIF(SHEET1!A1, "yes")+COUNTIF(SHEET2!A1,"yes").... It works but I was hoping for a little easier way to do it. --- Message posted from http://www.ExcelForum.com/ |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to count total number of words in excel file | TO | General Discussion | 2 | July 7th, 2004 01:25 AM |
How to run word and pass a mail merge values and fax it to the recipient | Belinda | Mailmerge | 2 | June 13th, 2004 12:49 AM |
count number of times a word appears in a column | Tushar Mehta | Charts and Charting | 0 | November 15th, 2003 12:23 AM |
Count the times a number appears in a column | Paul R | Worksheet Functions | 4 | October 29th, 2003 08:46 PM |
lookup part of a word or number | Ian | Worksheet Functions | 2 | September 26th, 2003 09:18 AM |