Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 14
Default SUMPRODUCT formula

Hello,

I've got a formula which works perfectly to sum the number of days someone
has been off sick in a rolling year, however I also need to count the number
of occassions people have been off. Can anyone help me develop my existing
formula or is there a totally diferent way to do it? I'm stuck. :(

This is my current formula:
=SUMPRODUCT(($S$1:$IV$1=TODAY()-365)*S2:IV2)


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
Default SUMPRODUCT formula

=COUNT($S$1:$IV$1)


"Jennie" wrote in message
...
Hello,

I've got a formula which works perfectly to sum the number of days someone
has been off sick in a rolling year, however I also need to count the
number
of occassions people have been off. Can anyone help me develop my existing
formula or is there a totally diferent way to do it? I'm stuck. :(

This is my current formula:
=SUMPRODUCT(($S$1:$IV$1=TODAY()-365)*S2:IV2)




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
Default SUMPRODUCT formula

BTW you do not need SUMPRODUCT

=SUMIF($S$1:$IV$1,"="&TODAY()-365,S2:IV2)


"Jennie" wrote in message
...
Hello,

I've got a formula which works perfectly to sum the number of days someone
has been off sick in a rolling year, however I also need to count the
number
of occassions people have been off. Can anyone help me develop my existing
formula or is there a totally diferent way to do it? I'm stuck. :(

This is my current formula:
=SUMPRODUCT(($S$1:$IV$1=TODAY()-365)*S2:IV2)




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 14
Default SUMPRODUCT formula

Hi, thanks for this. The only problem is that I need the formula to only
count the cells within a rolling year. (The dates are in the row above)

My initial formula: =SUMPRODUCT(($S$1:$IV$1=TODAY()-365)*S2:IV2) adds up
all the figures correctly within the rolling 12 months, but I also need to
count the cells (occasions) for the same condition. i.e if someone has been
off sick for 4 weeks (20 days) I would merge the 4 cells together and only
want excel to count this as 1 rather than 20. This is what I can't figure out.

Is this possible? If necessary I can send you an example....

"Bob Phillips" wrote:

=COUNT($S$1:$IV$1)


"Jennie" wrote in message
...
Hello,

I've got a formula which works perfectly to sum the number of days someone
has been off sick in a rolling year, however I also need to count the
number
of occassions people have been off. Can anyone help me develop my existing
formula or is there a totally diferent way to do it? I'm stuck. :(

This is my current formula:
=SUMPRODUCT(($S$1:$IV$1=TODAY()-365)*S2:IV2)





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
Nesting a sumproduct formula within a sumif formula. jerrymcm Excel Discussion (Misc queries) 2 October 3rd 07 03:35 PM
sumproduct formula Stacey Excel Discussion (Misc queries) 6 March 29th 07 11:38 PM
OR in a SUMPRODUCT formula Kierano Excel Worksheet Functions 9 October 19th 06 10:24 AM
SumProduct Formula Help bountifulgrace Excel Worksheet Functions 2 May 4th 06 08:14 PM
sumproduct formula mbparks Excel Worksheet Functions 4 January 10th 05 03:44 PM


All times are GMT +1. The time now is 08:09 PM.

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"