Lookup/Index match help

ardykav

Board Regular
Joined
Oct 18, 2015
Messages
172
Office Version
  1. 365
Platform
  1. Windows
I have a yearly Summary tab (see below) which tracks the amount of chains sold per week. Column A is week beginning and Column B is "Chains", I have several more items but just need to concentrate on one as I will be able to work out the rest once given the first formula

Week Beginning Chains
4/01/2016 7
11/01/2016 7
18/01/2016 7
25/01/2016 7
1/02/2016 8
8/02/2016 9
15/02/2016
22/02/2016 98
29/02/2016
7/03/2016
14/03/2016
21/03/2016


I then have a monthly tab where I want to put in the first day of the month and it will automatically calculate how many chains were sold in this month on the basis of what is in the yearly tab. I have tried index match by date but it only picks up one of the cells on the yearly tab.

Chains
1/02/2016 XXX


All help greatly appreciated,

thanks
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
SUMIFS comes to mind. For example:

ABCDE
1Week BeginningChainsYearMonthSum
24-Jan720162115
311-Jan7
418-Jan7
525-Jan7
61-Feb8
78-Feb9
815-Feb
922-Feb98
1029-Feb
117-Mar
1214-Mar
1321-Mar
14

<colgroup><col style="width: 25pxpx"><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Summary

Worksheet Formulas
CellFormula
E2=SUMIFS(Summary!$B:$B,Summary!$A:$A,">="&DATE(C2,D2,1),Summary!$A:$A,"<"&DATE(C2,D2+1,1))

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>

This example has the formula on the same Summary sheet, but since it has the sheet name in it, it can be used on a different sheet.
 
Upvote 0
Try this...
A​
B​
C​
D​
E​
1​
Week BeginningChains
2​
1/4/2016
7​
2/1/2016
115​
3​
1/11/2016
7​
4​
1/18/2016
7​
5​
1/25/2016
7​
6​
2/1/2016
8​
7​
2/8/2016
9​
8​
2/15/2016
9​
2/22/2016
98​
10​
2/29/2016
11​
3/7/2016
12​
3/14/2016
13​
3/21/2016
E2=SUMIFS(B:B,A:A,">="&D2,A:A,"<"&EDATE(D2,1))

Note that I am using the USA date format mm/dd/yyyy, but the formula will work with your date format, too
 
Upvote 0
That is perfect thanks a lot for your help

Try this...
A​
B​
C​
D​
E​
1​
Week BeginningChains
2​
1/4/2016
7​
2/1/2016
115​
3​
1/11/2016
7​
4​
1/18/2016
7​
5​
1/25/2016
7​
6​
2/1/2016
8​
7​
2/8/2016
9​
8​
2/15/2016
9​
2/22/2016
98​
10​
2/29/2016
11​
3/7/2016
12​
3/14/2016
13​
3/21/2016
E2=SUMIFS(B:B,A:A,">="&D2,A:A,"<"&EDATE(D2,1))

Note that I am using the USA date format mm/dd/yyyy, but the formula will work with your date format, too
 
Upvote 0

Forum statistics

Threads
1,215,963
Messages
6,127,951
Members
449,412
Latest member
montand

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