• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Fill in missing dates and repeat data in adjacent column

Excel for jpf

New Member
HI, How do i fill the missing dates and repeat the value in the second column. Thank you
DateValue
1979-02-080
1979-02-281
1979-03-090
1979-04-241
1979-05-080
 

Attachments

  • missing dates.xlsx
    8.7 KB · Views: 4
In the attached, Sheet1 (2), 2 solutions. First make your source data into a proper Excel table, then:
1. Power Query at cell D1. When the data in the source table changes, right-click the green table and choose Refresh.
2. Formula only in cells I2 & J2.
 

Attachments

  • Chandoo47300missing dates.xlsx
    22.9 KB · Views: 5
Try,

1] In "Date" D2, formula copied down until blank :

=IF(ROW(A1)<=A$10-A$2+1,A$2-1+ROW(A1),"")

2] In "Value" E2, formula copied down until blank :

=IF(D2="","",INDEX(B:B,MATCH(D2,A:A)))

Or,

=IF(D2="","",LOOKUP(D2,A:B))

77290
 
Last edited:
Back
Top