Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 25

Thread: Insert Missing Dates By Comparing Two Lists Of Dates

  1. #11
    Administrator Excel Fox's Avatar
    Join Date
    Mar 2011
    Posts
    1,402
    Rep Power
    10
    The macro above gives this result. I am not sure how it is different from your Columns 3 & 4

    1-Jan 1-Jan
    1-Jan
    1-Jan
    2-Jan
    3-Jan
    4-Jan 4-Jan
    4-Jan
    4-Jan
    4-Jan
    5-Jan
    6-Jan
    7-Jan
    8-Jan 8-Jan
    8-Jan 8-Jan
    8-Jan 8-Jan
    8-Jan 0-Jan
    9-Jan
    9-Jan
    9-Jan
    12-Jan
    12-Jan
    12-Jan
    13-Jan
    13-Jan
    13-Jan
    15-Jan
    16-Jan
    A dream is not something you see when you are asleep, but something you strive for when you are awake.

    It's usually a bad idea to say that something can't be done.

    The difference between dream and aim, is that one requires soundless sleep to see and the other requires sleepless efforts to achieve

    Join us at Facebook

  2. #12
    Senior Member
    Join Date
    Mar 2013
    Posts
    146
    Rep Power
    0
    Yes, this is exactly what I want
    But I want it by the formula
    And very sorry for your trouble
    I use (office 2003)

  3. #13
    Junior Member
    Join Date
    Aug 2013
    Posts
    18
    Rep Power
    0
    Please check the below formula will help you

    in column 3
    =IFERROR(VLOOKUP(D4,$E$4:$E$19,1,0),TEXT(0,"Genera l"))

    in column 4
    =IFERROR(VLOOKUP(E4,$D$4:$D$19,1,0),TEXT(0,"Genera l"))

  4. #14
    Junior Member
    Join Date
    Aug 2013
    Posts
    18
    Rep Power
    0
    Please check the below formula will help you
    It works until 8-Jan then stops. BTW there is an extra space between "a" and "l" for some reason that causes the formula to return #VALUE! errors.

    I don't think you can do this via a formula. I could be wrong, but it needs a macro in my humble opinion.

    Robert

  5. #15
    Senior Member
    Join Date
    Mar 2013
    Posts
    146
    Rep Power
    0
    Unfortunately, I think it will not work on (OFFICE 2003)

  6. #16
    Senior Member
    Join Date
    Mar 2013
    Posts
    146
    Rep Power
    0
    Thank you for your tired

  7. #17
    Junior Member
    Join Date
    Aug 2013
    Posts
    18
    Rep Power
    0
    Unfortunately, I think it will not work on (OFFICE 2003)
    Why not try and find out?

  8. #18
    Senior Member
    Join Date
    Mar 2013
    Posts
    146
    Rep Power
    0
    I have tried but did not work

  9. #19
    Junior Member
    Join Date
    Aug 2013
    Posts
    18
    Rep Power
    0
    Strange, they both worked for me

    What error message(s) do you get when you run the either of code or what do you mean by it did not work?

  10. #20
    Administrator Admin's Avatar
    Join Date
    Mar 2011
    Posts
    1,123
    Rep Power
    10
    @ Trebor76

    IFERROR won't work in pre-2007 versions.

    try this

    =if(isnumber(match(D4,$E$4:$E$19,0)),VLOOKUP(D4,$E $4:$E$19,1,0),TEXT(0,"Genera l"))
    Cheers !

    Excel Range to BBCode Table
    Use Social Networking Tools If You Like the Answers !

    Message to Cross Posters

    @ Home - Office 2010/2013/2016 on Win 10 (64 bit); @ Work - Office 2016 on Win 10 (64 bit)

Similar Threads

  1. List of Dates In DropDown Starting From Today()
    By rich_cirillo in forum Excel Help
    Replies: 5
    Last Post: 04-10-2013, 05:58 PM
  2. Replies: 4
    Last Post: 04-05-2013, 12:08 PM
  3. How to Extracting dates and days between 2 dates.
    By Rajesh Kr Joshi in forum Excel Help
    Replies: 9
    Last Post: 08-11-2012, 09:11 PM
  4. The Number of Years, Months and Days Between Two Dates
    By Rick Rothstein in forum Rick Rothstein's Corner
    Replies: 7
    Last Post: 06-08-2012, 10:35 PM
  5. Visual Plotter basis given dates and activity
    By Rajesh Kr Joshi in forum Excel Help
    Replies: 2
    Last Post: 03-07-2012, 02:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •