+ Reply to Thread
Results 1 to 5 of 5

Add Date in Column A Plus Number of Days in Column B and show result in Column C

  1. #1
    Registered User
    Join Date
    05-25-2010
    Location
    colorado, USA
    MS-Off Ver
    Excel 2003
    Posts
    12

    Add Date in Column A Plus Number of Days in Column B and show result in Column C

    I have been having a hard time finding a way to do this for something that seems to be somewhat simple.

    I have the following example data:

    Column A Column B Column C
    Start Date Days End Date
    01/30/2013 1 1/31/2013
    2/05/2013 5 2/10/2013
    3/07/2013 8 03/15/2013

    etc.

    I just want to have the sheet automatically fill in the End Date in Column C by a function that sums Column A and Column B for each row of the Range. I was hoping to do this in VBA. Any assistance is very much appreciated!

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Add Date in Column A Plus Number of Days in Column B and show result in Column C

    Why not just a formula...

    A2+B2 and copy down

    If you really need to do this with VBA...

    Please Login or Register  to view this content.
    Last edited by jeffreybrown; 01-12-2013 at 01:27 PM.
    HTH
    Regards, Jeff

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,598

    Re: Add Date in Column A Plus Number of Days in Column B and show result in Column C

    All you need to do is add the two together and format the result how you would like to see it (i.e. m/dd/yyy). A simple formula can achieve this in C2:

    =A2+B2

    then copy down. If your start date is actually a text value that looks like a date, then you can do this:

    =--A2+B2

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    05-25-2010
    Location
    colorado, USA
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Add Date in Column A Plus Number of Days in Column B and show result in Column C

    I would do it that way but the workbook is being designed to be used with other users who do not know how to do that. That is why I was looking to do it with VBA.

  5. #5
    Registered User
    Join Date
    05-25-2010
    Location
    colorado, USA
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Add Date in Column A Plus Number of Days in Column B and show result in Column C

    Thank You JeffreyBrown! That is exactly what I was looking for!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1