Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8494155
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T23:13:20+00:00 2026-06-10T23:13:20+00:00

Excel buffs: There are many results showing up when searching for comparisons between two

  • 0

Excel buffs:

There are many results showing up when searching for comparisons between two columns (ie: using VLOOKUP) but none of the results I have looked so far seems to do what I need in this particular way:

Column A has following values: Z, Q, V, V, T, T

Column B has following values: V, T, T, M

Column C will display Z, Q, V (here we have one V because one set of ‘V’ pairs up, leaving us with one unpaired ‘V’)

Column D will display M

The other examples I’ve seen so far assumes Column C will not have ‘V’ in it because it’s already found in Column A, regardless of how many times it showed up.

Basically, instead, I need values between two columns paired up and removed, but leave me with any “odd ones” out.

I’ve been unable to figure this one out using formulae – I’ve resorted to sorting everything first, then shifting cells in either Column A or B downwards until Columna A and B either have matching values or odd one out in each row

Thanks in advance

Edit: Another way of saying it: I’d like to “eliminate” paired up values from Columns A and B, until all pairs have been removed, leaving me with remaining values in Column A and B

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T23:13:22+00:00Added an answer on June 10, 2026 at 11:13 pm

    Let’s make the assumption that the answers in C/D are allowed to reside in the same row as the unmatched originals in A/B.

    Here’s the formula for C1, copy and paste it down:

    =REPT(A1,
     MAX(0,MIN(1,COUNTIF($A:$A,A1)
     -COUNTIF($B:$B,A1)
     -IF(ROW()=1,0,COUNTIF(OFFSET($C$1,0,0,ROW()-1,1),A1))
     )))
    

    Basically, we want to “repeat” the corresponding value in column A if we haven’t found a match for it in B and we haven’t already accounted for it in C so far.

    There’s logic in there to ensure that OFFSET() doesn’t refer to a zero-height range, and that we repeat either 0 or 1 time, no more and no less, on each row of C.

    The formula for D1 is similar, but reversed to compare B back to A:

    =REPT(B1,
     MAX(0,MIN(1,COUNTIF($B:$B,B1)
     -COUNTIF($A:$A,B1)
     -IF(ROW()=1,0,COUNTIF(OFFSET($D$1,0,0,ROW()-1,1),B1))
     )))
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Excel's NETWORKDAYS function returns the net working days between two dates. Is there a
In Excel Formulas there are so many different functions, that I am not sure
Excel has NETWORKDAYS() function that find the number of business days between two dates.
Excel returns a reference of the form =Sheet1!R14C1R22C71junk (junk won't normally be there, but
My excel sheet contains many columns and many rows. I want the program to
Using Excel 2010 and SQL Server 2008 R2. I used import and export data
In Excel I have attached a picture to a cell using the following Sub
In Excel, there are methods to access data from external data sources. Excel comes
Excel 2003 had a simple ...interior.colorindex and only 56 numbers. But, this is changed
Excel Interop is removing images from processed files. I’m using the Excel Interop, no

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.