#1   Report Post  
paulh
 
Posts: n/a
Default lookup

sheet 1
type in to sheet1 d6 (15gr) refer to sheet2 and result in f8 sheet1 to be 3.5
or type in 10gr into d6 sheet 1 and result in f8 sheet 1 to be 2.7

Sheet2
A B
10GR 2.7
15GR 3.5
20GR 5.6

  #2   Report Post  
Melissa
 
Posts: n/a
Default

In F8:
vlookup(D6,Sheet2!$A$1:$b$3,2,false)

"paulh" wrote:

sheet 1
type in to sheet1 d6 (15gr) refer to sheet2 and result in f8 sheet1 to be 3.5
or type in 10gr into d6 sheet 1 and result in f8 sheet 1 to be 2.7

Sheet2
A B
10GR 2.7
15GR 3.5
20GR 5.6

  #3   Report Post  
Max
 
Posts: n/a
Default

Sheet2 houses the reference table in cols A & B as indicated, assumed from
row1

In Sheet1,

Put in F8:
=IF(ISNA(MATCH(D6,Sheet2!A:A,0)),"",VLOOKUP(TRIM(D 6),Sheet2!A:B,2,0))

--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--
"paulh" wrote in message
...
sheet 1
type in to sheet1 d6 (15gr) refer to sheet2 and result in f8 sheet1 to be

3.5
or type in 10gr into d6 sheet 1 and result in f8 sheet 1 to be 2.7

Sheet2
A B
10GR 2.7
15GR 3.5
20GR 5.6



  #4   Report Post  
Melissa
 
Posts: n/a
Default

Sorry, there should be quotations around Sheet2, i.e.
=vlookup(D6,'Sheet2'!$A$1:$B$3,2,false)

"Melissa" wrote:

In F8:
vlookup(D6,Sheet2!$A$1:$b$3,2,false)

"paulh" wrote:

sheet 1
type in to sheet1 d6 (15gr) refer to sheet2 and result in f8 sheet1 to be 3.5
or type in 10gr into d6 sheet 1 and result in f8 sheet 1 to be 2.7

Sheet2
A B
10GR 2.7
15GR 3.5
20GR 5.6

  #5   Report Post  
Biff
 
Posts: n/a
Default

If you're "Trimming" the lookup shouldn't you do the same for the match ?

Biff

"Max" wrote in message
...
Sheet2 houses the reference table in cols A & B as indicated, assumed from
row1

In Sheet1,

Put in F8:
=IF(ISNA(MATCH(D6,Sheet2!A:A,0)),"",VLOOKUP(TRIM(D 6),Sheet2!A:B,2,0))

--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--
"paulh" wrote in message
...
sheet 1
type in to sheet1 d6 (15gr) refer to sheet2 and result in f8 sheet1 to be

3.5
or type in 10gr into d6 sheet 1 and result in f8 sheet 1 to be 2.7

Sheet2
A B
10GR 2.7
15GR 3.5
20GR 5.6







  #6   Report Post  
Max
 
Posts: n/a
Default

"Biff" wrote
If you're "Trimming" the lookup
shouldn't you do the same for the match ?


Yes, of course, for consistency of treatment.
Thanks for the correction.

To the OP:

In Sheet1,
Put instead in F8:
=IF(ISNA(MATCH(TRIM(D6),Sheet2!A:A,0)),"",VLOOKUP( TRIM(D6),Sheet2!A:B,2,0))

--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--


  #7   Report Post  
Biff
 
Posts: n/a
Default

Hi!

the quotes are only needed if the sheet name contains a space:

='Sheet 2'!A1

OR, if you are including the file name and file path:

='C:\mydir\[myfile.xla]sheet2'!A1

Biff

"Melissa" wrote in message
...
Sorry, there should be quotations around Sheet2, i.e.
=vlookup(D6,'Sheet2'!$A$1:$B$3,2,false)

"Melissa" wrote:

In F8:
vlookup(D6,Sheet2!$A$1:$b$3,2,false)

"paulh" wrote:

sheet 1
type in to sheet1 d6 (15gr) refer to sheet2 and result in f8 sheet1 to
be 3.5
or type in 10gr into d6 sheet 1 and result in f8 sheet 1 to be 2.7

Sheet2
A B
10GR 2.7
15GR 3.5
20GR 5.6



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
Lookup Vector > Lookup Value Alec Kolundzic Excel Worksheet Functions 6 June 10th 05 02:14 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 07:48 PM
Lookup Function Problem seve Excel Discussion (Misc queries) 9 February 28th 05 02:46 AM
Lookup function w/Text and Year Josh O. Excel Worksheet Functions 1 February 12th 05 11:27 PM
double lookup, nest, or macro? Josef.angel Excel Worksheet Functions 1 October 29th 04 09:50 AM


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