+ Reply to Thread
Results 1 to 6 of 6

Finding the total number of matches within two columns?

  1. #1
    Registered User
    Join Date
    02-27-2007
    Posts
    4

    Finding the total number of matches within two columns?

    I have a sheet, i need to compare two of the columns (numerical), and pull out the total of the numbers that match in both columns. I cannot imagine it's that difficult, however i'm not that good at typing the right question into their help menu, nor are the results very detailed. I have asked people about VLookup, but have not found something as simple as bringing back one single number, i find mostly complicated lookup instructions, which leads me to believe this is even more simple than i think. Can anybody help with the VLookup formula for this, or another more simple route?

  2. #2
    Forum Contributor
    Join Date
    03-14-2006
    Location
    Pakistan
    Posts
    1,791

    Lightbulb

    Quote Originally Posted by mikexcel
    I have a sheet, i need to compare two of the columns (numerical), and pull out the total of the numbers that match in both columns. I cannot imagine it's that difficult, however i'm not that good at typing the right question into their help menu, nor are the results very detailed. I have asked people about VLookup, but have not found something as simple as bringing back one single number, i find mostly complicated lookup instructions, which leads me to believe this is even more simple than i think. Can anybody help with the VLookup formula for this, or another more simple route?
    if you have two columns A and B with your data, then in col C try this

    =IF(ISERROR(MATCH(A1,$B$1:$B$500,0)),"",A1) and copy it down in col C
    it will show you only those values which are in both columns.

  3. #3
    Registered User
    Join Date
    02-27-2007
    Posts
    4
    col A has a great deal more values and col B does, i copied the formula, it seems to work for col B's matches (col B values that are in col A), but i tried the same to compare the longer list to the shorter (col A values that are in col B), that results in all blank cells. Should this not at least have as many matching values as the first time i ran the 'IF'? *Note, i also have some columns hidden that have text in them, to allow to better view just the two numerical columns, if i should unhide everything, let me know. Appreciate the help.

  4. #4
    Registered User
    Join Date
    02-27-2007
    Posts
    4

    Preventing Icrementation

    Also in the formula, when copied, its adding increments to the lookup column each time also, therefore not comparing the column to any of the rows above the last row, how do i prevent this, i need each value to be compared to the entire list, rows above / rows below?

  5. #5
    Forum Contributor
    Join Date
    03-14-2006
    Location
    Pakistan
    Posts
    1,791

    Lightbulb

    Quote Originally Posted by mikexcel
    Also in the formula, when copied, its adding increments to the lookup column each time also, therefore not comparing the column to any of the rows above the last row, how do i prevent this, i need each value to be compared to the entire list, rows above / rows below?
    try this
    =IF(ISERROR(MATCH(B1,$A$1:$A$500,0)),"",B1)

    range should have absolute references like $A$1:$A$500 to avoid increments.
    (adjust col A range if it contains more data)

  6. #6
    Registered User
    Join Date
    02-27-2007
    Posts
    4

    Thank you again for your help!

    Thank you again for your help!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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