#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default lookup problem.

I am trying to lookup a column from one worksheet and match it with anohter
column in another worksheet, then I want it to give me the value in the
adjacent cell.
Here is my example:
worksheet A: cell A1: Bstudio2
worksheet B:
A B C D E F
Astudio1 3 Bstudio1 9 Cstudio1 10
Astudio2 4 Bstudio2 0 Cstudio2 5
Astudio3 8 Bstudio3 2 Cstudio3 6

So if worksheet one (A1) matches either column A,C or E in other worksheet
then return B,D or E. Cannot figure out what combination of VlLOOKUP, MATCH
and/or INDEX to use to get answer.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default lookup problem.

Long and ugly:
=IF(ISNA(VLOOKUP(A1,Sheet2!A1:B3,2,FALSE)),0,VLOOK UP(A1,Sheet2!A1:B3,2,FALSE)
)+IF(ISNA(VLOOKUP(A1,Sheet2!C1:D3,2,FALSE)),0,VLOO KUP(A1,Sheet2!C1:D3,2,FALSE)
)+IF(ISNA(VLOOKUP(A1,Sheet2!E1:F3,2,FALSE)),0,VLOO KUP(A1,Sheet2!E1:F3,2,FALSE))

If the second column is text use
=IF(ISNA(VLOOKUP(A1,Sheet2!A1:B3,2,FALSE)),"",VLOO KUP(A1,Sheet2!A1:B3,2,FALSE)
)& .......

best wishes

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

"MyFairLady" wrote in message
...
I am trying to lookup a column from one worksheet and match it with anohter
column in another worksheet, then I want it to give me the value in the
adjacent cell.
Here is my example:
worksheet A: cell A1: Bstudio2
worksheet B:
A B C D E F
Astudio1 3 Bstudio1 9 Cstudio1 10
Astudio2 4 Bstudio2 0 Cstudio2 5
Astudio3 8 Bstudio3 2 Cstudio3 6

So if worksheet one (A1) matches either column A,C or E in other worksheet
then return B,D or E. Cannot figure out what combination of VlLOOKUP,
MATCH
and/or INDEX to use to get answer.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default lookup problem.

Thanks Bernard, but that is too detailed. Is there another way to write it so
that it looks at the range from Sheet2!A1:F3 and return adjacent cell if A1
in Sheet1! matches? I only showed you a partial list but Sheet2! continues
on for quite a few columns

"Bernard Liengme" wrote:

Long and ugly:
=IF(ISNA(VLOOKUP(A1,Sheet2!A1:B3,2,FALSE)),0,VLOOK UP(A1,Sheet2!A1:B3,2,FALSE)
)+IF(ISNA(VLOOKUP(A1,Sheet2!C1:D3,2,FALSE)),0,VLOO KUP(A1,Sheet2!C1:D3,2,FALSE)
)+IF(ISNA(VLOOKUP(A1,Sheet2!E1:F3,2,FALSE)),0,VLOO KUP(A1,Sheet2!E1:F3,2,FALSE))

If the second column is text use
=IF(ISNA(VLOOKUP(A1,Sheet2!A1:B3,2,FALSE)),"",VLOO KUP(A1,Sheet2!A1:B3,2,FALSE)
)& .......

best wishes

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

"MyFairLady" wrote in message
...
I am trying to lookup a column from one worksheet and match it with anohter
column in another worksheet, then I want it to give me the value in the
adjacent cell.
Here is my example:
worksheet A: cell A1: Bstudio2
worksheet B:
A B C D E F
Astudio1 3 Bstudio1 9 Cstudio1 10
Astudio2 4 Bstudio2 0 Cstudio2 5
Astudio3 8 Bstudio3 2 Cstudio3 6

So if worksheet one (A1) matches either column A,C or E in other worksheet
then return B,D or E. Cannot figure out what combination of VlLOOKUP,
MATCH
and/or INDEX to use to get answer.




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 740
Default lookup problem.

try sumproduct
if your lookup value data is numeric values and there are no blank cells.
Blank cells or text are read as "0"

=SUMPRODUCT(--(Sheet1!A1:E3=A1),(Sheet1!B1:F3))

good luck and regards
--
*****
birds of the same feather flock together..



"MyFairLady" wrote:

Thanks Bernard, but that is too detailed. Is there another way to write it so
that it looks at the range from Sheet2!A1:F3 and return adjacent cell if A1
in Sheet1! matches? I only showed you a partial list but Sheet2! continues
on for quite a few columns

"Bernard Liengme" wrote:

Long and ugly:
=IF(ISNA(VLOOKUP(A1,Sheet2!A1:B3,2,FALSE)),0,VLOOK UP(A1,Sheet2!A1:B3,2,FALSE)
)+IF(ISNA(VLOOKUP(A1,Sheet2!C1:D3,2,FALSE)),0,VLOO KUP(A1,Sheet2!C1:D3,2,FALSE)
)+IF(ISNA(VLOOKUP(A1,Sheet2!E1:F3,2,FALSE)),0,VLOO KUP(A1,Sheet2!E1:F3,2,FALSE))

If the second column is text use
=IF(ISNA(VLOOKUP(A1,Sheet2!A1:B3,2,FALSE)),"",VLOO KUP(A1,Sheet2!A1:B3,2,FALSE)
)& .......

best wishes

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

"MyFairLady" wrote in message
...
I am trying to lookup a column from one worksheet and match it with anohter
column in another worksheet, then I want it to give me the value in the
adjacent cell.
Here is my example:
worksheet A: cell A1: Bstudio2
worksheet B:
A B C D E F
Astudio1 3 Bstudio1 9 Cstudio1 10
Astudio2 4 Bstudio2 0 Cstudio2 5
Astudio3 8 Bstudio3 2 Cstudio3 6

So if worksheet one (A1) matches either column A,C or E in other worksheet
then return B,D or E. Cannot figure out what combination of VlLOOKUP,
MATCH
and/or INDEX to use to get answer.




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 problem Kaylean Excel Worksheet Functions 13 May 5th 09 03:51 PM
LOOKUP function Problem justme Excel Worksheet Functions 2 December 13th 06 04:40 AM
Lookup problem want 2 or more results pellepannekake Excel Discussion (Misc queries) 1 November 22nd 06 09:43 AM
Zeros problem in LOOKUP? Danopnu Excel Worksheet Functions 6 September 21st 06 09:34 AM
Lookup Problem Scott Excel Worksheet Functions 0 April 18th 05 08:07 PM


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