+ Reply to Thread
Results 1 to 5 of 5

Excel 2007 : multiple y values for same x values , want the bigger y

Hybrid View

  1. #1
    Registered User
    Join Date
    11-12-2011
    Location
    Alberta
    MS-Off Ver
    Excel 2007
    Posts
    4

    Unhappy multiple y values for same x values , want the bigger y

    A B
    00:10:40 16.07
    00:10:40 10.6
    00:10:41 15.9
    00:10:41 10.6
    00:10:42 15.9
    00:10:42 10.6
    00:10:43 15.9
    00:10:43 10.6


    Hi I am new to excel. Column A is the x values and Column B is the y values. What I need is only one x value and corresponding larger y value ( no duplicates ). Something like

    A B
    00:10:40 16.07
    00:10:41 15.9
    00:10:42 15.9
    00:10:43 15.9

    Any formula to do that . thnx
    Last edited by gorge4355; 11-13-2011 at 12:12 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: multiple y values for same x values , want the bigger y

    Assuming the x values really are duplicates, sort by x ascending and y descending, then select col A and do Data > Remove Duplicates
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    11-12-2011
    Location
    Alberta
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: multiple y values for same x values , want the bigger y

    it doesnt work . I want to explain more on this thing.
    I have two columns A and B . On column A I have some time values and on B some measured distance values. As mentioned in my first post in this thread , on some particular seconds I get multiple distance values ( column B ). But I need to have only the greater distance value in that second.

    I have a huge database and manually selecting the highest value associated with a particular time value is a time consuming and inefficient way .

    The excel file that i am currently working on is attached here.

    thanks in advance. really need some help.
    Attached Files Attached Files
    Last edited by gorge4355; 11-13-2011 at 05:26 AM.

  4. #4
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: multiple y values for same x values , want the bigger y

    Try this
    Create two non-volatile dynamic named ranges
    1/. Name:= "Times"
    Refers to:=
    =Sheet1!$A$2:INDEX(Sheet1!$A:$A,COUNTA(Sheet1!$A:$A),1)
    1/. Name:= "Distances"
    Refers to:=
    =Sheet1!$B$2:INDEX(Sheet1!$B:$B,COUNTA(Sheet1!$A:$A),1)
    Then in C2 this array formula
    =IF(B2<>MAX((Times=A2)*(Distances)),"Delete","")
    Confirm with Ctrl+Shift+Enter not just enter.
    Drag/Fill Down.

    Filter Column C for "Delete" select the resulting rows and do just that.

    Is that what you need?
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  5. #5
    Registered User
    Join Date
    11-12-2011
    Location
    Alberta
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: multiple y values for same x values , want the bigger y

    @Marcol

    Brilliant , thanks a lot
    really appreciate your help .
    Last edited by shg; 11-13-2011 at 02:19 PM. Reason: deleted quote

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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