#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default lookup

Hello All:

I have a lookup problem, I hope you can help.

I would like to lookup cells in a column in sheet 1 in a range in shee
2, if they don't match exactly, I want it to return the contents of th
cell reference in sheet 2, if they match, it should show a blank cell.

I started if off as follows, but I was getting a N/A:

=IF(VLOOKUP(E2,MBAN,13,0)<E2,VLOOKUP(E2,MBAN,13,0 ),"")

Thanks a lot.

RichardO

--
Message posted from http://www.ExcelForum.com

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

by the way, I am looking up texts.
Thank you

--
Message posted from http://www.ExcelForum.com

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default lookup

Hi
try something like
=IF(ISNA(VLOOKUP(E2,MBAN,13,0)),value for non matches,"")
Not sure what you mean with 'I want it to return the contents of the
cell reference in sheet 2

--
Regards
Frank Kabel
Frankfurt, Germany

Hello All:

I have a lookup problem, I hope you can help.

I would like to lookup cells in a column in sheet 1 in a range in
sheet 2, if they don't match exactly, I want it to return the
contents of the cell reference in sheet 2, if they match, it should
show a blank cell.

I started if off as follows, but I was getting a N/A:

=IF(VLOOKUP(E2,MBAN,13,0)<E2,VLOOKUP(E2,MBAN,13,0 ),"")

Thanks a lot.

RichardO.


---
Message posted from http://www.ExcelForum.com/


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default lookup

Thanks Frank, I just thought about my post again and it doens't make an
sense to at all! So, I am re-posting my question:

I have 2 columns I want to lookup in sheet 1 against another 2 column
in sheet 2. In sheet 1, the first column is truncated to the last
figures of the 2nd column, same for sheet 2. If column1 in sheet 1 i
found in column 1 of sheet2, and column 2 in sheet 1 is same as colum
2 in sheet2, then it should return "". If column 1 of sheet 1 is sam
as column 1 of sheet, but the columns2 are different, it should giv
me the value of column 2 in sheet 2.

I hope you can help me out.

Thanks a lot.


RichardO

--
Message posted from http://www.ExcelForum.com

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default lookup

Hi
try
=IF(ISNA(MATCH(A1,'sheet2'!A1:A1000,0)),"no match for column
A",IF(ISNA(MATCH(B1,'sheet2'!B1:A1000,0)),VLOOKUP( A1,'sheet2'!A1:B1000,
2,0),""))

--
Regards
Frank Kabel
Frankfurt, Germany

Thanks Frank, I just thought about my post again and it doens't make
any sense to at all! So, I am re-posting my question:

I have 2 columns I want to lookup in sheet 1 against another 2

columns
in sheet 2. In sheet 1, the first column is truncated to the last 6
figures of the 2nd column, same for sheet 2. If column1 in sheet 1

is
found in column 1 of sheet2, and column 2 in sheet 1 is same as

column
2 in sheet2, then it should return "". If column 1 of sheet 1 is

same
as column 1 of sheet, but the columns2 are different, it should give
me the value of column 2 in sheet 2.

I hope you can help me out.

Thanks a lot.


RichardO.


---
Message posted from http://www.ExcelForum.com/




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 help. lookup result based on data in 2 columns lcc Excel Worksheet Functions 3 April 6th 10 01:20 PM
LOOKUP FUNCTION? (LOOKUP VALUE BEING A TIME RENERATED FROM A FORMU JCC Excel Discussion (Misc queries) 5 June 26th 09 09:15 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 03:20 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"