Hi,
I have a workbook, with two sheets - sheet 1, sheet 2.
Sheet 1 has headers - Account, Date
Sheet 2 has headers - Account, Period, Date 1, Date 2. Date 1 is start date, date 2 is end date.
What I am trying to achieve is for excel macro or formulas to update sheet 1 with period from sheet 2, based on the date lited in sheet 1.
For example: first entry in sheet 1, account 1 has date 06/22/2016. In sheet 2, this account 1 has various dates with period number attached to it. For this particular entry in sheet 1, I want to see 1 as an answer in column C because 06/22/2016 falls between the date range 12/1/2015 - 11/30/2016, which is period 1 in sheet 2. Similarly, row 65 in sheet 1 says "2" because 12/2/2016 falls in between 12/01/2016 thru 11/30/2017 in sheet 2.
Notes:
- Sheet 1 and Sheet 2 will have multiple lines with same dates. I have 20 more columns explaining what happened on that particular date.
- I will have 100's of accounts in both sheets.
Attached is a sample. Thank you for looking into this.
Your help is appreciated.
Bookmarks