+ Reply to Thread
Results 1 to 9 of 9

How to find out if a value appears in more than one column

  1. #1
    Registered User
    Join Date
    03-06-2014
    Location
    Liverpool
    MS-Off Ver
    Excel 2007
    Posts
    23

    How to find out if a value appears in more than one column

    Hi

    Basically I have two lists of reference numbers. I need to find out if any of the reference numbers that appear in the first column appear in the second list.

    The reference numbers may appear in their own list more than once.

    Thanks
    Jess

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,082

    Re: How to find out if a value appears in more than one column

    Assuming data is in column A and B

    in C1
    =NOT(ISNA(VLOOKUP(A1,B$1:B$10,1,0)))+0
    and copy down

    0 means its missing
    1 means its there
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    03-06-2014
    Location
    Liverpool
    MS-Off Ver
    Excel 2007
    Posts
    23

    Re: How to find out if a value appears in more than one column

    Hi thank you for your reply.

    That didn’t work because it gives me a 1 for the reference numbers that appear in the same list. The reference numbers may appear in the same list but I don’t want to know that, I need to know if it appears in the other list.

    Do you know how I could get that to work?

    Thanks

  4. #4
    Valued Forum Contributor
    Join Date
    10-06-2008
    Location
    Norway
    MS-Off Ver
    2010
    Posts
    365

    Re: How to find out if a value appears in more than one column

    Hi try C2:
    =COUNTIF(A2,$B$2:$B$10)
    copy down

  5. #5
    Registered User
    Join Date
    03-06-2014
    Location
    Liverpool
    MS-Off Ver
    Excel 2007
    Posts
    23

    Re: How to find out if a value appears in more than one column

    Hi Thank you for your reply, this just gives me a list of 0

  6. #6
    Valued Forum Contributor
    Join Date
    10-06-2008
    Location
    Norway
    MS-Off Ver
    2010
    Posts
    365

    Re: How to find out if a value appears in more than one column

    So none of the values in column A exist in B2:B10, then...?

  7. #7
    Registered User
    Join Date
    03-06-2014
    Location
    Liverpool
    MS-Off Ver
    Excel 2007
    Posts
    23

    Re: How to find out if a value appears in more than one column

    Yes

    I have tested it on a small sample of data

    111 110 0
    222 220 0
    333 330 0
    444 456 0
    555 65 0
    666 333 0
    777 330 0
    555 147 0
    999 741 0
    100 123 0

    I get all 0's

    Jess
    Last edited by JessK; 09-03-2014 at 07:25 AM.

  8. #8
    Valued Forum Contributor
    Join Date
    10-06-2008
    Location
    Norway
    MS-Off Ver
    2010
    Posts
    365

    Re: How to find out if a value appears in more than one column

    No, it will tell you how many times the number directly next to it (in column A) exists (anywhere) in the range B2:B10.

  9. #9
    Valued Forum Contributor
    Join Date
    10-06-2008
    Location
    Norway
    MS-Off Ver
    2010
    Posts
    365

    Re: How to find out if a value appears in more than one column

    Sorry, I inverted the formula...:
    =COUNTIF($B$2:$B$10,A2)

  10. #10
    Registered User
    Join Date
    09-03-2014
    Location
    Newcastle
    MS-Off Ver
    2010 and 2013
    Posts
    0

    Re: How to find out if a value appears in more than one column

    A vlookup would be the best option?

    Assuming data is in column A and B,

    =iferror(vlookup(1st cell column A,B:B,1,false))," ")

    This will bring back nil values in columns where they do not exist in the second list.

    Hopefully this helps.

+ 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] find a total of times a word appears across all the sheets in column "C"
    By NickB79 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-20-2013, 10:28 AM
  2. Find number of times a value from a list appears in a seperate column
    By GSmith8 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-17-2013, 02:05 AM
  3. Replies: 2
    Last Post: 11-19-2012, 02:52 PM
  4. [SOLVED] find number of times a letter or a number appears in a column
    By dcoates in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-17-2012, 02:47 PM
  5. [SOLVED] Find various strings and copy the found string in column A of the row it appears in.
    By equanet in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-29-2012, 02:55 PM

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