#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Bob is offline
external usenet poster
 
Posts: 972
Default compare columns

I have two columns L3:M27636.
In column L3:L27636 I have numbers 1234, 4321 etc.
In column M3:M27636 I have either blank cells or numbers 709000.
If column L and M has a number they would match through the worksheet
for example if L4 has 1234 and M4 has 709000 then anywhere 1234 appears in
column L the corresponding cell in column M would be 709000.

I would like a formula that says if M3 is blank, look in L3:l27636, match
this to L3 and if there is a match and has data in the corresponding cell in
column M insert the number or else insert a blank.

I tried =IF(ISBLANK(M3),VLOOKUP(L3,$L$2:$M$27635,2,FALSE), M3) which didn't
work.


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default compare columns

One guess

Try this in say, N2:
=IF(L2="","",IF(M2="",VLOOKUP(L2,L3:$M$27635,2,0), ""))
Copy down
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Bob" wrote:
I have two columns L3:M27636.
In column L3:L27636 I have numbers 1234, 4321 etc.
In column M3:M27636 I have either blank cells or numbers 709000.
If column L and M has a number they would match through the worksheet
for example if L4 has 1234 and M4 has 709000 then anywhere 1234 appears in
column L the corresponding cell in column M would be 709000.

I would like a formula that says if M3 is blank, look in L3:l27636, match
this to L3 and if there is a match and has data in the corresponding cell in
column M insert the number or else insert a blank.

I tried =IF(ISBLANK(M3),VLOOKUP(L3,$L$2:$M$27635,2,FALSE), M3) which didn't
work.


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
Compare Columns James Excel Worksheet Functions 5 March 15th 08 01:50 AM
Compare Two columns JavyD Excel Worksheet Functions 4 September 20th 06 06:20 AM
COMPARE 2 COLUMNS Gary''s Student Excel Discussion (Misc queries) 0 June 7th 06 07:53 PM
Compare two columns Chewy Excel Discussion (Misc queries) 1 April 4th 05 06:07 PM


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