On 2002-03-06 04:30, JRyan wrote:
I have a set of six different dollar amounts. I want to write a formula (argument) so that if I pit a number (1-6) in a cell it will put the value (Dollar amount) I want assigned to that number in the cell next to it? Is that possible.
On 2002-03-06 04:44, dk wrote:
Looks like you could use VLOOKUP. Here's a quick example:-
Say in range A1:A6 you have the numbers 1 to 6 and in range B1:B6 you have your dollar amounts. In any cell (say C1) type a number between 1 and 6 and in another cell (say D1) type this:-
=VLOOKUP(C1,A1:B6,2,FALSE)
VLOOKUP can be confusing if you've never used it before. Basically it's saying take the value in C1, go and look in the first column in the range A1:B6 until you find a value which matches that in C1, go to column 2 (i.e. B1:B6) and return that value (the dollar amount). The FALSE part is required if the list isn't sorted. If it is, then you can omit it.
HTH,
D
On 2002-03-06 04:44, dk wrote:
Looks like you could use VLOOKUP. Here's a quick example:-
Say in range A1:A6 you have the numbers 1 to 6 and in range B1:B6 you have your dollar amounts. In any cell (say C1) type a number between 1 and 6 and in another cell (say D1) type this:-
=VLOOKUP(C1,A1:B6,2,FALSE)
VLOOKUP can be confusing if you've never used it before. Basically it's saying take the value in C1, go and look in the first column in the range A1:B6 until you find a value which matches that in C1, go to column 2 (i.e. B1:B6) and return that value (the dollar amount). The FALSE part is required if the list isn't sorted. If it is, then you can omit it.
HTH,
D
On 2002-03-06 06:18, dk wrote:
Try this:-
=IF(ISNA(VLOOKUP(C1,A1:B6,2,FALSE)),"",VLOOKUP(C1,A1:B6,2,FALSE))
HTH,
D
On 2002-03-06 05:23, JRyan wrote:
I'll try to be more specific. In cell C5 I want to be able to enter a number.(1,2,3,4,5, or 6). I want the dollar amount for that number to appear in C7.
The value for 1 is $32.50
The value for 2 is $22.50
The value for 3 is $37.50
The value for 4 is $25.00
The value for 5 is $45.00
The value for 6 is $32.50
Thanks
JRyan