+ Reply to Thread
Results 1 to 7 of 7

Returning cell value in case today is between two dates

  1. #1
    Registered User
    Join Date
    03-25-2015
    Location
    Bucharest, Romania
    MS-Off Ver
    Office 2013
    Posts
    43

    Returning cell value in case today is between two dates

    Hello everyone,

    Please see attached document to get a better idea of what i would like to extract.

    - Today() is in cell B17
    - Cells B4 to B8 are in B18 to B22
    - in the C18:C22 range i would like to have the values from 2-Apr-17 from the B3:N8 table

    So, in case today is between cell C3 and D3 to return the content for C3 for each entry from B18:B22 in C18:C22

    Thanks,
    -Alex
    Attached Files Attached Files

  2. #2
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Returning cell value in case today is between two dates

    Try with
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    This is if "B17" (Today) in between "C3" & "D3" then Data from "C4" to "C8" extract at cell "C18" to "C22"


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,962

    Re: Returning cell value in case today is between two dates

    Try this, copied down...
    =INDEX(C4:N4,MATCH($B$17,$C$3:$N$3))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    03-25-2015
    Location
    Bucharest, Romania
    MS-Off Ver
    Office 2013
    Posts
    43

    Re: Returning cell value in case today is between two dates

    @FDibbins: the formula work but the problem is that i have more "Stuff" and more dates above .. can the formula be modified to search also for the "Stuff" ?

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,962

    Re: Returning cell value in case today is between two dates

    Try this...
    =INDEX($C$4:$N$8,MATCH($B18,$B$4:$B$8,0),MATCH($B$17,$C$3:$N$3))

  6. #6
    Registered User
    Join Date
    03-25-2015
    Location
    Bucharest, Romania
    MS-Off Ver
    Office 2013
    Posts
    43

    Re: Returning cell value in case today is between two dates

    @FDibbins: TY, this works perfectly!

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,962

    Re: Returning cell value in case today is between two dates

    Happy to help and thanks for the feedback

+ 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. Returning a value if cell date is between two dates
    By joeljoel in forum Excel General
    Replies: 8
    Last Post: 03-24-2016, 10:30 AM
  2. Dates- Change from cell reference to today
    By mattress58 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-19-2014, 12:44 PM
  3. Replies: 4
    Last Post: 09-19-2014, 08:10 AM
  4. If Dates in range equal today then copy cell x
    By Greg420 in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 15
    Last Post: 03-20-2014, 09:47 AM
  5. Replies: 5
    Last Post: 12-31-2013, 01:44 AM
  6. Returning a value if cell date is between two dates
    By nik_ahafiz in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-14-2013, 10:33 AM
  7. [SOLVED] Counting Tasks With Due Dates between TODAY and TODAY+7
    By Erik_with_a_K in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-29-2013, 09:00 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