Searching a column of dates for a date range and the adding the related value in the column next to selected dates

TimeFlies1074

New Member
Joined
Jan 14, 2016
Messages
11
Office Version
  1. 2019
Platform
  1. Windows
My file has a list of dates covering the last 5 years in column B. Next to each date in column C is the number of working hours for the date listed in column B. I would like Excel to search B:B and look for dates that include today's date (shown in cell A2) and all other dates within the last 365 days. I then need to know a sum of the working hours listed in C:C that relate to the dates from B:B within the search range of today -365 days.
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).

JoeMo

MrExcel MVP
Joined
May 26, 2009
Messages
18,075
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
Excel Workbook
ABCD
1*4/28/2016443
212/14/20168/11/20118*
3*12/20/20157*
4*8/23/20158*
5*1/24/20115*
6*1/4/20113*
7*3/26/20165*
8*5/10/20168*
9*9/12/20138*
10*4/30/20164*
11*1/26/20158*
12*1/3/20145*
13*9/4/20164*
14*5/21/20158*
15*7/10/20154*
16*11/23/20157*
17*4/19/20127*
18*5/27/20124*
19*1/17/20115*
20*7/1/20165*
21*8/24/20116*
22*3/2/20145*
23*3/4/20162*
24*5/15/20126*
25*6/24/20146*
26*7/11/20164*
27*1/20/20113*
28*2/8/20123*
29*8/23/20135*
30*12/24/20136*
Sheet1
 
Upvote 0

Forum statistics

Threads
1,191,671
Messages
5,987,956
Members
440,121
Latest member
eravella

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
Top