+ Reply to Thread
Results 1 to 8 of 8

Combining Dates in a Table

  1. #1
    Registered User
    Join Date
    05-20-2011
    Location
    Houston, US
    MS-Off Ver
    Excel 2007
    Posts
    6

    Combining Dates in a Table

    Hey guys, let's say I have a table of dates. For instance:
    12/6-12/17
    1/4-2/14
    4/5-5/6

    What formula can I use that would output 12/6-5/6? I used the left() and right() formulas, but if I input different numbers (say, 5/16 instead of 5/6), then those formulas don't work because of the extra digit.

    Thanks!
    Last edited by dumpsterjedi; 05-26-2011 at 12:05 AM.

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

    Re: Combining Dates in a Table

    Hello & Welcome to the Board,

    Are you looking for this...

    =LEFT(A1,FIND("-",A1)-1)&MID(A3,FIND("-",A3),LEN(A3))

    If not then please post a small sample workbook of what you have and what you expect.
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    05-20-2011
    Location
    Houston, US
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Combining Dates in a Table

    Thanks for the welcome and assistance!

    I have attached the table. So in C7, I would like to see 1/2-1/29. I have to fill out a lot of reports based off weeks, so this would save me a little time eventually (instead of typing out the dates every time I make a report). I haven't used excel extensively, so I'm just trying to learn everything there is to it. It's such an awesome program haha.
    Attached Files Attached Files

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

    Re: Combining Dates in a Table

    Try in C7...

    =LEFT(C3,FIND("-",C3)-1)&MID(C6,FIND("-",C6),LEN(C6))

  5. #5
    Registered User
    Join Date
    05-20-2011
    Location
    Houston, US
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Combining Dates in a Table

    It works, thanks!
    By the by, could you explain everything after MID? I understand LEFT, but I'm confused after that.

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

    Re: Combining Dates in a Table

    One of the best ways to understand a formula is by using evaluate formula or the shortcut keys of Alt + T,U,F

    From the Excel Help
    Syntax
    MID(text,start_num,num_chars)

    Text is the text string containing the characters you want to extract.

    Start_num is the position of the first character you want to extract in text. The first character in text has start_num 1, and so on.

    Num_chars specifies the number of characters you want MID to return from text.

    Look at C6
    MID(C6,

    Looks for the "-" to find the start number
    FIND("-",C6),

    How many characters
    LEN(C6))

  7. #7
    Registered User
    Join Date
    05-20-2011
    Location
    Houston, US
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Combining Dates in a Table

    Thanks a ton!

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

    Re: Combining Dates in a Table

    You're welcome.

    If this satisfies your request, please do not forget to mark the thread as solved.

+ 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