Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
VM VM is offline
external usenet poster
 
Posts: 6
Default Maximum value from a pivot table - formula

I have a table as shown in the example below. Can you help me with a
formula that pulls out the the project code with maximum hours for an
employee? This
table is from a pivot,

Employee ID Project Number Hours
78904 2057677 140
100 IU 8
530 IU 12
78904 Total 160

87659 2064777 120
2072147 40
87659Total 160

The result should show me like:

Employee ID Project Number Hours
78904 2057677 140
87659 2064777 120

CAn anyone help? Thanks!


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Maximum value from a pivot table - formula

Assuming the table data is in A1:C10 with Row1 as headers please use the
below formula. Col B is project numbers and ColC is hours

=INDEX(B2:B10,MATCH(MAX(C2:C10),C2:C10,0))
--
If this post helps click Yes
---------------
Jacob Skaria


"VM" wrote:

I have a table as shown in the example below. Can you help me with a
formula that pulls out the the project code with maximum hours for an
employee? This
table is from a pivot,

Employee ID Project Number Hours
78904 2057677 140
100 IU 8
530 IU 12
78904 Total 160

87659 2064777 120
2072147 40
87659Total 160

The result should show me like:

Employee ID Project Number Hours
78904 2057677 140
87659 2064777 120

CAn anyone help? Thanks!



  #3   Report Post  
Posted to microsoft.public.excel.misc
VM VM is offline
external usenet poster
 
Posts: 6
Default Maximum value from a pivot table - formula

On Apr 28, 12:02*pm, Jacob Skaria
wrote:
Assuming the table data is in A1:C10 with Row1 as headers please use the
below formula. Col B is project numbers and ColC is hours

=INDEX(B2:B10,MATCH(MAX(C2:C10),C2:C10,0))
--
If this post helps click Yes
---------------
Jacob Skaria



"VM" wrote:
I have a table as shown in the example below. Can you help me with a
formula that pulls out the the project code with maximum hours for an
employee? This
table is from a pivot,


Employee ID * * Project Number *Hours
78904 * * * * * * * 2057677 * * * * * *140
* * * * * * * * * * * * 100 IU * * * * * * * *8
* * * * * * * * * * * * 530 IU * * * * * * * *12
78904 Total * * * * * * * * * * * * * * *160


87659 * * * * * * * 2064777 * * * * * 120
* * * * * * * * * * * *2072147 * * * * * *40
87659Total * * * * * * * * * * * * * * * 160


The result should show me like:


Employee ID * * Project Number *Hours
78904 * * * * * * * 2057677 * * * * * *140
87659 * * * * * * * 2064777 * * * * * 120


CAn anyone help? Thanks!- Hide quoted text -


- Show quoted text -


Thanks Jacob. I tried the formula, but it shows me the value of 0..I'm
not sure if I'm doing something wrong?
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Maximum value from a pivot table - formula

If you are having your data in sequence...I mean with no blanks like below
you can use the below formula to get the maximum hours based on employee ID
and project name...

Please note that this is an array formula. Within the cell in edit mode (F2)
paste this formula and press Ctrl+Shift+Enter to apply this formula. If
successful in the Formula Bar you can notice the curly braces at both ends
"{=<formula}"

=MAX(IF($A$2:$A$10="EmpID",IF($B$2:$B$10="Project" ,$C$2:$C$10)))

Suppose you have the data in this format from A2 to C10. Row 1 is having
headers.

Employee ID Project Hours
Emp1 ProA 9
Emp1 ProA 8
Emp1 ProA 7
Emp1 ProB 1
Emp2 ProB 2
Emp1 ProB 3
Emp2 ProC 10
Emp2 ProA 1
Emp2 ProC 30




If this post helps click Yes
---------------
Jacob Skaria


"VM" wrote:

On Apr 28, 12:02 pm, Jacob Skaria
wrote:
Assuming the table data is in A1:C10 with Row1 as headers please use the
below formula. Col B is project numbers and ColC is hours

=INDEX(B2:B10,MATCH(MAX(C2:C10),C2:C10,0))
--
If this post helps click Yes
---------------
Jacob Skaria



"VM" wrote:
I have a table as shown in the example below. Can you help me with a
formula that pulls out the the project code with maximum hours for an
employee? This
table is from a pivot,


Employee ID Project Number Hours
78904 2057677 140
100 IU 8
530 IU 12
78904 Total 160


87659 2064777 120
2072147 40
87659Total 160


The result should show me like:


Employee ID Project Number Hours
78904 2057677 140
87659 2064777 120


CAn anyone help? Thanks!- Hide quoted text -


- Show quoted text -


Thanks Jacob. I tried the formula, but it shows me the value of 0..I'm
not sure if I'm doing something wrong?

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
maximum number of rows in pivot table data Vakani Excel Discussion (Misc queries) 2 September 3rd 08 10:41 PM
Pivot Table formula aliya.pawaskar[_2_] Excel Discussion (Misc queries) 1 July 29th 08 03:13 AM
Maximum Size Pivot Table Simon Jefford Excel Discussion (Misc queries) 1 August 26th 07 07:01 AM
Pivot Table Formula GatorGirl Excel Discussion (Misc queries) 0 January 5th 06 07:26 PM
maximum size of a Microsoft Excel list for a pivot table Bob Carey Excel Discussion (Misc queries) 1 January 6th 05 04:50 PM


All times are GMT +1. The time now is 01:29 AM.

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

About Us

"It's about Microsoft Excel"