#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Help with a Formula

I need help with a formula, I have spent all day trying to program one cell.
I have two columns of numbers. I need a formula that would determine the max
value from the first column, and then display the number from column two that
is in the same row. I am using Excel 2003.

thanks for you help
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 698
Default Help with a Formula

Hi Jim,

Try this:

=VLOOKUP(MAX(A1:A9),A1:B9,2,0)

HTH
Regards,
Howad

"Jim A" wrote in message
...
I need help with a formula, I have spent all day trying to program one
cell.
I have two columns of numbers. I need a formula that would determine the
max
value from the first column, and then display the number from column two
that
is in the same row. I am using Excel 2003.

thanks for you help



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,118
Default Help with a Formula

Try this:

With
Col_A contains values
Col_B contains values

This formula finds the maximum Col_A value and returns the corresponding
Col_B value
C1: =VLOOKUP(MAX(A:A),A:B,2,0)

or..this range specific alternative
C1: =VLOOKUP(MAX(A1:A10),A1:B10,2,0)

Note: if the max value occurs more than once....it returns the first
instance.
Is that OK?

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Jim A" wrote:

I need help with a formula, I have spent all day trying to program one cell.
I have two columns of numbers. I need a formula that would determine the max
value from the first column, and then display the number from column two that
is in the same row. I am using Excel 2003.

thanks for you help

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Help with a Formula

What does the 2 and 0 represent at the end of the formula?

"Ron Coderre" wrote:

Try this:

With
Col_A contains values
Col_B contains values

This formula finds the maximum Col_A value and returns the corresponding
Col_B value
C1: =VLOOKUP(MAX(A:A),A:B,2,0)

or..this range specific alternative
C1: =VLOOKUP(MAX(A1:A10),A1:B10,2,0)

Note: if the max value occurs more than once....it returns the first
instance.
Is that OK?

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Jim A" wrote:

I need help with a formula, I have spent all day trying to program one cell.
I have two columns of numbers. I need a formula that would determine the max
value from the first column, and then display the number from column two that
is in the same row. I am using Excel 2003.

thanks for you help

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 698
Default Help with a Formula

Hi Jim,

The 2 is the number of columns to the right that the value will be returned
from.

The 0 (you can also use FALSE) is the fourth argument of the lookup formula
to look for and exact match. And the list does not need to be sorted.

If you used 1 (or TRUE, or omit all together) and there was no exact match,
you get the next closest to the match. Your list must be sorted.

HTH
Regards,
Howard

"Jim A" wrote in message
...
I need help with a formula, I have spent all day trying to program one
cell.
I have two columns of numbers. I need a formula that would determine the
max
value from the first column, and then display the number from column two
that
is in the same row. I am using Excel 2003.

thanks for you help





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
Reusing formula Tony29 Excel Discussion (Misc queries) 7 September 7th 06 03:34 AM
Dynamic Range with unused formula messing up x axis on dynamic graph [email protected] Charts and Charting in Excel 2 February 2nd 06 08:02 PM
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM


All times are GMT +1. The time now is 10:05 PM.

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"