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

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
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,217,250
Messages
6,135,481
Members
449,941
Latest member
Kiron02

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