Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
mat mat is offline
external usenet poster
 
Posts: 37
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
mat mat is offline
external usenet poster
 
Posts: 37
Default 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



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,388
Default 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.
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with codes Tom Excel Discussion (Misc queries) 4 September 18th 07 01:50 AM
Codes sam Excel Discussion (Misc queries) 2 September 11th 07 02:04 PM
VB Codes bowling Excel Discussion (Misc queries) 0 July 30th 07 07:02 PM
ZIP CODES js42 Excel Worksheet Functions 2 August 5th 05 03:59 PM
Assign numerical values to text codes Bridget Excel Worksheet Functions 3 April 18th 05 11:33 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"