Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
carl
 
Posts: n/a
Default Modify A SumProduct Formula

I currently use this formula:

=SUMPRODUCT(--($S$10:$S$60001=$H$2);$H$10:$H$60001)/$T$4

My ColS values are dates that look like so:

20050512 (year,month,day).

I would like to modify the formula to sum only if the 5th and 6th character
= 05.

Thank you in advance.
  #2   Report Post  
Duke Carey
 
Posts: n/a
Default

Try:

=SUMPRODUCT(--(MID($S$10:$S$60001,5,2)="05");$H$10:$H$60001)/$T$4


"carl" wrote:

I currently use this formula:

=SUMPRODUCT(--($S$10:$S$60001=$H$2);$H$10:$H$60001)/$T$4

My ColS values are dates that look like so:

20050512 (year,month,day).

I would like to modify the formula to sum only if the 5th and 6th character
= 05.

Thank you in advance.

  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default

=SUMPRODUCT(--(MONTH($S$10:$S$60001)=5);$H$10:$H$60001)/$T$4

--
HTH

Bob Phillips

"Duke Carey" wrote in message
...
Try:

=SUMPRODUCT(--(MID($S$10:$S$60001,5,2)="05");$H$10:$H$60001)/$T$4


"carl" wrote:

I currently use this formula:

=SUMPRODUCT(--($S$10:$S$60001=$H$2);$H$10:$H$60001)/$T$4

My ColS values are dates that look like so:

20050512 (year,month,day).

I would like to modify the formula to sum only if the 5th and 6th

character
= 05.

Thank you in advance.



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
How can I use a cell reference in Sumproduct array formula? Chrism Excel Discussion (Misc queries) 1 April 7th 05 05:05 PM
Help with macro formula and variable Huge project Excel Worksheet Functions 0 December 28th 04 01:27 AM
sumproduct formula to slow Todd Excel Worksheet Functions 4 December 21st 04 11:25 PM
SUMPRODUCT formula shmurphing Excel Worksheet Functions 4 December 21st 04 10:43 PM
SUMPRODUCT formula shmurphing Excel Worksheet Functions 2 December 21st 04 04:49 PM


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