+ Reply to Thread
Results 1 to 9 of 9

Find last date visited

  1. #1
    Registered User
    Join Date
    01-06-2011
    Location
    Louisiana
    MS-Off Ver
    Excel 2010
    Posts
    11

    Find last date visited

    Trying to find the last date visited for the week based on text entered in F8 to L8. The problem is with "NWX" note - no visit due to weather. The formula in E8 sees this as a visit and changes the date as the last cell with data entered. Based on the data E8 would show the date listed above last visited cell in F7 to L7.

    Example
    1/11 1/12 1/13 1/14 1/15 1/16 1/17
    JP JP NWX MJ MJ NWX NWX

    So the Date of Last Visit should show 1/15
    Attached Files Attached Files

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Find last date visited

    Try this formula in E8

    =LOOKUP(2,1/(F8:L8<>"")/(F8:L8<>"NWX"),F7:L7)
    Audere est facere

  3. #3
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Find last date visited

    Excel 2003 doesn't support xlsx extension so update your profile about your real excel version

  4. #4
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Find last date visited

    Hi
    Use in E8 the following array formula (use CTRL+Shift+ENTER to enter the array formula)
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    If you can use Excel 2010 or a more recente version of Excel try this regular formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    01-06-2011
    Location
    Louisiana
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Find last date visited

    I have updated the version. Thank you for the headsup.

  6. #6
    Registered User
    Join Date
    01-06-2011
    Location
    Louisiana
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Find last date visited

    Quote Originally Posted by daddylonglegs View Post
    Try this formula in E8

    =LOOKUP(2,1/(F8:L8<>"")/(F8:L8<>"NWX"),F7:L7)
    Thanks the LOOKUP Formula that works, but with one issue. Sorry I didn't mention it before. The E8 cell starts the week off showing the hard entered dated from cell S8. So the issue is that if there are only NWX entered it comes back as #NA instead of the last date from cell S8.

    What needs to be tweeked?

  7. #7
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Find last date visited

    OK, you can add an IFERROR function to cater for that, I.e.

    =IFERROR(LOOKUP(2,1/(F8:L8<>"")/(F8:L8<>"NWX"),F7:L7),S8)

  8. #8
    Registered User
    Join Date
    01-06-2011
    Location
    Louisiana
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Find last date visited

    Quote Originally Posted by wackonla View Post
    Thanks the LOOKUP Formula that works, but with one issue. Sorry I didn't mention it before. The E8 cell starts the week off showing the hard entered dated from cell S8. So the issue is that if there are only NWX entered it comes back as #NA instead of the last date from cell S8.

    What needs to be tweeked?
    I think I may have figured out the #NA problem with the IF(ISNA added to the above LOOKUP formula. Thank you for your help.

  9. #9
    Registered User
    Join Date
    01-06-2011
    Location
    Louisiana
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Find last date visited

    Quote Originally Posted by daddylonglegs View Post
    OK, you can add an IFERROR function to cater for that, I.e.

    =IFERROR(LOOKUP(2,1/(F8:L8<>"")/(F8:L8<>"NWX"),F7:L7),S8)
    Thank you very much. I'm going to use that one. It's cleaner, less of a change of me missing a cell change in the formula.

+ 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. Macro to go back to the last visited Sheet
    By gargsanjay1991 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-01-2015, 07:57 AM
  2. Replies: 8
    Last Post: 01-22-2014, 11:53 AM
  3. Replies: 2
    Last Post: 04-14-2013, 02:37 PM
  4. History of treads visited
    By evertjvr in forum Suggestions for Improvement
    Replies: 6
    Last Post: 05-27-2012, 02:42 PM
  5. the unique # of beneficiaries visited.
    By kamal_manohar in forum Excel General
    Replies: 5
    Last Post: 08-04-2011, 08:09 AM
  6. Help with report re-visited
    By stryped in forum Excel General
    Replies: 0
    Last Post: 06-22-2011, 02:55 PM
  7. Excel-hyperlinking between workbooks- close visited file when ret
    By Closing hyperlinked wookbooks upon exit in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-19-2006, 05:30 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