Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 542
Default sumproduct conditional statement

I work for a call center and I want to be able to determine the first and
second instance of a person's break.

My current euqation for lunches is:
=SUMPRODUCT(--((Data!$D$2:$D$65500)=$A3),--((Data!$E$2:$E$65500)=$B$3),--((Data!$G$2:$G$65500)=3),(Data!$H$2:$H$65500))

Where A3=agent, Col D agent lookup column, B3=date, Col E=dates, 3 represent
the lunch state found in Col G, and the time taken is in col H.

How do I re-write this part "--((Data!$G$2:$G$65500)=3)" for breaks (=7)
when there are two of them?

I will also run into issues if they split their time. I have 250 agents and
I'd like to build this for a week or two, so manual entry sounds is less than
exciting, especially when the data is 25,000 lines.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,420
Default sumproduct conditional statement

Try

=SUMPRODUCT((Data!$D$2:$D$65500=$A3)*(Data!$E$2:$E $65500=$B$3)*(Data!$G$2:$G$65500={3,7})*(Data!$H$2 :$H$65500))

--
__________________________________
HTH

Bob

"James" wrote in message
...
I work for a call center and I want to be able to determine the first and
second instance of a person's break.

My current euqation for lunches is:
=SUMPRODUCT(--((Data!$D$2:$D$65500)=$A3),--((Data!$E$2:$E$65500)=$B$3),--((Data!$G$2:$G$65500)=3),(Data!$H$2:$H$65500))

Where A3=agent, Col D agent lookup column, B3=date, Col E=dates, 3
represent
the lunch state found in Col G, and the time taken is in col H.

How do I re-write this part "--((Data!$G$2:$G$65500)=3)" for breaks (=7)
when there are two of them?

I will also run into issues if they split their time. I have 250 agents
and
I'd like to build this for a week or two, so manual entry sounds is less
than
exciting, especially when the data is 25,000 lines.



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 SUMPRODUCT or SUMPRODUCT with Filters Ted M H Excel Worksheet Functions 4 August 14th 08 07:50 PM
IF statement with nested SUMPRODUCT? Bazael Excel Discussion (Misc queries) 3 June 25th 08 09:52 PM
Conditional statement (if - then) within SUMPRODUCT James Excel Discussion (Misc queries) 1 January 7th 08 09:42 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


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