+ Reply to Thread
Results 1 to 8 of 8

Compare two columns and result in the third.

  1. #1
    Registered User
    Join Date
    05-31-2013
    Location
    Polokwane,South Africa
    MS-Off Ver
    Excel 2007
    Posts
    14

    Compare two columns and result in the third.

    Hi Smart People,

    Please see attachment.

    I need to compare two columns A and B with a result in column E.
    BUT I don't want the result to be added together. ( since it's receipt numbers ) SO my formula is incorrect
    I need a formula that will show the receipt numbers next to each other divided by a comma or forward slash...

    Please help me.

    Marlize
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2403 Win 11 Home 64 Bit
    Posts
    23,811

    Re: Compare two columns and result in the third.

    From your vague description, I am guessing that this is what you want.

    =CONCATENATE(A2,"/",B2)

    and copy down.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    05-31-2013
    Location
    Polokwane,South Africa
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Compare two columns and result in the third.

    No that's not what I wanted. But thanks for trying.
    Let me clear up my vague description...
    I must compare column A to column B and the receipts (Column C) must go into column E.
    But sometimes there are more than one receipt per certificate.
    Now I want to know if in stead of adding the receipts together (as it currently does), can it be next to each other in column E. eg. 5579172, 5579165

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2403 Win 11 Home 64 Bit
    Posts
    23,811

    Re: Compare two columns and result in the third.

    Perhaps showing an example of the result manually of what you want for a couple of records in your spreadsheet. I am still not understanding what you are asking.

  5. #5
    Registered User
    Join Date
    05-31-2013
    Location
    Polokwane,South Africa
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Compare two columns and result in the third.

    On the SAMPLE - The yellow highlighted blocks are what I don't want.
    It adds the receipt numbers - if I could get them next to each other ... that would be great.

  6. #6
    Registered User
    Join Date
    05-31-2013
    Location
    Polokwane,South Africa
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Compare two columns and result in the third.

    Please See SAMPLE 2 - I hope it helps.
    Attached Files Attached Files

  7. #7
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2403 Win 11 Home 64 Bit
    Posts
    23,811

    Re: Compare two columns and result in the third.

    Understand now.

    Install this User Defined Function (UDF)

    Please Login or Register  to view this content.
    Then apply the UDF using the syntex shown in the code in column F. See attached

    Once installed, you can access the UDF by clicking on the Fx window and selecting the UDF in the User Defined Functions.
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    01-30-2011
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2010
    Posts
    604

    Re: Compare two columns and result in the third.

    Hello, try the attached.

    The amounts are looked-up against a pivot table after including all the receipts for each certificate. My receipts are in ascending order as opposed to alansidman's result.
    Attached Files Attached Files
    Last edited by Xx7; 04-30-2014 at 02:06 PM.

+ 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. How to paste the result (already compare values) to columns
    By giallorossi in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-20-2013, 03:58 AM
  2. Excel 2007 : Compare 2 columns and produce 1 result
    By fentontech in forum Excel General
    Replies: 3
    Last Post: 11-04-2011, 02:26 PM
  3. compare 2 columns and result in 3th column
    By danusko in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-08-2009, 06:53 AM
  4. Compare Values in Multiple Columns and return a result
    By edbhome in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-18-2009, 09:37 AM
  5. compare two columns, then calculate a result
    By dazp1970 in forum Excel General
    Replies: 9
    Last Post: 12-11-2005, 09:45 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