#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ian Bartlett
 
Posts: n/a
Default sumproduct ?

I'm trying to obtain information on how often someone works say a Saturday.
A1 Date
b1 weekday a1
d1 array of types {"E","EN","r"}
tried this returns 0
=SUMPRODUCT((C18:C382="Sat")*(D18:D382=({"E","EN", "r"})))

any help appreciated.

Bart


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Vito
 
Posts: n/a
Default sumproduct ?


If you actually have the text string "Sat" in C18:C382, then it should
work.

Make sure there are no spaces in preceding or after any text strings in
either column C or D.

How are the dates and the weekdays being entered or populated?


--
Vito
------------------------------------------------------------------------
Vito's Profile: http://www.excelforum.com/member.php...o&userid=29182
View this thread: http://www.excelforum.com/showthread...hreadid=539818

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ian Bartlett
 
Posts: n/a
Default sumproduct ?

c18:c382 are obtained by =weekday() not text strings how would one work
around that?

Thanks

"Ian Bartlett" wrote in message
news:2mG7g.138953$WI1.77256@pd7tw2no...
I'm trying to obtain information on how often someone works say a
Saturday.
A1 Date
b1 weekday a1
d1 array of types {"E","EN","r"}
tried this returns 0
=SUMPRODUCT((C18:C382="Sat")*(D18:D382=({"E","EN", "r"})))

any help appreciated.

Bart



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
SteveG
 
Posts: n/a
Default sumproduct ?


Change your formula to:

=SUMPRODUCT((C18:C382=7)*(D18:D382=({"E","EN","r"} )))

This assumes your WEEKDAY formula is written using 1 as the return type
which makes Saturday the 7th weekday. If you use a 2 as the return
type,
C18:C382 should = 6, and if you use a 3 as the return type, C18:C382
should = 5.


HTH

Steve


--
SteveG
------------------------------------------------------------------------
SteveG's Profile: http://www.excelforum.com/member.php...fo&userid=7571
View this thread: http://www.excelforum.com/showthread...hreadid=539818

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ian Bartlett
 
Posts: n/a
Default sumproduct ?

SteveG

That worked a charm! Thank you very much.

Bart


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
Need help with sumproduct & dynamic ranges bill_s1416 Excel Worksheet Functions 1 March 19th 06 03:36 AM
Need help with sumproduct and dynamic ranges Bill_S Excel Worksheet Functions 2 March 19th 06 01:19 AM
Can I reference =, <, or > sign in SUMPRODUCT BobT Excel Discussion (Misc queries) 7 February 16th 05 01:58 PM
Sumproduct function not working Scott Summerlin Excel Worksheet Functions 12 December 4th 04 05:15 AM
adding two sumproduct formulas together ski2004_2005 Excel Worksheet Functions 1 November 12th 04 09:08 PM


All times are GMT +1. The time now is 06:35 AM.

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"