Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Need formula!!
 
Posts: n/a
Default Need help with Excel formula!!


On worksheet tab 1, I have a list of numbers (col a) ranging from one to
twenty and a dollar value (col b) assigned to each. On the next
worksheet tab I have a list of names in col a and when I put a number
on the next column, I want col c to go to the first worksheet and give
me the corresponding dollar value assigned to that number. I am trying
to use the IF function, but with 20 different values, isn't there
anything simpler?
=IF(a1=1,sheet1!b1,IF(a1=2,sheet1!b2,IF(a1=3,sheet 1!b3...........................
Isn't there a better way?
If not, how does this end?


--
Need formula!!
------------------------------------------------------------------------
Need formula!!'s Profile: http://www.excelforum.com/member.php...o&userid=26265
View this thread: http://www.excelforum.com/showthread...hreadid=395594

  #2   Report Post  
Bill Kuunders
 
Posts: n/a
Default

=VLOOKUP(B1,Sheet1!$A$1:$B$20,2,FALSE)
extend down the column

Greetings from New Zealand
Bill K


"Need formula!!"
wrote in message
news:Need.formula.1tq3qc_1123970727.7672@excelforu m-nospam.com...

On worksheet tab 1, I have a list of numbers (col a) ranging from one to
twenty and a dollar value (col b) assigned to each. On the next
worksheet tab I have a list of names in col a and when I put a number
on the next column, I want col c to go to the first worksheet and give
me the corresponding dollar value assigned to that number. I am trying
to use the IF function, but with 20 different values, isn't there
anything simpler?
=IF(a1=1,sheet1!b1,IF(a1=2,sheet1!b2,IF(a1=3,sheet 1!b3...........................
Isn't there a better way?
If not, how does this end?


--
Need formula!!
------------------------------------------------------------------------
Need formula!!'s Profile:
http://www.excelforum.com/member.php...o&userid=26265
View this thread: http://www.excelforum.com/showthread...hreadid=395594



  #3   Report Post  
Bernard Liengme
 
Posts: n/a
Default

Let's assume the first 'tab' is in fact Sheet1, and that there are values in
A1:A100
On Sheet2 in A1 you have a name, in B1 you have a number,
in C1 use =VLOOKUP(B1,Sheet1!A1:B8,2,FALSE)

Possible problem: the number in B1 on Sheet2 may no be present in the table
on Sheet1 and you will get #N/A. If you want the nearest match, use
=VLOOKUP(B1,Sheet1!A1:B8,2,TRUE) and sort the table in Sheet1 in ascending
order.

best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Need formula!!"
wrote in message
news:Need.formula.1tq3qc_1123970727.7672@excelforu m-nospam.com...

On worksheet tab 1, I have a list of numbers (col a) ranging from one to
twenty and a dollar value (col b) assigned to each. On the next
worksheet tab I have a list of names in col a and when I put a number
on the next column, I want col c to go to the first worksheet and give
me the corresponding dollar value assigned to that number. I am trying
to use the IF function, but with 20 different values, isn't there
anything simpler?
=IF(a1=1,sheet1!b1,IF(a1=2,sheet1!b2,IF(a1=3,sheet 1!b3...........................
Isn't there a better way?
If not, how does this end?


--
Need formula!!
------------------------------------------------------------------------
Need formula!!'s Profile:
http://www.excelforum.com/member.php...o&userid=26265
View this thread: http://www.excelforum.com/showthread...hreadid=395594



  #4   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

=INDEX(Sheet1!$B$1:$B$20,A1)

Need formula!! wrote:
On worksheet tab 1, I have a list of numbers (col a) ranging from one to
twenty and a dollar value (col b) assigned to each. On the next
worksheet tab I have a list of names in col a and when I put a number
on the next column, I want col c to go to the first worksheet and give
me the corresponding dollar value assigned to that number. I am trying
to use the IF function, but with 20 different values, isn't there
anything simpler?
=IF(a1=1,sheet1!b1,IF(a1=2,sheet1!b2,IF(a1=3,sheet 1!b3...........................
Isn't there a better way?
If not, how does this end?


  #5   Report Post  
Ken Wright
 
Posts: n/a
Default

Take a look at the VLOOKUP function

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

------------------------------*------------------------------*----------------
It's easier to beg forgiveness than ask permission :-)
------------------------------*------------------------------*----------------


"Need formula!!"
wrote in message
news:Need.formula.1tq3qc_1123970727.7672@excelforu m-nospam.com...

On worksheet tab 1, I have a list of numbers (col a) ranging from one to
twenty and a dollar value (col b) assigned to each. On the next
worksheet tab I have a list of names in col a and when I put a number
on the next column, I want col c to go to the first worksheet and give
me the corresponding dollar value assigned to that number. I am trying
to use the IF function, but with 20 different values, isn't there
anything simpler?
=IF(a1=1,sheet1!b1,IF(a1=2,sheet1!b2,IF(a1=3,sheet 1!b3...........................
Isn't there a better way?
If not, how does this end?


--
Need formula!!
------------------------------------------------------------------------
Need formula!!'s Profile:
http://www.excelforum.com/member.php...o&userid=26265
View this thread: http://www.excelforum.com/showthread...hreadid=395594





  #6   Report Post  
Biff
 
Posts: n/a
Default

Hi!

Assume the numbers and dollar values are in Sheet1A1:B20.

Sheet2A1 = Bill
Sheet2B1 = 5
Sheet2C1 = formula:

=IF(B1="","",VLOOKUP(B1,Sheet1!A$1:B$20,2,0))

Biff

"Need formula!!"
wrote in message
news:Need.formula.1tq3qc_1123970727.7672@excelforu m-nospam.com...

On worksheet tab 1, I have a list of numbers (col a) ranging from one to
twenty and a dollar value (col b) assigned to each. On the next
worksheet tab I have a list of names in col a and when I put a number
on the next column, I want col c to go to the first worksheet and give
me the corresponding dollar value assigned to that number. I am trying
to use the IF function, but with 20 different values, isn't there
anything simpler?
=IF(a1=1,sheet1!b1,IF(a1=2,sheet1!b2,IF(a1=3,sheet 1!b3...........................
Isn't there a better way?
If not, how does this end?


--
Need formula!!
------------------------------------------------------------------------
Need formula!!'s Profile:
http://www.excelforum.com/member.php...o&userid=26265
View this thread: http://www.excelforum.com/showthread...hreadid=395594



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
Why does Excel show a formula in ONE cell ? edpaul Excel Discussion (Misc queries) 1 August 12th 05 07:29 PM
Excel CHALLENGE...3 questions(indirect,rank,array formula)... Mlowry Excel Worksheet Functions 8 August 1st 05 07:34 AM
converting formula from lotus.123 to excel zaharah Excel Worksheet Functions 2 July 27th 05 03:04 PM
How do I get the formula bar in excel 2003 unionhall Excel Discussion (Misc queries) 1 February 17th 05 10:10 AM
Suddenly Excel can't calculate formula!!! Bob H Excel Worksheet Functions 2 November 30th 04 08:35 PM


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

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"