Hello! I've tried many different methods for what I am trying to do and none seem to work quite right... Please see below for what I am attempting.
I have a table with two columns- the first column has words and the second column has numbers. In the second column, I have conditional formatting to highlight the three largest numbers.
Let's say the table is in A2:B10 on Sheet 1
In a new table, I want to only show the 3 cells that were highlighted as well as the words they correspond with in the first column. I was able to do this using the below equation:
To get the number for the first largest: =LARGE('Sheet 1'!$B$2:$B$10,1)
For the 2nd largest number: =LARGE('Sheet 1'!$B$2:$B$10,2)
To get the words for the first largest: =INDEX('Sheet 1'!$A$2:$B$10,MATCH(LARGE('Sheet 1'!$B$2:$B$10,1),'Sheet 1'!$B$21:$B$10,0),1)
For the 2nd largest words: =INDEX('Sheet 1'!$A$2:$B$10,MATCH(LARGE('Sheet 1'!$B$2:$B$10,2),'Sheet 1'!$B$21:$B$10,0),1)
The problem I ran into was when I had two numbers that equaled each other. The largest number in the data was '10' and the words next to it said 'a' while the second largest amount was also '10' with the words next to it 'b'. Since the data was the same amount, whenever I tried to pull back the words for the second largest number, I kept getting 'a' for both the largest and second largest.
Is there any way to pull back the words next to a specific cell? Maybe if I do it based off of conditional formatting rather than cell value? But I don't know how to to use an equation to look for conditional formatting... please help!
I have a table with two columns- the first column has words and the second column has numbers. In the second column, I have conditional formatting to highlight the three largest numbers.
Let's say the table is in A2:B10 on Sheet 1
In a new table, I want to only show the 3 cells that were highlighted as well as the words they correspond with in the first column. I was able to do this using the below equation:
To get the number for the first largest: =LARGE('Sheet 1'!$B$2:$B$10,1)
For the 2nd largest number: =LARGE('Sheet 1'!$B$2:$B$10,2)
To get the words for the first largest: =INDEX('Sheet 1'!$A$2:$B$10,MATCH(LARGE('Sheet 1'!$B$2:$B$10,1),'Sheet 1'!$B$21:$B$10,0),1)
For the 2nd largest words: =INDEX('Sheet 1'!$A$2:$B$10,MATCH(LARGE('Sheet 1'!$B$2:$B$10,2),'Sheet 1'!$B$21:$B$10,0),1)
The problem I ran into was when I had two numbers that equaled each other. The largest number in the data was '10' and the words next to it said 'a' while the second largest amount was also '10' with the words next to it 'b'. Since the data was the same amount, whenever I tried to pull back the words for the second largest number, I kept getting 'a' for both the largest and second largest.
Is there any way to pull back the words next to a specific cell? Maybe if I do it based off of conditional formatting rather than cell value? But I don't know how to to use an equation to look for conditional formatting... please help!