+ Reply to Thread
Results 1 to 2 of 2

Finding and matching data based on criteria....

  1. #1
    Registered User
    Join Date
    11-24-2013
    Location
    Lancashire, England
    MS-Off Ver
    Excel 2003
    Posts
    26

    Finding and matching data based on criteria....

    Happy new year lovely Excel People

    Could I pick your brains?

    I have a two sheet workbook. Each row of informaiton has a unique idenifier. I need to see if a row that appears in sheet 1 appears in sheet 2. Is this where vlookup comes in or do you think there is a batter way of doing this?

    Thanks so much

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Finding and matching data based on criteria....

    welcome to the forum~ a happy new year to you too & feel free to use our brains. say sheet1 contains:
    Data Range
    A
    1
    a
    2
    b
    3
    c
    4
    d

    and sheet2:
    Data Range
    A
    1
    x
    2
    a
    3
    y
    4
    z
    5
    c

    here's what a VLOOKUP (Column B) & COUNTIF (Column C) will return if you do the formula in Sheet1:
    Data Range
    A
    B
    C
    1
    a
    a
    1
    2
    b
    #N/A
    0
    3
    c
    c
    1
    4
    d
    #N/A
    0

    B1:
    =VLOOKUP(A1,Sheet2!A:A,1,0)
    if the value appears, it will show as the same name. if not, N/A appears. i normally use VLOOKUP to retrieve another value instead. like something beside a on sheet 2

    C1:
    =COUNTIF(Sheet2!A:A,A1)
    if it appears, it show as 1. otherwise 0

    or if you want it to be clearer, do an IF or logical test. for eg.
    =COUNTIF(Sheet2!A:A,A1)>0

    so if it's greater than 0, it will show as TRUE & means it appeared. or:
    =IF(COUNTIF(Sheet2!A:A,A1),"Appeared","no")

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Finding data based on two different criteria's
    By GWhaA in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-27-2013, 10:20 PM
  2. [SOLVED] Finding data based on multiplie criteria
    By Eemmai in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-24-2012, 07:41 AM
  3. import data based on matching criteria
    By jamminz1 in forum Excel General
    Replies: 1
    Last Post: 06-21-2012, 06:57 AM
  4. View Data Based On Multiple Matching Criteria
    By uhcord98 in forum Excel General
    Replies: 2
    Last Post: 03-16-2011, 01:53 AM
  5. Matching data between sheet based on criteria
    By elad in forum Excel General
    Replies: 3
    Last Post: 08-14-2009, 03:19 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1