ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Need to assign new codes (https://www.excelbanter.com/excel-worksheet-functions/191437-need-assign-new-codes.html)

mat

Need to assign new codes
 
Hi,

I have a database of clients with revenue range from less than $ 25,000 to
300,000 +. I need to assign each client a segment based on their revenue.

Less than $ 25000 to be E
$ 25000 to 50,000 to be D
$ 50000 to 150,000 to be C
$ 150000 to 300,000 to be B
$ 300,000 and above to be A


Regards

Mat

Rick Rothstein \(MVP - VB\)[_694_]

Need to assign new codes
 
I think this formula will do what you want...

=LOOKUP(A1,{0,25000,50000,150000,300000},{"E","D", "C","B","A"})

Adjust the A1 reference accordingly.

Rick


"Mat" wrote in message
...
Hi,

I have a database of clients with revenue range from less than $ 25,000 to
300,000 +. I need to assign each client a segment based on their revenue.

Less than $ 25000 to be E
$ 25000 to 50,000 to be D
$ 50000 to 150,000 to be C
$ 150000 to 300,000 to be B
$ 300,000 and above to be A


Regards

Mat



mat

Need to assign new codes
 
Hi Rick,

It worked perfectly.

Thanx
Mat

"Rick Rothstein (MVP - VB)" wrote:

I think this formula will do what you want...

=LOOKUP(A1,{0,25000,50000,150000,300000},{"E","D", "C","B","A"})

Adjust the A1 reference accordingly.

Rick


"Mat" wrote in message
...
Hi,

I have a database of clients with revenue range from less than $ 25,000 to
300,000 +. I need to assign each client a segment based on their revenue.

Less than $ 25000 to be E
$ 25000 to 50,000 to be D
$ 50000 to 150,000 to be C
$ 150000 to 300,000 to be B
$ 300,000 and above to be A


Regards

Mat




Dave

Need to assign new codes
 
Hi,
Try this, where A1 contains the client's revenue. Change to suit.
=IF(A1300000,"A",IF(A1=150000,"B",IF(A1=50000," C",IF(A1=25000,"D","E"))))
Regards - Dave.


All times are GMT +1. The time now is 01:17 PM.

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