+ Reply to Thread
Results 1 to 8 of 8

auto input on list of selection dates

  1. #1
    Registered User
    Join Date
    09-07-2008
    Location
    Philippines
    Posts
    22

    auto input on list of selection dates

    Hi,

    How to make an auto input on list of selection dates by giving only the starting date and ending date.

    Given:
    List of selection dates only:
    15-Aug-08
    30-Aug-08
    15-Sep-08
    30-Sep-08
    15-Oct-08
    30-Oct-08
    15-Nov-08
    30-Nov-08
    15-Dec-08
    30-Dec-08
    and so on...

    Inputs:
    Starting date: 30-Aug-08
    Ending date:30-Oct-08

    and output should be like this:

    30-Aug-08
    15-Sep-08
    30-Sep-08
    15-Oct-08
    30-Oct-08

    I hope there is a simple solution for this..
    thanks,
    Oliver

  2. #2
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256
    Here is one solution
    HTH
    Ola
    Attached Files Attached Files

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    You could enter a date in the first cell (say A1), and then in A2 and copy down,

    =IF(DAY(E1) = 30, EOMONTH(E1, 0), E1) + 15

    Requires the Analysis Toolpak add-in.

  4. #4
    Registered User
    Join Date
    09-07-2008
    Location
    Philippines
    Posts
    22
    thanks.. both works fine,

    Hi shg,

    the solution works great, but when it comes to the month of February your formula will not work because february is less than 30 days. Is there a remedy for this?

    thanks a lot
    Oliver

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Assuming you want the last day in Feb,

    =IF(DAY(A1) >15, EOMONTH(A1, 0) + 15, MIN(A1+15, EOMONTH(A1, 0) ) )
    Last edited by shg; 09-14-2008 at 12:01 PM.

  6. #6
    Registered User
    Join Date
    09-07-2008
    Location
    Philippines
    Posts
    22
    it works perfectly... thanks again

  7. #7
    Registered User
    Join Date
    09-07-2008
    Location
    Philippines
    Posts
    22
    Hi Shg,

    Some little problem with the formula you've given,

    Please Login or Register  to view this content.
    I'm using Office2007, but the document i've done, i have save it in 1997-2003 version, so if i'm using 2007version your formula works perfectly, but when it is opened with 2003version it is giving problem.. I tried check what is the cause but still cannot find the reason, just new in excel.

    kindly need your guidance on this one..
    thanks,
    Oliver

  8. #8
    Registered User
    Join Date
    09-07-2008
    Location
    Philippines
    Posts
    22
    Hi Shg,

    No need to reply, too much condition i have included that is the problem, now i have fixed it.

    Thanks again.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. User Input From A Supplied List
    By OzTrekker in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-21-2007, 11:53 PM
  2. create input box for range of dates
    By needhelp79 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-04-2007, 11:44 AM
  3. Pick the earliest date from a selection of dates...
    By -emma- in forum Excel General
    Replies: 9
    Last Post: 01-24-2007, 08:16 PM
  4. auto populate from a list
    By Alien in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-07-2006, 06:45 AM
  5. Listbox selection auto deletes from cell. Help
    By sbowen666 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-15-2006, 05:32 AM

Tags for this Thread

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