+ Reply to Thread
Results 1 to 2 of 2

Date search

Hybrid View

  1. #1
    Registered User
    Join Date
    08-05-2013
    Location
    United States, MO
    MS-Off Ver
    Excel 2003
    Posts
    11

    Date search

    Hello All,

    I am currently trying to figure out a formula. I have attached an excel document as well as input some values in this message for visual assistance (the real report contains lots of data). I need to be able to display the date for which the transaction amount was repaid after the NSF (negative dollar amount). I tried a vlookup to search based upon ID# but it only returns the first date which is the initial payment.


    ID # Transaction Date
    15555 $500.00 12/2/2013
    25555 $87.59 12/2/2013
    35555 $100.00 12/3/2013
    45555 $900.00 12/4/2013
    55555 $100.00 12/4/2013
    65555 $48.00 12/5/2013
    55555 ($100.00) 12/5/2013
    15555 ($500.00) 12/5/2013
    75555 $63.00 12/6/2013
    16666 $129.00 12/6/2013
    26666 $38.00 12/6/2013
    36666 $114.00 12/6/2013
    55555 $100.00 12/7/2013
    15555 $500.00 12/7/2013
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Date search

    Hi,

    In D2 copied down does
    Formula: copy to clipboard

    =IF(B2<0,"",IFERROR(INDEX(C3:C$100,MATCH(A2,A3:A$100,FALSE),1),""))


    I've used 100 as the end row. Change it as necessary. Make sure it's always one row larger than the last data item. Better still create a dynamic range name 'data'

    Formula: copy to clipboard

    =OFFSET(Sheet1!$A3,0,0,COUNTA(Sheet1!$A:$A),1)


    and use
    Formula: copy to clipboard

    =IF(B2<0,"",IFERROR(INDEX(OFFSET(data,0,2),MATCH(A2,data,FALSE),1),""))
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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. Use VBA to Search for Todays Date from an array of Date and Paste Value
    By davis6774 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-16-2013, 07:11 PM
  2. search code-date then copy name-date-time to another sheet
    By k1dr0ck in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-14-2013, 02:25 AM
  3. Search data from date to date, help me!
    By cocolucky in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-11-2012, 12:29 AM
  4. Search for a date or date range.
    By Shin278 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-10-2011, 07:30 PM
  5. look up date, search date, return a sum
    By dribrite in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-18-2010, 01:21 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