Sumproduct?

Zakkala

Active Member
Joined
Nov 12, 2004
Messages
254
Hi guys,

I've asked this before but can't get anything to work - any suggestions?

I have one workbook with 2 worksheets in it.

First worksheet - called SS IDLE, cell D3 contains the text '1: (LUNCH) LUNCH' and cell B5 contains the text 'Smith, John'. Using data from the second worksheet I want to populate cell D5 with the length of time John was on lunch - i.e. 00:45:00.

Second worksheet - called IDLE, column P contains a list of different codes, some of which are '1: (LUNCH) LUNCH'. Column Q contains a list of names, some of which are 'Smith, John' and column R contains the length of time.

I need cell D5 on my first worksheet to look in column R on my second worksheet and return the time when column P says '1: (LUNCH) LUNCH' and column Q says 'Smith, John'. There will only be one cell that provides this data.

I hope that makes sense - can't post using the html thing to show an example of the spreadsheet so have to rely on my limited descriptive skills.
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
=SUMPRODUCT(--(IDLE!P1:P1000=D3),--(IDLE!Q1:Q1000=B5),IDLE!R1:R1000)

Adjust the ranges as needed.
 
Upvote 0

Forum statistics

Threads
1,203,072
Messages
6,053,377
Members
444,659
Latest member
vuphihung

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top