+ Reply to Thread
Results 1 to 12 of 12

How to look-up data based on date criteria.

  1. #1
    Forum Contributor
    Join Date
    11-21-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007,2013
    Posts
    159

    Question How to look-up data based on date criteria.

    Please help.

    I need a 2 formula
    1.) to look up the "ORDER" the corresponds to date sale
    2.) to look up the "DATE SALE" nearest after date of input

    CRITERIA:
    1.) REF and DATE OF INPUT

    i have done sumproduct but it seems it does capture criteria for nearest date.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by reimar_rem; 01-16-2018 at 07:16 AM.
    Click * below if this answer helped

  2. #2
    Forum Contributor
    Join Date
    11-21-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007,2013
    Posts
    159

    Re: How to look-up data based on date criteria.

    I have tired this formula but it does not completely works.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by reimar_rem; 01-16-2018 at 07:16 AM.

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,188

    Re: How to look-up data based on date criteria.

    Attach a sample workbook (not image).

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate.

    Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  4. #4
    Forum Contributor
    Join Date
    11-21-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007,2013
    Posts
    159

    Re: How to look-up data based on date criteria.

    I have been trying to attach file. I cannot attach for both explorer and chrome. my desired out is the AFTER in the image. that was manually encoded.1.png
    Last edited by reimar_rem; 01-16-2018 at 06:24 AM.

  5. #5
    Forum Contributor
    Join Date
    11-21-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007,2013
    Posts
    159

    Re: How to look-up data based on date criteria.

    Hi,
    1.png
    with desired output

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,188

    Re: How to look-up data based on date criteria.

    If you follow the instructions #3, you will be able to attach a file.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  7. #7
    Forum Contributor
    Join Date
    11-21-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007,2013
    Posts
    159

    Re: How to look-up data based on date criteria.

    test attchment
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    11-21-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007,2013
    Posts
    159

    Re: How to look-up data based on date criteria.

    hi, i have attached now. please have a check
    Quote Originally Posted by JohnTopley View Post
    If you follow the instructions #3, you will be able to attach a file.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Attached Files Attached Files

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,756

    Re: How to look-up data based on date criteria.

    Please remember that those who help here do so voluntarily and of their own goodwill. They live in many different time zones and many will be out at work right now if they are not asleep on the other side of the globe. This is not a paid 'service': members will help when they are ready and able to do so, and not 'on demand'. Please do not try to put pressure of time on anyone here: if you get the help you need today, that's fine, but you really should not count on it. Thanks for your understanding and patience.

    From the forum rules (link in the main menu above):
    • If your question has not been answered within a day, consider adding another post with any additional information you believe is relevant. If you think your post is good as is, just reply to your own thread with the words "Bump no response", which will bring it to the top of the forum.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  10. #10
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,188

    Re: How to look-up data based on date criteria.

    In M3

    =IFERROR(INDEX($F$14:$F$21,SMALL(IF(($H$14:$H$21=$L3)*($G$14:$G$21>=$K3),ROW($F$14:$F$21)-ROW($F$14)+1,""),1)),"")

    in N3

    =IFERROR(INDEX($G$14:$G$21,SMALL(IF(($H$14:$H$21=$L3)*($G$14:$G$21>=$K3),ROW($F$14:$F$21)-ROW($F$14)+1,""),1)),"")

    both ..

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

  11. #11
    Forum Contributor
    Join Date
    11-21-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007,2013
    Posts
    159

    Re: How to look-up data based on date criteria.

    Quote Originally Posted by JohnTopley View Post
    In M3

    =IFERROR(INDEX($F$14:$F$21,SMALL(IF(($H$14:$H$21=$L3)*($G$14:$G$21>=$K3),ROW($F$14:$F$21)-ROW($F$14)+1,""),1)),"")

    in N3

    =IFERROR(INDEX($G$14:$G$21,SMALL(IF(($H$14:$H$21=$L3)*($G$14:$G$21>=$K3),ROW($F$14:$F$21)-ROW($F$14)+1,""),1)),"")

    both ..

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    Its working now. thank you so much. I will add new reputation for you.

  12. #12
    Forum Contributor
    Join Date
    11-21-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007,2013
    Posts
    159

    Re: How to look-up data based on date criteria.

    Quote Originally Posted by AliGW View Post
    Please remember that those who help here do so voluntarily and of their own goodwill. They live in many different time zones and many will be out at work right now if they are not asleep on the other side of the globe. This is not a paid 'service': members will help when they are ready and able to do so, and not 'on demand'. Please do not try to put pressure of time on anyone here: if you get the help you need today, that's fine, but you really should not count on it. Thanks for your understanding and patience.

    From the forum rules (link in the main menu above):
    • If your question has not been answered within a day, consider adding another post with any additional information you believe is relevant. If you think your post is good as is, just reply to your own thread with the words "Bump no response", which will bring it to the top of the forum.
    Thanks you for reminding me.

+ 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. Sorting data based on date criteria and other information
    By nanders8 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-08-2017, 09:29 AM
  2. [SOLVED] Moving data to a different worksheet based on date criteria
    By smlon2 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-18-2014, 02:32 AM
  3. [SOLVED] Selecting data based on date criteria
    By Jaspal in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-16-2013, 02:33 PM
  4. [SOLVED] sum data in pivot table based on date criteria
    By joeycrak in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-23-2013, 09:45 AM
  5. Organize data based on criteria and date
    By dcaba in forum Excel General
    Replies: 1
    Last Post: 02-13-2010, 06:12 AM
  6. Pull Data based on a date criteria
    By Nolesphan30 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-01-2008, 12:22 AM
  7. [SOLVED] Bucketing data based on DATE Range criteria
    By sumitk in forum Excel General
    Replies: 1
    Last Post: 05-19-2006, 07:16 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