Extracting info based on month. Please Help

LibraJB

New Member
Joined
Jun 2, 2016
Messages
1
Hi guys,

I tried many times. I have a concept but unable to come up with an excel formula. Please help me out..

Column start from A to Q
Row start from 1 to 5

Table 1
Fruits
Lead Time
In Stock
Jun
Jul
Aug
Sep
Oct
Nov
Dec
Jun2
Jul2
Aug2
Sep2
Oct2
Nov2
Dec2
Apple
14
50
200
100
100
200
100
100
5/18/2016
6/17/2016
7/18/2016
8/18/2016
9/17/2016
10/18/2016
11/17/2016
Orange
31
50
200
100
100
200
100
100
5/1/2016
5/31/2016
7/1/2016
8/1/2016
8/31/2016
10/1/2016
10/31/2016
Banana
62
50
200
100
100
200
100
100
3/31/2016
4/30/2016
5/31/2016
7/1/2016
7/31/2016
8/31/2016
9/30/2016
Strawberry
93
50
200
100
100
200
100
100
2/29/2016
3/30/2016
4/30/2016
5/31/2016
6/30/2016
7/31/2016
8/30/2016

<tbody>
</tbody>

Example:
In Jul, I need to order 200 Apples, which have to arrive on 7/1/2016. The lead time is 14 days in advanced to make an order to my agent supplier. I calculated the monthly lead time using formula: =DATE(2016,7,1)-B2 in L2. (This apply to others respectively)

Because of the lead time, I have to purchase in advance, I would like make a formula that list all purchases that should be make on that particular month.

Lets say for Jul (Some values are repeated, example) the formula in table 2 in the cell are capable to extract info from table 1:

Table 2
7/1/2016
Orange
100
Aug2
7/1/2016
Banana
100
Sep2
7/18/2016
Apple
100
Aug2
7/31/2016
Banana
200
Oct2
7/31/2016
Strawberry
100
Nov2

<tbody>
</tbody>

Do anyone have any idea for cell formula in table 2?:confused:

Then once have the formula for table 2, similar formula can be use for table 3 for August, table 4 for September and so on..

Please help~:confused:
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Maybe try using the Month function, like below:
=IF(MONTH(L2)=7,"Order","")

You could also have the month at the top of the columns, then just copy the same formula throughout (which reduces the chance for errors), like this:
=IF(MONTH(L2)=L$1,"Order","")
 
Upvote 0

Forum statistics

Threads
1,214,790
Messages
6,121,608
Members
449,038
Latest member
apwr

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