Max Value Query

Chris26

New Member
Joined
Feb 18, 2010
Messages
10
Hi

Below is a Small extract of my data.

Column A ----- ------Column B

20/7/2002 10:00:00 ----- 0
20/7/2002 10:15:00 ----- 2
20/7/2002 10:30:00 ----- 6
20/7/2002 10:45:00 ----- 4
20/7/2002 11:00:00 ----- 0

I would like Cell C1 to return the Date/Time in Column A that corresponds to the Max Value in Col B. (i.e. C1=20/7/2002 10:30:00)
Sometimes the Max Value will occur on more than one Date, is it possible to list all occurances ?

Many Thanks in advance
Chris
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Hi

Below is a Small extract of my data.

Column A ----- ------Column B

20/7/2002 10:00:00 ----- 0
20/7/2002 10:15:00 ----- 2
20/7/2002 10:30:00 ----- 6
20/7/2002 10:45:00 ----- 4
20/7/2002 11:00:00 ----- 0

I would like Cell C1 to return the Date/Time in Column A that corresponds to the Max Value in Col B. (i.e. C1=20/7/2002 10:30:00)
Sometimes the Max Value will occur on more than one Date, is it possible to list all occurances ?

Many Thanks in advance
Chris
E2:

=MAX(B2:B6)

E3:

=COUNTIF(B2:B6,E2)

E5, control+shift+enter, not just enter, and copy down:
Code:
=IF(ROWS($E$5:E5)<=$E$3,INDEX($A$2:$A$6,SMALL(IF($B$2:$B$6=$E$2,
    ROW($A$2:$A$6)-ROW($A$2)+1),ROWS($E$5:E5))),"")
 
Upvote 0
Hi

Below is a Small extract of my data.

Column A ----- ------Column B

20/7/2002 10:00:00 ----- 0
20/7/2002 10:15:00 ----- 2
20/7/2002 10:30:00 ----- 6
20/7/2002 10:45:00 ----- 4
20/7/2002 11:00:00 ----- 0

I would like Cell C1 to return the Date/Time in Column A that corresponds to the Max Value in Col B. (i.e. C1=20/7/2002 10:30:00)
Sometimes the Max Value will occur on more than one Date, is it possible to list all occurances ?

Many Thanks in advance
Chris
One way...

Let's assume your data is in the range A2:B6.

In the formulas I use the following named ranges:
  • Dates
  • Refers to: =$A:$A
  • Values
  • Refers to: =$B$2:$B$6
Enter this formula in D2. This will return the max value from the Values range.

=MAX(Values)

Enter this formula in E2. This will return the count of instances of the max value.

=COUNTIF(Values,D2)

Enter this array formula** in F2 and copy down until you get blanks. This will extract the dates/times.

=IF(ROWS(F$2:F2)>E$2,"",INDEX(Dates,SMALL(IF(Values=D$2,ROW(Values)),ROWS(F$2:F2))))

** array formulas need to be entered using the key combination of CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT key then hit ENTER.
 
Upvote 0
I have a project tasklist contained in a workbook, where the summary sheet is named "Master", and subsequent tabs are named for responsible parties, X, XX, and XXX. Tabs are bracketed by hidden sheets ("First" and "Last"). Each task has a unique identifying number in Column B and, in column I, each responsible party will be able to update their task completion %.

What I need is a formula on the master sheet that extracts the max value of all entries for a given task (each task will be in a different row depending on whose sheet it appears upon).

For Row2 of Master spreadsheet, my formula currently is: =SUMPRODUCT((THREED(First:Last!B$1:B$600)=B2)+0,(THREED(First:Last!I$1:I$600)))

The problem is that this sums all %s entered, instead of selecting the largest, but I am having a hard time trying to use MAX to extract the values... help????
 
Upvote 0
I have a project tasklist contained in a workbook, where the summary sheet is named "Master", and subsequent tabs are named for responsible parties, X, XX, and XXX. Tabs are bracketed by hidden sheets ("First" and "Last"). Each task has a unique identifying number in Column B and, in column I, each responsible party will be able to update their task completion %.

What I need is a formula on the master sheet that extracts the max value of all entries for a given task (each task will be in a different row depending on whose sheet it appears upon).

For Row2 of Master spreadsheet, my formula currently is: =SUMPRODUCT((THREED(First:Last!B$1:B$600)=B2)+0,(THREED(First:Last!I$1:I$600)))

The problem is that this sums all %s entered, instead of selecting the largest, but I am having a hard time trying to use MAX to extract the values... help????
You should start a new thread for this.
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,285
Members
452,902
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top