+ Reply to Thread
Results 1 to 5 of 5

Need to find closest Date and rate based another criteria

  1. #1
    Registered User
    Join Date
    09-28-2015
    Location
    Dhaka
    MS-Off Ver
    2007
    Posts
    31

    Need to find closest Date and rate based another criteria

    Hello Friends,
    I have three columns, i.e. Column-A & B &C. Now I need to find the closest or equal date and respective rate in different columns, i.e. Column-E & F based on the criteria set in Column-D Column -G. I have used =MAX(IF(A1:A100<=E3,A1:A100)) array formula to find the closest date but I can not proceed further. Please help me to find a way so that I can finish my job in a better way. Now I do it manually.

    Col-A Col-B Col-C Col-D Col-E Col-F Col-G
    Date Duration Rate Rate Closest date Date
    27-Apr-15 182 7.81 30 5.25% 30-Apr-15 5-May-15
    20-Apr-15 364 8.21 91 7.27% 4-May-15
    30-Apr-15 30 5.25 182 7.65% 4-May-15
    27-Apr-15 91 7.33 364 8.21% 20-Apr-15
    4-May-15 91 7.27
    4-May-15 182 7.65
    5-Apr-15 364 8.05
    11-May-15 91 6.99
    11-May-15 182 7.33
    13-May-15 30 5.25
    18-May-15 91 6.58
    18-May-15 364 7.48
    19-May-15 30 5.25
    25-May-15 91 5.75
    25-May-15 182 6.5
    27-May-15 30 5.25

    With Thanks,
    Samorita
    Last edited by samorita; 10-26-2015 at 09:02 AM.

  2. #2
    Registered User
    Join Date
    10-07-2015
    Location
    Vancouver, BC, Canada
    MS-Off Ver
    Office 365
    Posts
    22

    Re: Need to find closest Date and rate based another criteria

    please attach the example file

  3. #3
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Need to find closest Date and rate based another criteria

    The way that I understand your problem you are wanting to match the values in columns D & F against columns A & B and return values in column C into column E. Column G is a mystery to me. I don't know what you mean by "closest" match as all your examples are exact matches. In addition, closest matches require data to be in order which yours is not.
    This array formula will return an exact match for combined values in columns D and F against combined values in B and A.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    ...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. Press F2 on that cell and try again.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  4. #4
    Registered User
    Join Date
    09-28-2015
    Location
    Dhaka
    MS-Off Ver
    2007
    Posts
    31

    Re: Need to find closest Date and rate based another criteria

    Dear bsuperiorsystem,

    With the help of the formula of dear Mr. newdoverman, I have solved one requirement. But I can not find the date. I am attaching a sample excel file (2007 version) using the mentioned formula. I have added necessary comments in the file. Still if you need any other clarification, I will do so. Please have a look on the file and help me. I will be highly grateful.

    With thanks,
    Samorita
    Attached Files Attached Files

  5. #5
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Need to find closest Date and rate based another criteria

    I have no idea what those "base dates" are and how they relate to your data. If you want to find "nearest dates" to some date then the search usually requires that the data being searched be in date order which yours is not.

+ 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. Replies: 3
    Last Post: 06-12-2015, 10:33 AM
  2. [SOLVED] Find closest value to meet given criteria
    By saysys in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-12-2014, 02:11 AM
  3. [SOLVED] look-up a date in a range and find the date that is closest todays date
    By VanShark in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-12-2014, 09:46 PM
  4. How to lookup value based on Date time closest to criteria
    By ilionel1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-08-2013, 02:01 PM
  5. [SOLVED] Find a number closest to 30 in a range with one more criteria (criteria includes text)
    By Sarangsood in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-22-2013, 01:16 PM
  6. [SOLVED] find missing date on every group date list based on range and criteria
    By k1dr0ck in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-25-2013, 01:26 AM
  7. Find the closest date based on 2 variables
    By WPeters in forum Excel General
    Replies: 2
    Last Post: 08-15-2007, 06:38 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