+ Reply to Thread
Results 1 to 10 of 10

Leadtime

  1. #1
    Registered User
    Join Date
    12-09-2009
    Location
    Mexico
    MS-Off Ver
    Excel 2007
    Posts
    18

    Leadtime

    Guys i really need help with this one i got the data in this format and need to get it as date in order to make a substract from a today formula minus that date in that format, if it helps this is data imported from a website.
    Attached Files Attached Files

  2. #2
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: Leadtime

    The problem is you have a space after the date. You can either do a find and replace for "2009 " (without quotation marks) and replace with "2009" or you can use =TODAY()-(LEFT(A2,LEN(A2)-1)) as your formula.

  3. #3
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Leadtime

    It's not a regular space, either, so replacing "2009 " with "2009" probably won't work. It's a non-breaking space (char 160).

    DY's formula would still work, though.

    Another option is:

    =TODAY()-SUBSTITUTE(A2,CHAR(160),"")

  4. #4
    Registered User
    Join Date
    12-09-2009
    Location
    Mexico
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Leadtime

    Mmm is not working i keep getting #Value! error, someone knows why?

  5. #5
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: Leadtime

    Please post an example workbook. I tried my formula with the one you had originally posted and it works fine.

  6. #6
    Registered User
    Join Date
    12-09-2009
    Location
    Mexico
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Leadtime

    Perhaps is something with my excel config?
    Attached Files Attached Files

  7. #7
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: Leadtime

    No, the formula is working fine. Format the result cell to a number format and you'll get 3.

  8. #8
    Registered User
    Join Date
    12-09-2009
    Location
    Mexico
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Leadtime

    Dude already did it, here's a Print screen of what i get in my excel i don't know why i keep getting the error i believe you, but perhaps is something else with the config i don't know.
    Attached Images Attached Images

  9. #9
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Leadtime

    The formula is working fine for me in the workbook you have posted. When I run through the formula evaluator, I see the same thing as you, but when it finishes I get the value 3, not an error.

    Are you running the English U.S. version of Office with U.S. regional settings? Only thing I can think of is that Excel isn't recognizing the date format of "December 7, 2009".

  10. #10
    Registered User
    Join Date
    12-09-2009
    Location
    Mexico
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Leadtime

    That was the issue, thanks a bunch guys!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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