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 From SUMIF to COUNTIF

Hello,

Can anyone help me please?
I need a formula to count non blank cells within a rolling year. (The dates
are in the top row, and the days/occassions sick are in the rows below)

My initial formula: =SUMIF(($S$1:$IV$1=TODAY()-365)*S2:IV2) adds up
all the figures (total days sick) correctly within the rolling 12 months,
but I also need to count the non blank cells (occasions) for the same
condition. i.e if someone has been off sick for 4 days in one week I want
excel to count this as 1 rather than 4.
I thought that by changing 'SUMIF' to 'COUNTIF' would work, but it doesn't.

Any ideas?

Jennie


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
Countif & Sumif JulesHR Excel Worksheet Functions 7 May 29th 08 04:20 PM
SUMIF/COUNTIF Tatebana Excel Discussion (Misc queries) 3 February 16th 07 01:50 PM
COUNTIF or SUMIF or ?? croakingtoad Excel Worksheet Functions 2 November 28th 05 03:05 PM
Countif and sumif Visual Excel Discussion (Misc queries) 19 August 10th 05 05:59 PM
Countif, Sumif reno Excel Worksheet Functions 2 February 12th 05 02:31 AM


All times are GMT +1. The time now is 03:54 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"