+ Reply to Thread
Results 1 to 2 of 2

Return Adjacent Cell Value from Current Date

  1. #1
    Registered User
    Join Date
    10-14-2016
    Location
    wisconsin, USA
    MS-Off Ver
    2010
    Posts
    1

    Return Adjacent Cell Value from Current Date

    I have found similar topics, but nothing has worked for me yet. I have 2 columns (A & B) where A contains the first day of the month in the format (10/1/2016). Column B contains different number values. I need a function to search column A for the current month and return the adjacent cell (from column B).

    Column A____________Column B

    function returns value here (and should equal 2 since it is October)

    9/1/2016_______________1
    10/1/2016______________2
    11/1/2016______________3


    Thanks for any help

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Return Adjacent Cell Value from Current Date

    I think a simple VLOOKUP with a TRUE 4th parameter does the trick, this requires column A be sorted ascending as you've shown above:

    =VLOOKUP(TODAY(), A:B, 2, TRUE)

    The TRUE flag will cause the results to backdate the date searched (TODAY) until it finds the next earliest date if there is no exact match.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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. [SOLVED] If a cell in a column equals today's date return the value of another cell adjacent to it
    By DeanExcel in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-24-2021, 01:38 AM
  2. Need formula to return certain cell based on the current date
    By Meggo12 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-08-2016, 01:46 PM
  3. [SOLVED] MIN function to return earliest date if adjacent cell has data
    By Reapz in forum Excel General
    Replies: 1
    Last Post: 03-01-2016, 06:34 PM
  4. Replies: 3
    Last Post: 07-21-2015, 05:10 PM
  5. Determine date, return a value from adjacent cell
    By MilesDeep in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-02-2014, 01:27 PM
  6. Adding up a row of numbers until they are > than a cell and then return adjacent date
    By thunderbirdlindy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-20-2014, 06:09 PM
  7. Replies: 1
    Last Post: 08-13-2012, 11:18 AM

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