Incrementally Generating A Date and Value Between Two Dates

engelwood

Active Member
Joined
Oct 14, 2004
Messages
327
There's a whole back story as to why I need this functionality, but for brevity, I'll leave it out.... I have two columns A (the date) and B (the value). I would like to build a query to generate an incremental date and value for any dates between. I'll provide an example:

Current:
Column A Column B
1/2/15 1001-1002
1/4/15 1001-1002
1/5/15 1003
1/6/15 1003
1/9/15 1004-1005
1/13/15 1004-1005

The Desired Output:
Column A Column B
1/2/15 1001-1002
1/4/15 X
1/4/15 1001-1002
1/5/15 1003
1/6/15 1003
1/9/15 1004-1005
1/10/15 X
1/11/15 X
1/12/15 X
1/13/15 1004-1005

Thanks in advance... This will be a big help to me!
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Hi,
given the following:

Excel 2013
ABCDEF
1datevaluedatevalue
21/2/20151001-10021/2/20151001-1002
31/4/20151001-10021/3/2015x
41/5/201510031/4/20151001-1002
51/6/201510031/5/20151003
61/9/20151004-10051/6/20151003
71/13/20151004-10051/7/2015x
81/8/2015x
91/9/20151004-1005
101/10/2015x
111/11/2015x
121/12/2015x
131/13/20151004-1005
engelwood

formula in E2 is =A2
formula in E3 is =IFERROR(INDEX($A$2:$A$7,MATCH(E2+1,$A$2:$A$7,0)),E2+1) copied down till required.
formula in F2 is =IFERROR(INDEX($B$2:$B$7,MATCH(E2,$A$2:$A$7,0)),"x") copied down till required.

Would that be close to what you required?
 
Upvote 0
The output is correct, but I'm really looking for an access solution. The data is housed in access and will be changing on a weekly basis.
 
Upvote 0
My bad, overlooked forum questions. will check with access.
 
Upvote 0

Forum statistics

Threads
1,221,905
Messages
6,162,770
Members
451,786
Latest member
CALEB23

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