Lookup value in table if header date falls within this range

B5rocksass

Board Regular
Joined
Jan 10, 2017
Messages
56
Office Version
  1. 2016
Platform
  1. Windows
I need to compile a list of item qtys across a weekly grid for reporting purposes. My original sheet is a list with duplicates. How do I arrive at the conclusion in the second table using formulas? Right now I'm doing this manually.

ITEM
QTY SHIPPED
IN-HOUSE DATE (OR EST)
WEEK START
1/22/17
1/29/17
2/5/17
2/12/17
DOG
500
25-Jan
DOG
750
350
0
500
HORSE
250
25-Jan
CAT
0
450
0
600
DOG
250
25-Jan
HORSE
1,250
0
0
600
CAT
500
25-Jan
PIG
550
250
0
200
HORSE
1,000
25-Jan
PIG
550
25-Jan
PIG
250
2-Feb
DOG
350
2-Feb
CAT
450
2-Feb
DOG
500
16-Feb
CAT
600
16-Feb
HORSE
600
16-Feb
PIG
200
16-Feb

<tbody>
</tbody>
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
The cell coloured yellow should be 500, you have it as 0 in your sample


Excel 2010
ABCDEFGHIJ
1ITEMQTY SHIPPEDIN-HOUSE DATE (OR EST)WEEK START22-Jan29-Jan-1705-Feb12-Feb-1719-Feb
2DOG50025-JanDOG7503500500
3HORSE25025-JanCAT5004500600
4DOG25025-JanHORSE125000600
5CAT50025-JanPIG5502500200
6HORSE1,00025-Jan
7PIG55025-Jan
8PIG25002-Feb
9DOG35002-Feb
10CAT45002-Feb
11DOG50016-Feb
12CAT60016-Feb
13HORSE60016-Feb
14PIG20016-Feb
Sheet6
Cell Formulas
RangeFormula
F2=SUMIFS($B$2:$B$14,$A$2:$A$14,$E2,$C$2:$C$14,">="&F$1,$C$2:$C$14,"<"&G$1)
 
Upvote 0

Forum statistics

Threads
1,215,043
Messages
6,122,822
Members
449,096
Latest member
Erald

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