Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7589939
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T20:17:11+00:00 2026-05-30T20:17:11+00:00

In my two columns of data I would like to keep only the unique

  • 0

In my two columns of data I would like to keep only the unique values of ColumnOne that have the highest value in ColumnTwo.

For example

ColumnOne       ColumnTwo
2                  6
3                  2
7                  8
2                  7
3                  4
7                  3

So in this example my output would be:

      2                  7
      7                  8
      3                  4

because this is the unique values in ColumnOne with the highest values in ColumnTwo.

I tried using the formula

    "=IF(COUNTIF($A$2:A2,A2)>1,[ IF(B2>____  )1,0 ], 0)"

but I am stuck on what to put in this portion

   "IF(B2>____)."

This is what I am trying to say in the function:
If the value in the first column is repeated more than once

  1. Than if the corresponding B column has a greater value PRINT 1 ELSE PRINT 2

  2. *Else*Print 0

Any help would be really appreciated, Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T20:17:12+00:00Added an answer on May 30, 2026 at 8:17 pm

    Based on the original data you could put this formula in C2

    =(B2=MAX(IF(A$2:A$7=A2,B$2:B$7)))*(SUM(IF(A$2:A2=A2,IF(B$2:B2=B2,1)))=1)

    confirmed with CTRL+SHIFT+ENTER and copied down

    That will place a 1 against the first instance of each row containing the MAX B value for each distinct A value, zero otherwise.

    You can filter by 1s in column C to see just those rows

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a data frame of two columns: key and value and I would
I have the file data.txt with two columns and N rows, something like this:
I have ListView that uses a GridView to display several columns of data. Two
I would like to display data, two columns per row during my foreach. I
I have a databound listbox which is actually displaying two columns of data. It
I have two data frames with two columns each. The first column is timestamps
I have a data frame with two columns. First column contains categories such as
I have two columns. ColA and ColB contains char(10) with data 20090520 and 20090521.
If I have a data capture form with either tapstrips and or two columns
I have some data I am querying. The table is composed of two columns

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.