+ Reply to Thread
Results 1 to 4 of 4

Remove/disable lookups and formulas when a date has passed in each row.

  1. #1
    Registered User
    Join Date
    11-27-2012
    Location
    Adelaide, south australia
    MS-Off Ver
    Excel 2013
    Posts
    26

    Post Remove/disable lookups and formulas when a date has passed in each row.

    Hi,

    I have a spreadsheet that has lookups and formulas that retrieves information from another sheet , what I would like to do is stop or disable the lookups automatically when a date in the row has passed the current date. IF this could be done by a macro automatically.

    The reason being is that I need to update the data in the lookup sheet quite regularly, some of the data will change or is removed which will error the previous entries on the main sheet, so what I need is a way to stop or disable the lookups so my old data does not change, or Saves values macro .

    Example - before updated data this what it looks like in my spreadsheet


    showing in a Row is - John 27/11/17 (current date) $50,000.00 (I don't want this to change)

    after I have updated the rate has changed

    John 27/11/17 $60,000.00 (need to keep the $50K and not update)

    After up date if John's details are no longer showing I end up with #n/a#

    and need the details above to stay without the formulas etc "John 27/11/17 (current date) $50,000.00"

    Many thanks
    Last edited by Mhay5656; 11-26-2017 at 11:57 PM.

  2. #2
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Remove/disable lookups and formulas when a date has passed in each row.

    Just add an IF before the vlookup that checks the date and only does the lookup under the condition you want.

    Sorry didn't understand all of the question. Ignore my answer.
    Last edited by kersplash; 11-26-2017 at 11:40 PM.

  3. #3
    Registered User
    Join Date
    09-19-2013
    Location
    Kenya
    MS-Off Ver
    Excel 2013
    Posts
    5

    Re: Remove/disable lookups and formulas when a date has passed in each row.

    How are the rates stored?

    If the rates are stored with dates in a chronological list you can pick the latest rate for each date with vlookup (using range lookup).

  4. #4
    Registered User
    Join Date
    11-27-2012
    Location
    Adelaide, south australia
    MS-Off Ver
    Excel 2013
    Posts
    26

    Re: Remove/disable lookups and formulas when a date has passed in each row.

    Thank you for your help, I will send another post as what i am looking at is a macro that paste values

+ 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. Replies: 5
    Last Post: 02-03-2015, 09:08 PM
  2. Formula to add x months to a date when the date has passed.
    By adamliq in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-30-2013, 10:06 PM
  3. Lookups and formulas
    By gnoke in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-01-2010, 06:15 AM
  4. Replies: 1
    Last Post: 03-22-2010, 04:09 PM
  5. Formulas for Lookups
    By jekcarlson in forum Excel General
    Replies: 2
    Last Post: 11-30-2009, 05:34 PM
  6. Using formulas in VB with variables passed from Excel cells
    By nbwright in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-23-2007, 05:09 PM
  7. Alert on date passed
    By pelachrum in forum Excel General
    Replies: 9
    Last Post: 10-23-2006, 12:47 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