+ Reply to Thread
Results 1 to 12 of 12

Pulling The Date of the Most Recent Entry

  1. #1
    Registered User
    Join Date
    11-05-2015
    Location
    Bismarck ND
    MS-Off Ver
    Excel 2013
    Posts
    6

    Pulling The Date of the Most Recent Entry

    I have a workbook that customer service uses to enter info on each time a store requests that we send them a box. We are having trouble with stores requesting boxes too frequently. They should only be requesting boxes every couple of months or so. I am attaching a simplified example of the workbook.

    When customer service types the store number in column A, I need column C to pull in the most recent date they previously requested a box (or NA if they have never requested a box before)

    The idea is that Customer Service can instantly see the last date sent by entering the store #.

    This is my first post and I hope I am explaining this clearly. Also, thank you in advance for your help. Excel_Forum_Example.xlsx

  2. #2
    Registered User
    Join Date
    11-05-2015
    Location
    Bismarck ND
    MS-Off Ver
    Excel 2013
    Posts
    6

    Re: Pulling The Date of the Most Recent Entry

    The example I attached somehow changed. Please see this attachment.


    Excel_Forum_Example.xlsx

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Pulling The Date of the Most Recent Entry

    a2 =(B2&countif($B$2:$B2,$B2))*1 and drag down.

    d2= VLookup(A2-1,$A$2:$C$6,3,0) and drag down

    See the attached file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Registered User
    Join Date
    11-05-2015
    Location
    Bismarck ND
    MS-Off Ver
    Excel 2013
    Posts
    6

    Re: Pulling The Date of the Most Recent Entry

    Thank you for the reply.

    Using the file you provided, I dragged the formula down like 10 cells in each column. I then entered a store number and it worked perfectly but would not do it for the next row down. Am I missing something?

    Example of the error
    2nd example.xlsx

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Pulling The Date of the Most Recent Entry

    Change the range of the cells

    d2=VLookup(A2-1,$A$2:$C$20,3.0) and drag down.

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Pulling The Date of the Most Recent Entry

    Try ..

    =IFERROR(VLOOKUP(A2-1,$A$2:$C$20,3,0),"N/A")

    You need additional test if no date in C (is this likely?)

  7. #7
    Registered User
    Join Date
    11-05-2015
    Location
    Bismarck ND
    MS-Off Ver
    Excel 2013
    Posts
    6

    Re: Pulling The Date of the Most Recent Entry

    It works perfectly in the example but in the actual workbook I am trying to modify, there are non-numerical characters is the store # field. I probably should have included this in my original example.

    Thank you again for all of your help. Side Note: My co-workers think it is really cool that someone from The Netherlands is helping me!

    Example of the error
    3rd example.xlsx

  8. #8
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Pulling The Date of the Most Recent Entry

    Then please reply which result should be in
    Firestone #1234

    Is this the same as 1234 or is this a new item, and therefore needs to show N/A?

  9. #9
    Registered User
    Join Date
    11-05-2015
    Location
    Bismarck ND
    MS-Off Ver
    Excel 2013
    Posts
    6

    Re: Pulling The Date of the Most Recent Entry

    THis workbook is thousands of rows long and there may be several entries for the same store within the workbook. I only want it to pull the date from the most recent entry.

  10. #10
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Pulling The Date of the Most Recent Entry

    d2=VLookup((B2&countif($B$2:$B2,$B2)-1),$A$2:$C$1000,3,0) and drag down.

    See the attached file.

  11. #11
    Registered User
    Join Date
    11-05-2015
    Location
    Bismarck ND
    MS-Off Ver
    Excel 2013
    Posts
    6

    Thumbs up Re: Pulling The Date of the Most Recent Entry

    Eureka! Thank you for all of your help my friend. You probably earned me a raise in pay!

  12. #12
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Pulling The Date of the Most Recent Entry

    Thanks for the rep.

    You're welcome. We appreciate the feedback!

    If your question has been solved please mark the thread as being solved.

    In the menu bar above the very first post select Thread Tools, then select Mark this 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)

Similar Threads

  1. VLookup most recent entry
    By Spicey_888 in forum Excel General
    Replies: 5
    Last Post: 03-29-2015, 03:48 AM
  2. [SOLVED] Seeking the MOST RECENT entry in a row
    By reglook0736 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-15-2015, 08:46 AM
  3. [SOLVED] Macro not pulling down most recent date
    By cartica in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-25-2014, 12:29 PM
  4. VLOOKUP Based on Date of Most Recent Data Entry
    By sky-raptor in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-11-2014, 12:11 PM
  5. [SOLVED] Open an xlsx with most recent date in filename, run my data pulling macro, then move file
    By alanwu07 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-31-2013, 05:24 AM
  6. Most recent entry for each case
    By mathasaurus in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-28-2011, 05:41 AM
  7. Show most recent entry
    By desertdude1 in forum Excel General
    Replies: 2
    Last Post: 09-24-2008, 12:45 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