+ Reply to Thread
Results 1 to 4 of 4

Using VLOOKUP to display date if present, if not display today's date

  1. #1
    Registered User
    Join Date
    02-09-2009
    Location
    Nashville, TN
    MS-Off Ver
    Excel 2007
    Posts
    47

    Using VLOOKUP to display date if present, if not display today's date

    Right now I'm currently using an IFERROR, VLOOKUP formula to display an availability date for a product.

    Atm, it reads some like this

    Please Login or Register  to view this content.
    However this isn't the most effective and will have to be changed everytime I run a new report.

    What I would like to do is run the VLOOKUP against my Master Delivery Date data, if a date is present for that style I would like it to return that date. If it is not present in the table I would like it to return today's date.

    Thoughts? Thanks in advance
    Last edited by jvegastn; 02-26-2009 at 04:28 PM.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Using VLOOKUP to display date if present, if not display today's date

    jusy use the error condition as today() or preferably reference a cell with =today() in it
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

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

    Re: Using VLOOKUP to display date if present, if not display today's date

    Replace "2/26/09" with TODAY()
    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.

  4. #4
    Registered User
    Join Date
    02-09-2009
    Location
    Nashville, TN
    MS-Off Ver
    Excel 2007
    Posts
    47

    Re: Using VLOOKUP to display date if present, if not display today's date

    Doh, I had tried that originally and for some reason it didn't occur to me to remove the ". Oh well thanks guys.

+ 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