#1   Report Post  
neil
 
Posts: n/a
Default Sumproduct function

Hi,

In an attendance sheet, I need to calculate the number of fridays that each
employee has worked. Each cell captures either a text value (a combination of
X, M, S, A etc) or a numeral.

I'm trying to use the sumproduct function to do this:
Range E9:AI9 contains the calculated Fridays (using the weekday function)
Range E11: AI11 contains the attendance data

=sumproduct(--(E9:AI9="Fri"),(e11:ai110)

The formula gives the number of times "Fri" appears, but not the number of
times the relevant cell contains a numeric value.

Can you please help me??

Thanks
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

Neil,

It might be as simple as

=SUMPRODUCT(--(E9:AI9="Fri"),--(E11:AI110))

if row 9 really has text of Fri, not the actual dates. If real dates, try

=SUMPRODUCT(--(TEXT(E9:AI9,"ddd")="Fri"),--(E11:AI110))

but this means that only the numbers get counted, not X.M,S,A (which are
presumable absence codes).

If you want to total the amount then add ,E11:A11 into the formula.

--
HTH

Bob Phillips

"neil" wrote in message
...
Hi,

In an attendance sheet, I need to calculate the number of fridays that

each
employee has worked. Each cell captures either a text value (a combination

of
X, M, S, A etc) or a numeral.

I'm trying to use the sumproduct function to do this:
Range E9:AI9 contains the calculated Fridays (using the weekday function)
Range E11: AI11 contains the attendance data

=sumproduct(--(E9:AI9="Fri"),(e11:ai110)

The formula gives the number of times "Fri" appears, but not the number of
times the relevant cell contains a numeric value.

Can you please help me??

Thanks



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
Excel option to store trendline's coefficients in cells for use Miguel Saldana Charts and Charting in Excel 9 June 20th 05 08:45 PM
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
Automatically up date time in a cell Mark Excel Discussion (Misc queries) 5 May 12th 05 12:26 AM
clock Wildman Excel Worksheet Functions 2 April 26th 05 10:31 AM
Sumproduct function not working Scott Summerlin Excel Worksheet Functions 12 December 4th 04 05:15 AM


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