Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
neurotypical
 
Posts: n/a
Default find largest values, then return corresponding row values.


I have a large table that is many columns. I am trying to create a 3
column "subtable" to condense data that will find the largest values in
the third column of the main table, then return the corresponding row
values from the first two columns of the main table. I

I can't do a lookup table because I am dealing with the third column,
not the first.

I know how to use the LARGE function to return the largest values.

How do return the corresponding values from my first two columns?

I tried using something like this expression I found online, but it
doesn't seem to be appropriate or I am not making the right tweaks.

=INDEX($A$1:$B$7,LARGE(IF($A$1:$A$7=$A$10,ROW($A$1 :$A$7)),ROW(1:1)),2)

MANY THANKS FOR YOUR HELP AND THIS FORUM!!!!


--
neurotypical
------------------------------------------------------------------------
neurotypical's Profile: http://www.excelforum.com/member.php...o&userid=34719
View this thread: http://www.excelforum.com/showthread...hreadid=544848

  #2   Report Post  
Posted to microsoft.public.excel.misc
mrice
 
Posts: n/a
Default find largest values, then return corresponding row values.


An easy way to get around this probelm is to create a copy of the third
column (linked by formula) and place it just before the first column.
You can then use VLOOKUP.


--
mrice

Research Scientist with many years of spreadsheet development experience
------------------------------------------------------------------------
mrice's Profile: http://www.excelforum.com/member.php...o&userid=10931
View this thread: http://www.excelforum.com/showthread...hreadid=544848

  #3   Report Post  
Posted to microsoft.public.excel.misc
mrice
 
Posts: n/a
Default find largest values, then return corresponding row values.


An easy way to get around this problem is to create a copy of the third
column (linked by formula) and place it just before the first column.
You can then use VLOOKUP.


--
mrice

Research Scientist with many years of spreadsheet development experience
------------------------------------------------------------------------
mrice's Profile: http://www.excelforum.com/member.php...o&userid=10931
View this thread: http://www.excelforum.com/showthread...hreadid=544848

  #4   Report Post  
Posted to microsoft.public.excel.misc
neurotypical
 
Posts: n/a
Default find largest values, then return corresponding row values.


mrice- thanks for the suggestion, but my values in column 3 aren't and
can't be put in ascending order (they are results of a solver
optimization and vary as I adjust other values). VLOOKUP won't work
since they are not in ascending order. Any other suggestions?


--
neurotypical
------------------------------------------------------------------------
neurotypical's Profile: http://www.excelforum.com/member.php...o&userid=34719
View this thread: http://www.excelforum.com/showthread...hreadid=544848

  #5   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default find largest values, then return corresponding row values.

Use this formula

=INDEX(A$1:A$7,MATCH(LARGE($C$1:$C$7,ROW(A1)),$C$1 :$C$7,0))

and copy down and across

--
HTH

Bob Phillips

(remove xxx from email address if mailing direct)

"neurotypical"
wrote in message
news:neurotypical.289zwz_1148413501.7214@excelforu m-nospam.com...

I have a large table that is many columns. I am trying to create a 3
column "subtable" to condense data that will find the largest values in
the third column of the main table, then return the corresponding row
values from the first two columns of the main table. I

I can't do a lookup table because I am dealing with the third column,
not the first.

I know how to use the LARGE function to return the largest values.

How do return the corresponding values from my first two columns?

I tried using something like this expression I found online, but it
doesn't seem to be appropriate or I am not making the right tweaks.

=INDEX($A$1:$B$7,LARGE(IF($A$1:$A$7=$A$10,ROW($A$1 :$A$7)),ROW(1:1)),2)

MANY THANKS FOR YOUR HELP AND THIS FORUM!!!!


--
neurotypical
------------------------------------------------------------------------
neurotypical's Profile:

http://www.excelforum.com/member.php...o&userid=34719
View this thread: http://www.excelforum.com/showthread...hreadid=544848





  #6   Report Post  
Posted to microsoft.public.excel.misc
neurotypical
 
Posts: n/a
Default find largest values, then return corresponding row values.


that formula you just provided is working perfectly. Thanks Bob and
mrice.


--
neurotypical
------------------------------------------------------------------------
neurotypical's Profile: http://www.excelforum.com/member.php...o&userid=34719
View this thread: http://www.excelforum.com/showthread...hreadid=544848

  #7   Report Post  
Posted to microsoft.public.excel.misc
neurotypical
 
Posts: n/a
Default find largest values, then return corresponding row values.


Okay- the formula Bob Phillips kindly provided was working well for me
*except* when the two values in column C are equal. In those instances
my "subtable" (for lack of a better term), returns the highest value and
its associated cells twice, instead of both the highest values.

Any other suggestions? maybe I am approaching this problem the wrong
way.


--
neurotypical
------------------------------------------------------------------------
neurotypical's Profile: http://www.excelforum.com/member.php...o&userid=34719
View this thread: http://www.excelforum.com/showthread...hreadid=544848

  #8   Report Post  
Posted to microsoft.public.excel.misc
neurotypical
 
Posts: n/a
Default find largest values, then return corresponding row values.


nevermind. I just found a fix for this.


--
neurotypical
------------------------------------------------------------------------
neurotypical's Profile: http://www.excelforum.com/member.php...o&userid=34719
View this thread: http://www.excelforum.com/showthread...hreadid=544848

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
lookup serch term and return sum of all values soilcon1 Excel Worksheet Functions 2 December 22nd 05 12:03 AM
Select Largest 5 in A, AVG values in B Phillycheese5 Excel Worksheet Functions 4 December 19th 05 11:45 PM
How to find the largest product of an array of values? ryesworld Excel Worksheet Functions 3 December 2nd 05 06:09 PM
Count Intervals of 2 Numeric values in same Row and Return Count across Row Sam via OfficeKB.com Excel Worksheet Functions 12 September 24th 05 10:58 PM
in excel, how do I find which values doesn't have a pair? jackies_place Excel Discussion (Misc queries) 2 December 17th 04 05:43 PM


All times are GMT +1. The time now is 07:19 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"