ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How to setup this Function? (https://www.excelbanter.com/excel-worksheet-functions/144122-how-setup-function.html)

Gary

How to setup this Function?
 
I am needing a function that will look at the following and using 'max & if'
ID the highest salesperson.

George $300
Rita $400
Robert $500

It would be somelike this this: =IF(sales for #1=max,"salesperson #1
name",if(sales for #2=max,"salesperson #2 name", if......

but I'm not able to get it to work. Any suggestions?

Jerry W. Lewis

How to setup this Function?
 
=OFFSET(person1,MATCH(MAX(sales_data),sales_data,0 )-1,0)

Where person1 is the cell that contains "George" in your example, and
sales_data is the range of all sales totals.

Jerry

"Gary" wrote:

I am needing a function that will look at the following and using 'max & if'
ID the highest salesperson.

George $300
Rita $400
Robert $500

It would be somelike this this: =IF(sales for #1=max,"salesperson #1
name",if(sales for #2=max,"salesperson #2 name", if......

but I'm not able to get it to work. Any suggestions?


Peo Sjoblom

How to setup this Function?
 
=INDEX(A2:A50,MATCH(MAX(B2:B50),B2:B50,0))

replace A2:A50 with the sales people range and B2:B50 with their sales
amount

--
Regards,

Peo Sjoblom


"Gary" wrote in message
...
I am needing a function that will look at the following and using 'max &
if'
ID the highest salesperson.

George $300
Rita $400
Robert $500

It would be somelike this this: =IF(sales for #1=max,"salesperson #1
name",if(sales for #2=max,"salesperson #2 name", if......

but I'm not able to get it to work. Any suggestions?




Roger Govier

How to setup this Function?
 
Hi Gary

With your data in columns A and B, try
=INDEX(A:A,MATCH(MAX(B:B),B:B,0))

--
Regards

Roger Govier


"Gary" wrote in message
...
I am needing a function that will look at the following and using 'max
& if'
ID the highest salesperson.

George $300
Rita $400
Robert $500

It would be somelike this this: =IF(sales for #1=max,"salesperson #1
name",if(sales for #2=max,"salesperson #2 name", if......

but I'm not able to get it to work. Any suggestions?




Gary

How to setup this Function?
 
Thank you all for ur help, g

"Roger Govier" wrote:

Hi Gary

With your data in columns A and B, try
=INDEX(A:A,MATCH(MAX(B:B),B:B,0))

--
Regards

Roger Govier


"Gary" wrote in message
...
I am needing a function that will look at the following and using 'max
& if'
ID the highest salesperson.

George $300
Rita $400
Robert $500

It would be somelike this this: =IF(sales for #1=max,"salesperson #1
name",if(sales for #2=max,"salesperson #2 name", if......

but I'm not able to get it to work. Any suggestions?






All times are GMT +1. The time now is 06:49 PM.

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