+ Reply to Thread
Results 1 to 5 of 5

Find the Start and End Value in Column in the respective Fields

  1. #1
    Registered User
    Join Date
    10-28-2013
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    6

    Find the Start and End Value in Column in the respective Fields

    Hi team, I'm new to the Excel Forum as well as for the excel also.

    I have a issue in the excel, that I need to take the result as follows.


    Date Value
    1/1/2013 10
    1/2/2013 10
    1/3/2013 10
    1/4/2013 10
    1/5/2013 10
    1/6/2013 12 Search value 10
    1/7/2013 12
    1/8/2013 12 Result Start End
    1/9/2013 12 1/1/2013 1/5/2013
    1/10/2013 12
    1/11/2013 12
    1/12/2013 12
    1/13/2013 15
    1/14/2013 15
    1/15/2013 15
    1/16/2013 15
    1/17/2013 15
    1/18/2013 15
    1/19/2013 15
    1/20/2013 15
    1/21/2013 15
    1/22/2013 15
    I need to find the start and end date's from the date column from the search value from value column, I have attached my excel sheet also.

    hope I explained my question well.
    please help me to resolve this.
    Attached Files Attached Files

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Find the Start and End Value in Column in the respective Fields

    In J15 Cell

    =INDEX(D:D,MATCH(J12,E:E,0))

    In K5 Cell

    =INDEX(D:D,MATCH(J12,E:E,1))


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Find the Start and End Value in Column in the respective Fields

    welcome to the forum, Ganesankadarkarai. if your dates are arranged in ascending order, try this in J15:
    =INDEX(D7:D28,MATCH(J12,E7:E28,0))
    and in K15:
    =LOOKUP(2,1/(E7:E28=J12),D7:D28)

    if they're not, and you want to find the earliest/latest date with the search value, then try this array formula:
    =MIN(IF(E7:E28=J12,D7:D28))
    ...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.

    change to MAX for K15. or use this SUMPRODUCT formula:
    =SUMPRODUCT(MAX((E7:E28=J12)*D7:D28))

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  4. #4
    Registered User
    Join Date
    10-28-2013
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Find the Start and End Value in Column in the respective Fields

    Quote Originally Posted by :) Sixthsense :) View Post
    In J15 Cell

    =INDEX(D:D,MATCH(J12,E:E,0))

    In K5 Cell

    =INDEX(D:D,MATCH(J12,E:E,1))


    Great sir.... It's working... Thank you

  5. #5
    Registered User
    Join Date
    10-28-2013
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Find the Start and End Value in Column in the respective Fields

    Quote Originally Posted by benishiryo View Post
    welcome to the forum, Ganesankadarkarai. if your dates are arranged in ascending order, try this in J15:
    =INDEX(D7:D28,MATCH(J12,E7:E28,0))
    and in K15:
    =LOOKUP(2,1/(E7:E28=J12),D7:D28)

    if they're not, and you want to find the earliest/latest date with the search value, then try this array formula:
    =MIN(IF(E7:E28=J12,D7:D28))
    ...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.

    change to MAX for K15. or use this SUMPRODUCT formula:
    =SUMPRODUCT(MAX((E7:E28=J12)*D7:D28))
    Great sir.... It's working... Thank you so much for both of you.

+ 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] Find empty cell till next value merge or copy the respective cells in next column
    By rpriyadharsini1987 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-25-2013, 03:46 AM
  2. find repeating numbers in a column and sum the respective value assigned
    By gmkumaran in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-06-2013, 10:48 AM
  3. [SOLVED] Populate the respective fields
    By sfshah in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-09-2012, 02:20 PM
  4. Summing respective fields from Multiple workbooks to one Consolidating File
    By dawnmau in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-08-2011, 05:52 PM
  5. Replies: 1
    Last Post: 01-15-2010, 05:29 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