ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Help with a complicated search function in Excel (https://www.excelbanter.com/excel-worksheet-functions/63908-help-complicated-search-function-excel.html)

Ironman273

Help with a complicated search function in Excel
 
I have a worksheet that has salespeople's names in column B and sales totals
in column AJ. Obviously these totals change over time. I would like to had
a formula that checks for the largest sales number (I got the MAX part) and
pulls the name in column B. Basically I'd like a section where I can have
"Salesperson of the month:" and the output. I do have data in column A and
in various more columns after AJ that I would not like to move around.

Peo Sjoblom

Help with a complicated search function in Excel
 
=INDEX(B2:B50,MATCH(MAX(AJ2:AJ50),AJ2:AJ50,0))

adapt to fit your ranges, will return name from B2:B50 with max value in
AJ2:AJ50

--
Regards,

Peo Sjoblom

(No private emails please)


"Ironman273" wrote in message
...
I have a worksheet that has salespeople's names in column B and sales
totals
in column AJ. Obviously these totals change over time. I would like to
had
a formula that checks for the largest sales number (I got the MAX part)
and
pulls the name in column B. Basically I'd like a section where I can have
"Salesperson of the month:" and the output. I do have data in column A
and
in various more columns after AJ that I would not like to move around.




All times are GMT +1. The time now is 05:48 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com