View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Rick Rothstein \(MVP - VB\)[_694_] Rick Rothstein \(MVP - VB\)[_694_] is offline
external usenet poster
 
Posts: 1
Default 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