Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default how do I return tthe location (cell) when using the max function

I keep weekly values of my investments in a row and then search with the max
function. How can I return the date (row 3 of the colum that max value is
in) that the max value occured?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default how do I return tthe location (cell) when using the max function

Consider using:

=HLOOKUP()
--
Gary''s Student
gsnu200709


"Holke" wrote:

I keep weekly values of my investments in a row and then search with the max
function. How can I return the date (row 3 of the colum that max value is
in) that the max value occured?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default how do I return tthe location (cell) when using the max function

The max for that row?

If yes:

=index($c$3:$l$3,match(max(c4:l4),c4:l4,0))

if your dates were in C3:L3 and your values to check were in C4:L4



Gary''s Student wrote:

Consider using:

=HLOOKUP()
--
Gary''s Student
gsnu200709

"Holke" wrote:

I keep weekly values of my investments in a row and then search with the max
function. How can I return the date (row 3 of the colum that max value is
in) that the max value occured?


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default how do I return tthe location (cell) when using the max function

Oops. I meant to reply to the OP.

Dave Peterson wrote:

The max for that row?

If yes:

=index($c$3:$l$3,match(max(c4:l4),c4:l4,0))

if your dates were in C3:L3 and your values to check were in C4:L4

Gary''s Student wrote:

Consider using:

=HLOOKUP()
--
Gary''s Student
gsnu200709

"Holke" wrote:

I keep weekly values of my investments in a row and then search with the max
function. How can I return the date (row 3 of the colum that max value is
in) that the max value occured?


--

Dave Peterson


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default how do I return tthe location (cell) when using the max functi

That's o.k.....I can use it too.
--
Gary's Student
gsnu200709


"Dave Peterson" wrote:

Oops. I meant to reply to the OP.

Dave Peterson wrote:

The max for that row?

If yes:

=index($c$3:$l$3,match(max(c4:l4),c4:l4,0))

if your dates were in C3:L3 and your values to check were in C4:L4

Gary''s Student wrote:

Consider using:

=HLOOKUP()
--
Gary''s Student
gsnu200709

"Holke" wrote:

I keep weekly values of my investments in a row and then search with the max
function. How can I return the date (row 3 of the colum that max value is
in) that the max value occured?


--

Dave Peterson


--

Dave Peterson



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default how do I return tthe location (cell) when using the max functi

Thank You
That worked great
If you have time I would like an explanation of the formula.

"Dave Peterson" wrote:

Oops. I meant to reply to the OP.

Dave Peterson wrote:

The max for that row?

If yes:

=index($c$3:$l$3,match(max(c4:l4),c4:l4,0))

if your dates were in C3:L3 and your values to check were in C4:L4

Gary''s Student wrote:

Consider using:

=HLOOKUP()
--
Gary''s Student
gsnu200709

"Holke" wrote:

I keep weekly values of my investments in a row and then search with the max
function. How can I return the date (row 3 of the colum that max value is
in) that the max value occured?


--

Dave Peterson


--

Dave Peterson

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default how do I return tthe location (cell) when using the max functi

=max(c4:l4)
returns the largest value in that range

=match(x,somerow,0)
looks for the exact match (that 0 means exact) in somerow. If it finds an exact
match, then this returns a number (1 for the first cell in somerow, 2 for the
second cell, ...n for the nth cell).

=index(someotherrow,n)
picks out the nth cell in someotherrow

Holke wrote:

Thank You
That worked great
If you have time I would like an explanation of the formula.

"Dave Peterson" wrote:

Oops. I meant to reply to the OP.

Dave Peterson wrote:

The max for that row?

If yes:

=index($c$3:$l$3,match(max(c4:l4),c4:l4,0))

if your dates were in C3:L3 and your values to check were in C4:L4

Gary''s Student wrote:

Consider using:

=HLOOKUP()
--
Gary''s Student
gsnu200709

"Holke" wrote:

I keep weekly values of my investments in a row and then search with the max
function. How can I return the date (row 3 of the colum that max value is
in) that the max value occured?

--

Dave Peterson


--

Dave Peterson


--

Dave Peterson
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
Return the Row of a Variable's location xjetjockey Excel Discussion (Misc queries) 1 December 22nd 06 11:52 PM
Hyperlink or Other Method To Return To Previous Location (Sheet) Possible? Mhz New Users to Excel 4 August 1st 06 11:39 AM
How to return a specific data point from a large array if I don't know the exact location? [email protected] Excel Discussion (Misc queries) 4 May 2nd 06 03:54 PM
Labelling bar graph-the bars in X-axis not via tthe legend MikeR-Oz New Users to Excel 2 January 3rd 06 10:26 PM
Is there a function that will return info of the cursor location? cbre_bryork Excel Worksheet Functions 3 May 15th 05 02:02 AM


All times are GMT +1. The time now is 07:18 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"