Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a Workbook with 6 spreadsheets. The first column in each spreadsheet
has the capitol letter 'D' in certain cells. I need to know how many times a 'D' appears in the first column of each spreadsheet. This total will be on the last spreadsheet only. I know this is elementary but I do not know much about VBA. Many Thanks to anyone who will help! -- Robert Hill |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
For Each sh In Activeworkbook.Worksheets
Msgbox sh.name & ", " & Application.Countif(sh.Range("A:A"),"D") Next sh -- HTH Bob Phillips (replace xxxx in the email address with gmail if mailing direct) "Robert" wrote in message ... I have a Workbook with 6 spreadsheets. The first column in each spreadsheet has the capitol letter 'D' in certain cells. I need to know how many times a 'D' appears in the first column of each spreadsheet. This total will be on the last spreadsheet only. I know this is elementary but I do not know much about VBA. Many Thanks to anyone who will help! -- Robert Hill |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
=countif(sheet1!A:A,"D")+countif(Sheet2!A:A,"D")+ and so forth
but countif is case insensitive. If there won't be any lowercase "d", then perhaps this will work. if not, you can use =SUMPRODUCT(--EXACT(Sheet1!A1:A11,"D"))+SUMPRODUCT(--EXACT(Sheet2!A1:A11,"D"))+ and so forth In this case, you can not refer to an entire column (and the fewer rows you include, the faster it will recalculate). -- Regards, Tom Ogilvy "Robert" wrote: I have a Workbook with 6 spreadsheets. The first column in each spreadsheet has the capitol letter 'D' in certain cells. I need to know how many times a 'D' appears in the first column of each spreadsheet. This total will be on the last spreadsheet only. I know this is elementary but I do not know much about VBA. Many Thanks to anyone who will help! -- Robert Hill |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks...That is exactly what I needed.
-- Robert Hill "Tom Ogilvy" wrote: =countif(sheet1!A:A,"D")+countif(Sheet2!A:A,"D")+ and so forth but countif is case insensitive. If there won't be any lowercase "d", then perhaps this will work. if not, you can use =SUMPRODUCT(--EXACT(Sheet1!A1:A11,"D"))+SUMPRODUCT(--EXACT(Sheet2!A1:A11,"D"))+ and so forth In this case, you can not refer to an entire column (and the fewer rows you include, the faster it will recalculate). -- Regards, Tom Ogilvy "Robert" wrote: I have a Workbook with 6 spreadsheets. The first column in each spreadsheet has the capitol letter 'D' in certain cells. I need to know how many times a 'D' appears in the first column of each spreadsheet. This total will be on the last spreadsheet only. I know this is elementary but I do not know much about VBA. Many Thanks to anyone who will help! -- Robert Hill |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Update multiple spreadsheets in multiple workbooks | Setting up and Configuration of Excel | |||
suming multiple rates | Excel Discussion (Misc queries) | |||
Counting and Suming based on multiple criteria | Excel Worksheet Functions | |||
Looking up multiple items and suming the values on their rows | Excel Discussion (Misc queries) | |||
How to update multiple links in multiple spreadsheets followin mo. | Excel Worksheet Functions |