Home |
Search |
Today's Posts |
|
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
MAX function for a given Position Title
Hello,
I have a 1000 line sheet that has multiple titles and so on. I like to retrieve the highest salary for a given title. Position titles are not sorted. Any suggestions on how this can be done? example of the file: MNTWKR $24500 SECY $21200 MNTWKR $30000 MNTWKR $28460 Appreciate any help on this. Rich |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
MAX function for a given Position Title
Rich wrote...
I have a 1000 line sheet that has multiple titles and so on. I like to retrieve the highest salary for a given title. Position titles are not sorted. Any suggestions on how this can be done? example of the file: MNTWKR $24500 SECY $21200 MNTWKR $30000 MNTWKR $28460 If you have job titles in col A starting in A2 and corresponding salaries in col B starting in B2, and you enter a job title in cell D2, the following array formula will return the highest salary for that job title. =MAX(IF(A2:A1001=D2,B2:B1001)) |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
MAX function for a given Position Title
Non-array option:
=SUMPRODUCT(MAX((A2:A22=C1)*B2:B22)) -- HTH, RD --------------------------------------------------------------------------- Please keep all correspondence within the NewsGroup, so all may benefit ! --------------------------------------------------------------------------- "Rich" wrote in message ... Hello, I have a 1000 line sheet that has multiple titles and so on. I like to retrieve the highest salary for a given title. Position titles are not sorted. Any suggestions on how this can be done? example of the file: MNTWKR $24500 SECY $21200 MNTWKR $30000 MNTWKR $28460 Appreciate any help on this. Rich |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
MAX function for a given Position Title
With data in cells A1:B4, try this:
C1: MNTWKR D1: =SUMPRODUCT(MAX(--($A$1:$A$4=C1)*$B$1:$B$4)) Does that help? €¢€¢€¢€¢€¢€¢€¢€¢€¢€¢ Regards, Ron "Rich" wrote: Hello, I have a 1000 line sheet that has multiple titles and so on. I like to retrieve the highest salary for a given title. Position titles are not sorted. Any suggestions on how this can be done? example of the file: MNTWKR $24500 SECY $21200 MNTWKR $30000 MNTWKR $28460 Appreciate any help on this. Rich |
#5
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
MAX function for a given Position Title
Thank you Ron. This appears to be a great help! One more quick one, why
about the MIN too? I inserted MIN and it did not work. Any ideas? "Ron Coderre" wrote: With data in cells A1:B4, try this: C1: MNTWKR D1: =SUMPRODUCT(MAX(--($A$1:$A$4=C1)*$B$1:$B$4)) Does that help? €¢€¢€¢€¢€¢€¢€¢€¢€¢€¢ Regards, Ron "Rich" wrote: Hello, I have a 1000 line sheet that has multiple titles and so on. I like to retrieve the highest salary for a given title. Position titles are not sorted. Any suggestions on how this can be done? example of the file: MNTWKR $24500 SECY $21200 MNTWKR $30000 MNTWKR $28460 Appreciate any help on this. Rich |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Automatically up date time in a cell | Excel Discussion (Misc queries) | |||
Conversion | Excel Worksheet Functions | |||
SUMIF function | Excel Worksheet Functions | |||
HOW CAN I GET OFFICE 2003 EXCEL BASIC TO NEST FUNCTIONS LIKE EXCE. | Excel Worksheet Functions | |||
Find a Function to use accross different worksheets | Excel Worksheet Functions |