Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 542
Default Conditional statement (if - then) within SUMPRODUCT

I have data that matches 15m increments from 12am to 11:45pm. The end-data
needs to be in either hourly or half-hourly.

Is there a way to write the sumproduct to search for 12a, 12:15am, 12:30am,
and 12:45am and give a sum of anything in the respective cells? I might have
to do this additionally for 12am and 12:15 and 12:30 and 12:45 separately.

Currently I built a column next to it to and filled in the cells to show
12am for all four.
Time stamp Hour tab Skill Calls
12:00 AM 12:00 AM Skill 1 1
12:15 AM 12:00 AM Skill 1 3
12:30 AM 12:00 AM Skill 1 5
12:45 AM 12:00 AM Skill 1 9

My idea was SUMPRODUCT (--(andif((A5:A9)<=B2),(A5:A9)<=B3)),(D5:D9)) where
B2 = 12am and B3 = 12:15am

Any ideas?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Conditional statement (if - then) within SUMPRODUCT

SUMPRODUCT (--(A5:A9=B2),--(A5:A9<=B3),D5:D9)

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"James" wrote in message
...
I have data that matches 15m increments from 12am to 11:45pm. The end-data
needs to be in either hourly or half-hourly.

Is there a way to write the sumproduct to search for 12a, 12:15am,
12:30am,
and 12:45am and give a sum of anything in the respective cells? I might
have
to do this additionally for 12am and 12:15 and 12:30 and 12:45 separately.

Currently I built a column next to it to and filled in the cells to show
12am for all four.
Time stamp Hour tab Skill Calls
12:00 AM 12:00 AM Skill 1 1
12:15 AM 12:00 AM Skill 1 3
12:30 AM 12:00 AM Skill 1 5
12:45 AM 12:00 AM Skill 1 9

My idea was SUMPRODUCT (--(andif((A5:A9)<=B2),(A5:A9)<=B3)),(D5:D9)) where
B2 = 12am and B3 = 12:15am

Any ideas?



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
Conditional Statement regdor Excel Worksheet Functions 8 January 4th 08 09:36 PM
sumproduct and if statement ellebelle Excel Worksheet Functions 8 July 3rd 07 09:10 AM
SUMPRODUCT problem, using OR within statement ALEX Excel Worksheet Functions 2 January 30th 07 06:32 PM
Multiple if criteria in one statement (if/sumproduct) thekovinc Excel Discussion (Misc queries) 3 February 17th 06 08:22 PM
sumproduct formula too long, & how to use make an 'OR' statement w creativeops Excel Worksheet Functions 11 January 24th 06 05:05 PM


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