#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default vlookup

I have 2 worksheets with potentially the same data. Sheet 1 column A has VIN
numbers and Sheet2 column F has VIN numbers. I want to see which VIN Number
appears in both worksheets. What formula should I use?
--
Jeff W
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default vlookup

If one list is shorter than the other compare the shorter list to the longer
list.

One way:

=IF(COUNTIF(Sheet2!F:F,A1),"In both","")

Or:

=IF(COUNTIF(Sheet1!A:A,F1),"In both","")

Copy down as needed


--
Biff
Microsoft Excel MVP


"Jeff W" wrote in message
...
I have 2 worksheets with potentially the same data. Sheet 1 column A has
VIN
numbers and Sheet2 column F has VIN numbers. I want to see which VIN
Number
appears in both worksheets. What formula should I use?
--
Jeff W



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 108
Default vlookup

Depends, I suppose, on where you want the answer to show. I sometimes have a
situation where - well, say I have a log of incidents including the user ID,
and a master list of contractor IDs on a separate sheet; I want a column on
the log to indicate whether the ID on this row appears on the contractor list
(ie whether this ID belongs to a contractor rather than an employee), and a
column on the master contractor sheet to indicate whether this contractor
appears in the log. I use MATCH for the purpose: Some column on Sheet1 says

=MATCH(RC1,Sheet2!C6,0)

If the ID in column 1 appears in column 6 on Sheet2, what I see here is a
row number; if not, I get #VALUE. Not pretty, but my eye can pick it out
effortlessly. Or you can make it a little prettier like this:

=IF(ISERROR(MATCH(RC1,Sheet2!C6,0)),"","OtherList" )

This yields a blank if the VIN isn't on Sheet2, or "OtherList" if it is.

And by the way, the fussbudget says "it's not a VIN number, it's just a
VIN". Argh.

--- "Jeff W" wrote:
I have 2 worksheets with potentially the same data. Sheet 1 column A has VIN
numbers and Sheet2 column F has VIN numbers. I want to see which VIN
Number appears in both worksheets. What formula should I use?

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
Vlookup in vlookup - taking the result as array name SupperDuck Excel Worksheet Functions 2 June 2nd 07 11:05 AM
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP buffgirl71 Excel Discussion (Misc queries) 12 November 14th 06 11:36 PM
Vlookup -=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE) MikeR-Oz New Users to Excel 1 March 22nd 06 09:01 AM
IF(AND(val1=VLOOKUP( );val2>=VLOOKUP( );val2<=VLOOKUP( );VLOOKUP( Oso Excel Worksheet Functions 2 January 26th 05 06:56 AM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM


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