Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I have a years worth of dates in Col B and need to do countif and countblank
in Col D but I need to seperate by quarters, I was thinking of doing it w/ an if statement but didn't work, I could sort by date and copy to individual worksheets but I have 3 tables w/ 45K+ records each and need to count multiple col. I would prefer to do this a formula, If this can't be done I an do a short vba script thanks Zb |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=SUMPRODUCT(--($B$2:$B$2000<""),--(INT((MONTH($B$2:$B$2000)+2)/3)=1))
for quarter 1 -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Zb Kornecki" <zDOTkorneckiATcomcastDOTnet wrote in message ... I have a years worth of dates in Col B and need to do countif and countblank in Col D but I need to seperate by quarters, I was thinking of doing it w/ an if statement but didn't work, I could sort by date and copy to individual worksheets but I have 3 tables w/ 45K+ records each and need to count multiple col. I would prefer to do this a formula, If this can't be done I an do a short vba script thanks Zb |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I'm sorry I was unclear when I worded the question the dates are in col b and
the values that are counted in col d "Bob Phillips" wrote: =SUMPRODUCT(--($B$2:$B$2000<""),--(INT((MONTH($B$2:$B$2000)+2)/3)=1)) for quarter 1 -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Zb Kornecki" <zDOTkorneckiATcomcastDOTnet wrote in message ... I have a years worth of dates in Col B and need to do countif and countblank in Col D but I need to seperate by quarters, I was thinking of doing it w/ an if statement but didn't work, I could sort by date and copy to individual worksheets but I have 3 tables w/ 45K+ records each and need to count multiple col. I would prefer to do this a formula, If this can't be done I an do a short vba script thanks Zb |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
add the Ds
=SUMPRODUCT(--($B$2:$B$2000<""),--(INT((MONTH($B$2:$B$2000)+2)/3)=1),$D$2:$D$2000)--HTHBob(there's no email, no snail mail, but somewhere should be gmail in my addy)"Zb Kornecki" <zDOTkorneckiATcomcastDOTnet wrote in ... I'm sorry I was unclear when I worded the question the dates are in col band the values that are counted in col d "Bob Phillips" wrote: =SUMPRODUCT(--($B$2:$B$2000<""),--(INT((MONTH($B$2:$B$2000)+2)/3)=1)) for quarter 1 -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in myaddy) "Zb Kornecki" <zDOTkorneckiATcomcastDOTnet wrote in message ... I have a years worth of dates in Col B and need to do countif and countblank in Col D but I need to seperate by quarters, I was thinking of doingit w/ an if statement but didn't work, I could sort by date and copy to individual worksheets but I have 3 tables w/ 45K+ records each and need to count multiple col. I would prefer to do this a formula, If this can't be done I an do ashort vba script thanks Zb |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
This formula counts how many of the dates are in first quarter:
=SUMPRODUCT(--((INT((MONTH(B2:B103)-1)/3)+1)=1)) This counts how many are in Q1 of year 2007 =SUMPRODUCT(--((INT((MONTH(B2:B103)-1)/3)+1)=1),--(YEAR(B2:B103)=2007)) Or course, the =1 and =2007 parts of the formula can be replaces by =D1, =E2 for example How does SUMPRODUCT work? See http://www.xldynamic.com/source/xld.SUMPRODUCT.html http://mcgimpsey.com/excel/formulae/doubleneg.html best wishes -- Bernard V Liengme www.stfx.ca/people/bliengme remove caps from email "Zb Kornecki" <zDOTkorneckiATcomcastDOTnet wrote in message ... I have a years worth of dates in Col B and need to do countif and countblank in Col D but I need to seperate by quarters, I was thinking of doing it w/ an if statement but didn't work, I could sort by date and copy to individual worksheets but I have 3 tables w/ 45K+ records each and need to count multiple col. I would prefer to do this a formula, If this can't be done I an do a short vba script thanks Zb |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thank's for the help, The info links were excellent, I'd rather learn how to
do then have to keep asking. thanks again Zb "Bernard Liengme" wrote: This formula counts how many of the dates are in first quarter: =SUMPRODUCT(--((INT((MONTH(B2:B103)-1)/3)+1)=1)) This counts how many are in Q1 of year 2007 =SUMPRODUCT(--((INT((MONTH(B2:B103)-1)/3)+1)=1),--(YEAR(B2:B103)=2007)) Or course, the =1 and =2007 parts of the formula can be replaces by =D1, =E2 for example How does SUMPRODUCT work? See http://www.xldynamic.com/source/xld.SUMPRODUCT.html http://mcgimpsey.com/excel/formulae/doubleneg.html best wishes -- Bernard V Liengme www.stfx.ca/people/bliengme remove caps from email "Zb Kornecki" <zDOTkorneckiATcomcastDOTnet wrote in message ... I have a years worth of dates in Col B and need to do countif and countblank in Col D but I need to seperate by quarters, I was thinking of doing it w/ an if statement but didn't work, I could sort by date and copy to individual worksheets but I have 3 tables w/ 45K+ records each and need to count multiple col. I would prefer to do this a formula, If this can't be done I an do a short vba script thanks Zb |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Count Intervals of 2 Consecutive Values in same Row and Return Count across Row | Excel Worksheet Functions | |||
How do i count numbers and letters to find a total count of all | Excel Worksheet Functions | |||
Count Intervals of 1 Numeric value in a Row and Return Count down Column | Excel Worksheet Functions | |||
Count Intervals of 2 Numeric values in same Row and Return Count across Row | Excel Worksheet Functions | |||
Count Intervals of Filtered TEXT values in Column and Return Count across a Row | Excel Worksheet Functions |