+ Reply to Thread
Results 1 to 21 of 21

Date lookup to get week back

  1. #1
    Forum Contributor
    Join Date
    07-27-2009
    Location
    montreal, canada
    MS-Off Ver
    Excel 2003
    Posts
    230

    Date lookup to get week back

    My vlookup fonction fell in a black hole after the november 23rd 2009.

    What would you reckon?
    Attached Files Attached Files
    Last edited by Sibrulotte; 11-25-2009 at 05:45 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Date lookup to get week back

    These are not "real" date entries..they are text strings.

    Select column of "dates" and go to Data|Text to Columns.

    Then skip to the 3rd window and select Date and select MDY from the drop down in the column data format area.

    Click Finish.

    Repeat for date column in other sheet.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    07-27-2009
    Location
    montreal, canada
    MS-Off Ver
    Excel 2003
    Posts
    230

    Re: Date lookup to get week back

    Ah crap.
    Why was it working for the past 3 months though?

    I'm exporting the dates from Access dayly, and I wanted as little manipulation as possible...



    thx though.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Date lookup to get week back

    An alternative is to replace your formula with:

    =INDEX(Sheet2!$C$1:$C$22,MATCH(B2+0,Sheet2!$B$1:$B$22+0))

    and confirm it with CTRL+SHIFT+ENTER not just ENTER so you will see { } brackets appear around the formula

    Then copy it down.

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Date lookup to get week back

    Maybe even

    =INDEX(Sheet2!$C$1:$C$22,MATCH(TRUE,(INDEX((Sheet2!$B$1:$B$22+0>=B2+0),0)),0)-1)

    without special confirmation.. just ENTER

  6. #6
    Forum Contributor
    Join Date
    07-27-2009
    Location
    montreal, canada
    MS-Off Ver
    Excel 2003
    Posts
    230

    Re: Date lookup to get week back

    that's awkwrd, it says the formula is incorrect and highlights the $C$22,MATCH part of both attemps at your 2 formulas.

  7. #7
    Forum Contributor
    Join Date
    07-27-2009
    Location
    montreal, canada
    MS-Off Ver
    Excel 2003
    Posts
    230

    Re: Date lookup to get week back

    Also, I tried replacing the comas with semicomas to seperate the expressions.
    And i get a #n/a for the second formula, and a # value for the first one.
    Attached Files Attached Files
    Last edited by Sibrulotte; 11-25-2009 at 04:01 PM. Reason: attached the file after formula input

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Date lookup to get week back

    Still giving problems? Using formula 2...see attached...

    Formula 1, you need to Confirme with CTRL+SHIFT+ENTER keys at once.
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    07-27-2009
    Location
    montreal, canada
    MS-Off Ver
    Excel 2003
    Posts
    230

    Re: Date lookup to get week back

    thank you.
    your forumulas work, but as soon as I press F2 to get in the formula,
    the # N/A value comes back.

    I'M GINXED!

  10. #10
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Date lookup to get week back

    Are you sure you are not accidentally deleting or changing part of the formula?

  11. #11
    Forum Contributor
    Join Date
    07-27-2009
    Location
    montreal, canada
    MS-Off Ver
    Excel 2003
    Posts
    230

    Re: Date lookup to get week back

    Absolutly.
    pressing F2, then enter. gives me a # N/A value

  12. #12
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Date lookup to get week back

    For me it was the opposite when I opened your workbook in Post #7 above...

    It was #N/A, I press F2 and enter, and formula is okay...

    Not sure maybe something in the version translation...

    Can you try entering yourself:

    =INDEX(Sheet2!$C$1:$C$22;MATCH(B2+0;Sheet2!$B$1:$B$22+0))

    and then hold the CTRL and SHIFT keys down and press ENTER...

    Then copy down.

    Does that work at all?

  13. #13
    Forum Contributor
    Join Date
    07-27-2009
    Location
    montreal, canada
    MS-Off Ver
    Excel 2003
    Posts
    230

    Re: Date lookup to get week back

    I sat down, rewrote the formula, and CTRL+SHIFT+ENTER.
    I get a #VALUE!

    I'll try the other formula.

  14. #14
    Forum Contributor
    Join Date
    07-27-2009
    Location
    montreal, canada
    MS-Off Ver
    Excel 2003
    Posts
    230

    Re: Date lookup to get week back

    I get the #N/A


    you can give me credit for being meticulous.
    It's the same as wrtten in your file.

  15. #15
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Date lookup to get week back

    It must have to do with the data formatting then...

    if you go to the formula in D2 and then go to Tools|Formula Auditing and click Evaluate Formula... then click Evaluate until you get to the last evaluation before the final answer... what do you see in the Evaluation box?

  16. #16
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Date lookup to get week back

    Give this a try:

    Please Login or Register  to view this content.

  17. #17
    Forum Contributor
    Join Date
    07-27-2009
    Location
    montreal, canada
    MS-Off Ver
    Excel 2003
    Posts
    230

    Re: Date lookup to get week back

    #Value.
    the first click I get, shows rthe date properly, the second click, is where the # value shows up.

  18. #18
    Forum Contributor
    Join Date
    07-27-2009
    Location
    montreal, canada
    MS-Off Ver
    Excel 2003
    Posts
    230

    Re: Date lookup to get week back

    You realy don't like failure.
    that works :D

  19. #19
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Date lookup to get week back

    No, I don't easily like to give up...

    Glad that worked.

    I think it was just are dates being expressed differently...

    Can you also please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

  20. #20
    Forum Contributor
    Join Date
    07-27-2009
    Location
    montreal, canada
    MS-Off Ver
    Excel 2003
    Posts
    230

    Re: Date lookup to get week back

    I'm also wondering:
    this forum has proven me very usefull to my company. I'd like to make a donation.

    SHOW ME YOUR PAYPAL!
    I'm realy happy that ppl on here share such knowledge... and so unselfishely.

  21. #21
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Date lookup to get week back

    We don't take payments or donations really.

    We are volunteers doing this for fun and brain exercise.

    The fact that we have helped you get the results that make you happy is good enough (for me, at least)... and you have shown your appreciation, which makes it worthwhile.

+ 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