Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
JDT
 
Posts: n/a
Default Index,Matchup Formula Question

Hi,

I have the following formula in a cell:

=INDEX(look!$B$1:$B$22,MATCH(B3,look!$A$1:$A$22))

I created a table of names and numbers on a separate page called
"look."


Here is an example:

Tom 23
Jerry 30
Ed 41
Steve 16
Bob 11

All I want to do on the main page is when I input a name into cell B3
I get the corresponding value on the look page. So, if I put Bob in
cell B3, then in cell B4 it should say 11.

I did it this way because the list is very long.

I got the above formula from another spreadsheet of mine doing
basically the same thing.

Anyway it doesn't work, and I can't find my error. (Not that I knew
what I was doing in the first place.)

Any help appreciated.
  #2   Report Post  
JulieD
 
Posts: n/a
Default

Hi

try
=VLOOKUP(B3,look!$A$1:$A$22,2,0)

--
Cheers
JulieD
check out www.hcts.net.au/tipsandtricks.htm
....well i'm working on it anyway
"JDT" wrote in message
news:1113571773.b99a5f7d011c1e84ba38bc138eac67a5@t eranews...
Hi,

I have the following formula in a cell:

=INDEX(look!$B$1:$B$22,MATCH(B3,look!$A$1:$A$22))

I created a table of names and numbers on a separate page called
"look."


Here is an example:

Tom 23
Jerry 30
Ed 41
Steve 16
Bob 11

All I want to do on the main page is when I input a name into cell B3
I get the corresponding value on the look page. So, if I put Bob in
cell B3, then in cell B4 it should say 11.

I did it this way because the list is very long.

I got the above formula from another spreadsheet of mine doing
basically the same thing.

Anyway it doesn't work, and I can't find my error. (Not that I knew
what I was doing in the first place.)

Any help appreciated.



  #3   Report Post  
P Sitaram
 
Posts: n/a
Default

Try:

=INDEX(look!$B$1:$B$22,MATCH(B3,look!$A$1:$A$22,0) )

I added a ",0" in the Match part

  #4   Report Post  
JDT
 
Posts: n/a
Default

On 15 Apr 2005 06:47:10 -0700, "P Sitaram"
wrote:

Try:

=INDEX(look!$B$1:$B$22,MATCH(B3,look!$A$1:$A$22,0 ))

I added a ",0" in the Match part


Thanks. This works, but why?

One more question. Can I have a default answer? In other words,
let's say there is no value to look up, can I have it insert a number
I wish, such as 3.6?

Thanks again.
  #5   Report Post  
JDT
 
Posts: n/a
Default

On Fri, 15 Apr 2005 21:42:33 +0800, "JulieD"
wrote:

Hi

try
=VLOOKUP(B3,look!$A$1:$A$22,2,0)

--
Cheers
JulieD


Hi, thanks, but I couldn't get this to work.




  #6   Report Post  
Dave Peterson
 
Posts: n/a
Default

You mean if B3 is empty?

=if(b3="",3.6,INDEX(look!$B$1:$B$22,MATCH(B3,look! $A$1:$A$22,0)))




JDT wrote:

On 15 Apr 2005 06:47:10 -0700, "P Sitaram"
wrote:

Try:

=INDEX(look!$B$1:$B$22,MATCH(B3,look!$A$1:$A$22,0 ))

I added a ",0" in the Match part


Thanks. This works, but why?

One more question. Can I have a default answer? In other words,
let's say there is no value to look up, can I have it insert a number
I wish, such as 3.6?

Thanks again.


--

Dave Peterson
  #7   Report Post  
Dave Peterson
 
Posts: n/a
Default

I think JulieD meant this:
=VLOOKUP(B3,look!$A$1:$B$22,2,0)

(She's returning the second column and forgot to increase the number of
columns.)

If you want to read more about =vlookup() and =index(match()), take a look at
Debra Dalgleish's site:
http://www.contextures.com/xlFunctions02.html
http://www.contextures.com/xlFunctions03.html

JDT wrote:

On Fri, 15 Apr 2005 21:42:33 +0800, "JulieD"
wrote:

Hi

try
=VLOOKUP(B3,look!$A$1:$A$22,2,0)

--
Cheers
JulieD


Hi, thanks, but I couldn't get this to work.


--

Dave Peterson
  #8   Report Post  
JulieD
 
Posts: n/a
Default

Hi Dave

thanks for this :)

--
Cheers
JulieD
check out www.hcts.net.au/tipsandtricks.htm
....well i'm working on it anyway
"Dave Peterson" wrote in message
...
I think JulieD meant this:
=VLOOKUP(B3,look!$A$1:$B$22,2,0)

(She's returning the second column and forgot to increase the number of
columns.)

If you want to read more about =vlookup() and =index(match()), take a look
at
Debra Dalgleish's site:
http://www.contextures.com/xlFunctions02.html
http://www.contextures.com/xlFunctions03.html

JDT wrote:

On Fri, 15 Apr 2005 21:42:33 +0800, "JulieD"
wrote:

Hi

try
=VLOOKUP(B3,look!$A$1:$A$22,2,0)

--
Cheers
JulieD


Hi, thanks, but I couldn't get this to work.


--

Dave Peterson



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
Howdo U copy a formula down a column, that uses data in another w. Need Help pasting a formula Excel Worksheet Functions 1 February 25th 05 06:04 PM
time formula question... Greg Excel Discussion (Misc queries) 5 February 25th 05 10:11 AM
Problem with VBA returning the contents of a long formula. [email protected] Excel Discussion (Misc queries) 2 February 23rd 05 12:14 AM
formula Question danlinksman Excel Discussion (Misc queries) 3 January 25th 05 02:07 PM
Help with macro formula and variable Huge project Excel Worksheet Functions 0 December 28th 04 01:27 AM


All times are GMT +1. The time now is 04:40 PM.

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

About Us

"It's about Microsoft Excel"