#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
SF SF is offline
external usenet poster
 
Posts: 8
Default Lookup value

Hi,

I have two worksheet, both worksheets have in common is the commune code. In
worksheet # 2 has the contact anme related to each commune code.
I want Excel to lookup for name from worksheet # 2 and put the lookup
information in worksheet 1 when the commune code is identical.

Could someone advice what formula I have to use in this case.

SF


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 364
Default Lookup value

"SF" wrote in message
...
Hi,

I have two worksheet, both worksheets have in common is the commune code.
In worksheet # 2 has the contact anme related to each commune code.
I want Excel to lookup for name from worksheet # 2 and put the lookup
information in worksheet 1 when the commune code is identical.

Could someone advice what formula I have to use in this case.

SF



Suppose (just for example) in Sheet2 your commune codes are in A1:A10 and
the corresponding contact names in B1:B10.
In Sheet1, suppose you have a commune name in A1 and want to get the
corresponding contact name to appear in B1. In B1, put the formula
=VLOOKUP(A1,Sheet2!A1:B10,2,FALSE)


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
SF SF is offline
external usenet poster
 
Posts: 8
Default Lookup value

Stephen,

The formula you provided work very well. But I get another #N/A error when
there is no matching value for the cell. Any suggestion to suppress this
error (#N/A) or replacing #N/A with null value?

SF


"Stephen" <none wrote in message
...
"SF" wrote in message
...
Hi,

I have two worksheet, both worksheets have in common is the commune code.
In worksheet # 2 has the contact anme related to each commune code.
I want Excel to lookup for name from worksheet # 2 and put the lookup
information in worksheet 1 when the commune code is identical.

Could someone advice what formula I have to use in this case.

SF



Suppose (just for example) in Sheet2 your commune codes are in A1:A10 and
the corresponding contact names in B1:B10.
In Sheet1, suppose you have a commune name in A1 and want to get the
corresponding contact name to appear in B1. In B1, put the formula
=VLOOKUP(A1,Sheet2!A1:B10,2,FALSE)



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 364
Default Lookup value

=IF(ISNA(MATCH(A1,Sheet2!A1:A10,0)),"",VLOOKUP(A1, Sheet2!A1:B10,2,FALSE))

"SF" wrote in message
...
Stephen,

The formula you provided work very well. But I get another #N/A error when
there is no matching value for the cell. Any suggestion to suppress this
error (#N/A) or replacing #N/A with null value?

SF


"Stephen" <none wrote in message
...
"SF" wrote in message
...
Hi,

I have two worksheet, both worksheets have in common is the commune
code. In worksheet # 2 has the contact anme related to each commune
code.
I want Excel to lookup for name from worksheet # 2 and put the lookup
information in worksheet 1 when the commune code is identical.

Could someone advice what formula I have to use in this case.

SF



Suppose (just for example) in Sheet2 your commune codes are in A1:A10 and
the corresponding contact names in B1:B10.
In Sheet1, suppose you have a commune name in A1 and want to get the
corresponding contact name to appear in B1. In B1, put the formula
=VLOOKUP(A1,Sheet2!A1:B10,2,FALSE)





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
Get Cell Address From Lookup (Alternative to Lookup) ryguy7272 Excel Worksheet Functions 12 September 28th 07 10:36 PM
Variable Lookup/Double Lookup Ryan[_2_] Excel Worksheet Functions 8 May 14th 07 09:44 PM
Join 2 Lists - Lookup value in 1 list & use result in 2nd lookup JBush Excel Worksheet Functions 3 January 3rd 07 11:14 PM
Sumproduct - Condition based on lookup of a Lookup Hari Excel Discussion (Misc queries) 12 May 31st 06 09:28 AM
Pivot table doing a lookup without using the lookup function? NGASGELI Excel Discussion (Misc queries) 0 August 2nd 05 05:08 AM


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