+ Reply to Thread
Results 1 to 8 of 8

How to find out numbers in two columns

  1. #1
    Registered User
    Join Date
    09-25-2014
    Location
    Oslo, Norway
    MS-Off Ver
    Excel Mac 2011
    Posts
    11

    Question How to find out numbers in two columns

    Hi

    I would like to know the formula to see if a number in column B exists in column A (see attached excel sheet).

    Example: The nr. 2 row contains number of (A) 15001865, and (B) 15001865. So here the answer (I think you can type whatever answer you would like to?) would be something like "exist".Test.xlsx

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.96 for Mac MS 365
    Posts
    8,690

    Re: How to find out numbers in two columns

    you could use =vlookup(--b2,A:A,1,false) and if it returns an error it isn't in the list.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.96 for Mac MS 365
    Posts
    8,690

    Re: How to find out numbers in two columns

    if you want something a little more dynamic you could try this one instead.
    =IF(IFERROR(VLOOKUP(--B2,A:A,1,FALSE),"")="","not in list",VLOOKUP(--B2,A:A,1,FALSE))

    EDIT: BTW, put either of mine in cell C2 and copy down if that wasn't apparent.
    Last edited by Sam Capricci; 06-18-2015 at 05:22 AM. Reason: clarity

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How to find out numbers in two columns

    With match.

    The problem is you have textformat in column B.

    I used a formula to translate the textformat in normal format (in column C).

    After that a formula to see if the data match.

    See the attached file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  5. #5
    Registered User
    Join Date
    09-25-2014
    Location
    Oslo, Norway
    MS-Off Ver
    Excel Mac 2011
    Posts
    11

    Re: How to find out numbers in two columns

    Kan you write this into the excel sheet please?

  6. #6
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.96 for Mac MS 365
    Posts
    8,690

    Re: How to find out numbers in two columns

    like this?
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    09-25-2014
    Location
    Oslo, Norway
    MS-Off Ver
    Excel Mac 2011
    Posts
    11

    Re: How to find out numbers in two columns

    Thanks for answering. I didn't fully understand your formula, because in row 11, you say that "value dont exist", and this value (15001886) is in A3, which means that the formula is wrong?


    Quote Originally Posted by oeldere View Post
    With match.

    The problem is you have textformat in column B.

    I used a formula to translate the textformat in normal format (in column C).

    After that a formula to see if the data match.

    See the attached file.

  8. #8
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How to find out numbers in two columns

    @engen44,

    in A11 you find the value 15001912 which is NOT found in column C.

+ 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 difference between numbers in cells in 2 columns
    By abjac in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-08-2013, 07:01 AM
  2. Find numbers that dont exists in both columns
    By peter233 in forum Excel General
    Replies: 2
    Last Post: 04-18-2007, 05:11 AM
  3. How to find the highest 2 numbers from 3 columns
    By aijihz in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-19-2007, 05:31 AM
  4. [SOLVED] 5 columns numbers find lo-hi & % change..
    By nastech in forum Excel General
    Replies: 0
    Last Post: 01-13-2006, 09:30 PM
  5. Find similar numbers from two columns of numbers
    By Dennis Andrews in forum Excel General
    Replies: 1
    Last Post: 11-30-2005, 04:00 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