Date Range data retrieval

Shan9

New Member
Joined
Sep 10, 2017
Messages
6
Hello all,

Wondering if anyone can help me with my query; I've a spreadsheet Sheet 1 contains

DateFromTo
01/01/201807/01/2018
NameTime
Name 107:00:00
Name 2
Name 3
Name 4
Name 5

<colgroup><col><col><col></colgroup><tbody>
</tbody>

and Sheet 2 contains

Name01/01/201802/01/201803/01/201804/01/201805/01/201806/01/201807/01/201808/01/201809/01/2018
Name 101:00:0001:00:0001:00:0001:00:0001:00:0001:00:0001:00:00
Name 2
Name 3
Name 4
Name 5

<colgroup><col><col span="5"><col><col span="3"></colgroup><tbody>
</tbody>
<strike></strike>
my question is in Sheet 1 based up on the date range either 01/01/2018 -07/01/2018 or any range
how can I retrieve total time from Sheet 2 to Sheet 1 for the corresponding Name 1 or 2 etc.. in the example above over a date range
01/01/2018 -07/01/2018
Name 1's total time is 07:00:00

Any help would be much appreciated.

Thanks in advance.

I've used Sumifs, Hlookup, sumproduct but no success.

<colgroup><col><col span="2"></colgroup><tbody>
</tbody>
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Try

=SUMPRODUCT(('Sheet 2'!$A$2:$A$6=$A6)*('Sheet 2'!$B$1:$J$1>=$A$2)*('Sheet 2'!$B$1:$J$1<=$B$2),'Sheet 2'!$B$2:$J$6)
 
Upvote 0

Forum statistics

Threads
1,216,030
Messages
6,128,407
Members
449,448
Latest member
Andrew Slatter

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