+ Reply to Thread
Results 1 to 6 of 6

Trying to pull out values from different start dates and end dates.

  1. #1
    Registered User
    Join Date
    03-15-2013
    Location
    sf
    MS-Off Ver
    Excel 2007
    Posts
    13

    Trying to pull out values from different start dates and end dates.

    This is continuation from my other thread. It's 3am here so I'm a little disoriented at this point and I hope I'm making sense. But I have a column of "start dates" and the next column is "length of period". So if my values for the two columns are "January" and "5", then that means I would like to pull out data starting in January and ending in May.
    The following row might have values "May" and "2" so I only want to pull data starting in May and ending in June.

    I hope this makes sense. TIA

    I attached a spreadsheet with some sample data.
    Attached Files Attached Files

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,904

    Re: Trying to pull out values from different start dates and end dates.

    Can you provide result manually for 1st 2 Rows
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Registered User
    Join Date
    03-15-2013
    Location
    sf
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Trying to pull out values from different start dates and end dates.

    I updated the file and tweaked the data to a bit to be more accurate. TIA

  4. #4
    Registered User
    Join Date
    03-15-2013
    Location
    sf
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Trying to pull out values from different start dates and end dates.

    Anyone? I'm trying to pull out various months regarding when the start date was..Please see attached file. The "output" columns are what I hope to do for about 1750 rows.

    TIA

  5. #5
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Trying to pull out values from different start dates and end dates.

    Hello Leena,

    I am not sure which sheet is your output. Assuming it is Sheet2.

    If months are entered orderly Jan-Dec, as in your sample file, try this in O2,

    =IF(COLUMNS($O2:P2)>$N2,"",INDEX($A2:$L2,MONTH(EDATE(1&$M2,COLUMNS($O2:P2)-1))))

    Then copy across & down.

    Or if is in any order,

    =IF(COLUMNS($O2:O2)>$N2,"",INDEX($A2:$L2,MATCH(TEXT(EDATE((1&$M2),COLUMNS($O2:O2)-1),"mmm"),$A$1:$L$1,0)))
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  6. #6
    Registered User
    Join Date
    03-15-2013
    Location
    sf
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Trying to pull out values from different start dates and end dates.

    Thanks!!! It works.

+ 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. [SOLVED] Creating a formula to populate range of cells between dates based on start and end dates
    By Rainmain82 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-20-2014, 07:42 PM
  2. [SOLVED] Creating a formula to populate range of cells between dates based on start and end dates
    By Rainmain82 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-18-2014, 07:55 AM
  3. Replies: 9
    Last Post: 03-05-2012, 08:17 AM
  4. Replies: 3
    Last Post: 02-24-2012, 11:43 AM
  5. Replies: 5
    Last Post: 06-30-2011, 03:26 PM

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