+ Reply to Thread
Results 1 to 4 of 4

If function

  1. #1
    Registered User
    Join Date
    03-10-2011
    Location
    Liverpool, England
    MS-Off Ver
    Microsoft 365
    Posts
    35

    If function

    I want to create something on the first sheet that tells me if todays date is shown in a cell. The dates are all in column D and If todays date is shown I want it to show me the contents of the cell in B


    I thought of an If function that says is the date = today then show me address on main sheet but I do not know how to execute this formula. Anyone know how or got any ideas how I would do this?

    Basically my idea follows the structure if d3=today then show b3.

    If anyone can think of a cleverer way of showing this info please pitch in your reply!!!


    Thanks

    Dq

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,968

    Re: If function

    This formula looks for today's date in column D, and returns the value in column B in the corresponding row:

    =INDEX(B:B,MATCH(TODAY(),D:D,0))

    Edit: This will only work if the dates in column D are integer dates. If they are date+time then it won't find a match.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Valued Forum Contributor
    Join Date
    10-13-2010
    Location
    Sunderland, England
    MS-Off Ver
    Excel 2007 (Home) / 2003 (Work)
    Posts
    740

    Re: If function

    =IF(ISERROR(MATCH(TODAY(),Sheet1!D:D,0)),"",(INDEX(Sheet1!B:B,MATCH(TODAY(),Sheet1!D:D,0),1)))

    Does that work?

  4. #4
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: If function

    Try this
    Please Login or Register  to view this content.

    Hope this helps

    [EDIT]
    Browser not updating yet again!
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

+ 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