+ Reply to Thread
Results 1 to 10 of 10

If the date doesn't match exactly, pick the value from just earlier date

  1. #1
    Registered User
    Join Date
    09-04-2013
    Location
    Bangladesh
    MS-Off Ver
    Excel 2007
    Posts
    7

    If the date doesn't match exactly, pick the value from just earlier date

    I want to pick the amount in a particular date. If the date doesn't match exactly it will pick the amount from the just earlier date.
    Conditio: match id and date
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    03-11-2014
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    379

    Re: If the date doesn't match exactly, pick the value from just earlier date

    Hi Arif,

    Please check the attached file. I have apply the formulas according to your condition: match id & date.
    Can you please check the output that you have given manually.

    Regards,
    AM

  3. #3
    Valued Forum Contributor
    Join Date
    05-07-2014
    Location
    India
    MS-Off Ver
    MS Office 365
    Posts
    313

    Re: If the date doesn't match exactly, pick the value from just earlier date

    Hi AM,

    Where is the attachment?????

    Regards
    Nisha

  4. #4
    Registered User
    Join Date
    12-23-2013
    Location
    Gurgaon
    MS-Off Ver
    Excel 2013
    Posts
    36

    Re: If the date doesn't match exactly, pick the value from just earlier date

    Here you go!
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    01-07-2015
    Location
    India
    MS-Off Ver
    excel 2007
    Posts
    16

    Re: If the date doesn't match exactly, pick the value from just earlier date

    Please can you explain the formulae ?

  6. #6
    Registered User
    Join Date
    09-04-2013
    Location
    Bangladesh
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: If the date doesn't match exactly, pick the value from just earlier date

    Sorry. My mistake.
    I want to pick the amount in a particular date (i.e. 5 March 2014). If the date doesn't match exactly it will pick the amount from the previous date (just previous smaller date of 5 March 2014). For example if the date series are 25 Jan 2014, 25 Feb 2014, 25 Mar 2014 and 25 Apr 2014 then it will show the value of 25 February 2014.
    Regards
    Arif

  7. #7
    Registered User
    Join Date
    09-04-2013
    Location
    Bangladesh
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: If the date doesn't match exactly, pick the value from just earlier date

    Any solution? Please help.
    [I want to pick the amount in a particular date (i.e. 5 March 2014). If the date doesn't match exactly it will pick the amount from the previous date (just previous smaller date of 5 March 2014). For example if the date series are 25 Jan 2014, 25 Feb 2014, 25 Mar 2014 and 25 Apr 2014 then it will show the value of 25 February 2014.]

  8. #8
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: If the date doesn't match exactly, pick the value from just earlier date

    How about this:
    =LOOKUP(2,1/(($B$4:$B$15=F9)*($C$4:$C$15<=$G$7)),$D$4:$D$15)
    Quang PT

  9. #9
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: If the date doesn't match exactly, pick the value from just earlier date

    Why do you expect to get 80 for B1 with 5-Mar? It is from B2 which does not match ID.

  10. #10
    Registered User
    Join Date
    09-04-2013
    Location
    Bangladesh
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: If the date doesn't match exactly, pick the value from just earlier date

    Dear Bebo02199 & Maitrayk
    Thanks for the solution. I am impressed and really grateful to you both.
    It is exactly what I wanted.
    Bebo mistakenly I wrote B1, B2, B3, B4. actuality all ID will be B1. Same for C.

    You are genius. Thanks again.

    Arif

+ 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] Sumif date is blank or earlier than current date
    By cp49321 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-13-2013, 01:40 PM
  2. [SOLVED] Pick Date from Column A instead of current date.
    By Ilikeideas in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 06-25-2013, 01:49 PM
  3. [SOLVED] VBA worksheetfunction.match doesn't match DATE. Userform
    By stevnb in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-05-2012, 09:08 AM
  4. how to force a date field to be entered so my pop up calendar appears to pick date
    By cmwilbur in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-29-2010, 10:19 AM
  5. VBA doesn't pick up exact match
    By greekboyuk in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-06-2010, 03:11 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