Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
slh
 
Posts: n/a
Default Assign a dollar amount to a corresponding number in a range of num

I have a column listing a number in a range of 1 through 70. I need to
create a new column that assigns a dollar value to the row based on the
number in the first column. The bands I have created are as follows:
Numbers 30 and greater= $42,000
Numbers between 21 and 30 = $26,000
Numbers 20 and less = $10,000
I have tried IF statements without luck, any help would be appreciated.
  #2   Report Post  
Jay
 
Posts: n/a
Default

?B?c2xo?= wrote:

I have a column listing a number in a range of 1 through 70. I need to
create a new column that assigns a dollar value to the row based on the
number in the first column. The bands I have created are as follows:
Numbers 30 and greater= $42,000
Numbers between 21 and 30 = $26,000
Numbers 20 and less = $10,000
I have tried IF statements without luck, any help would be appreciated.


Supposing the "column listing a number" is column A, one way is to put:
=IF(OR(A170,A1<1),"Out of range",IF(A1=30,42000,IF(A120,26000,10000)))
in B1 and copy down for as many rows as you need.
  #3   Report Post  
slh
 
Posts: n/a
Default

thanks Jay, it worked perfectly, makes sense to me now. I appreciate the help
Sandi

"Jay" wrote:

?B?c2xo?= wrote:

I have a column listing a number in a range of 1 through 70. I need to
create a new column that assigns a dollar value to the row based on the
number in the first column. The bands I have created are as follows:
Numbers 30 and greater= $42,000
Numbers between 21 and 30 = $26,000
Numbers 20 and less = $10,000
I have tried IF statements without luck, any help would be appreciated.


Supposing the "column listing a number" is column A, one way is to put:
=IF(OR(A170,A1<1),"Out of range",IF(A1=30,42000,IF(A120,26000,10000)))
in B1 and copy down for as many rows as you need.

  #4   Report Post  
Gord Dibben
 
Posts: n/a
Default

=LOOKUP(A1,{0,21,30},{10000,26000,42000})

Enter in B1 and double-click on the B1 fill handle to autofill.


Gord Dibben Excel MVP

On Wed, 18 May 2005 16:01:02 -0700, slh wrote:

I have a column listing a number in a range of 1 through 70. I need to
create a new column that assigns a dollar value to the row based on the
number in the first column. The bands I have created are as follows:
Numbers 30 and greater= $42,000
Numbers between 21 and 30 = $26,000
Numbers 20 and less = $10,000
I have tried IF statements without luck, any help would be appreciated.


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
Assign a number to a name Sukismomma Excel Worksheet Functions 4 March 3rd 05 08:49 PM
How do I enter a negative dollar amount? CML Excel Discussion (Misc queries) 7 February 7th 05 12:19 AM
a formula to find total compound amount after given number of yea. ronan Excel Worksheet Functions 1 February 1st 05 09:15 PM
How can I assign a number to a string? Jog Dial Excel Discussion (Misc queries) 3 January 14th 05 04:44 AM
assign auto number and auto date Krit Kasem Excel Discussion (Misc queries) 2 January 14th 05 03:55 AM


All times are GMT +1. The time now is 06:04 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"