+ Reply to Thread
Results 1 to 9 of 9

Compare items in 1 Table under multiple Criteria & Match

  1. #1
    Forum Contributor
    Join Date
    10-20-2017
    Location
    London
    MS-Off Ver
    2016
    Posts
    108

    Compare items in 1 Table under multiple Criteria & Match

    Hi,

    I have a problem for work where I am trying to match opposite entries if they are unique matches and highlight opposite entries where they have more than 1 match.
    I am providing a Spreadsheet with and example.

    I am also providing what I attempted and why it wont work within.

    This is really important for work. Please help.
    Attached Files Attached Files

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Compare items in 1 Table under multiple Criteria & Match

    Hi easy899,

    I believe your problem is how you've structured your data. You have different columns for Income and Expense. This makes it hard to run a total. If you make expenses negative and income positive, you can do an easy total. If you use Pivot Tables you can very easily total by month or account. See the attached where I've added a Total column and a Pivot. Does this help?

    Totals from Income and Expense.xlsx
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Contributor
    Join Date
    10-20-2017
    Location
    London
    MS-Off Ver
    2016
    Posts
    108

    Re: Compare items in 1 Table under multiple Criteria & Match

    Quote Originally Posted by MarvinP View Post
    Hi easy899,

    I believe your problem is how you've structured your data. You have different columns for Income and Expense. This makes it hard to run a total. If you make expenses negative and income positive, you can do an easy total. If you use Pivot Tables you can very easily total by month or account. See the attached where I've added a Total column and a Pivot. Does this help?

    Attachment 550417
    Hi ya,

    Thanks for the help but that's not what I am looking for.

    It is okay to make the Income Column Negative. I made it positive to simplify.
    However, the issue is that I don't just want the totals.

    What I want is to identify the items which match uniquely with 4 criteria (month, account, amount & description) and to idneitify those that match but with more than 1 item separately.

    Is this possible?

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Compare items in 1 Table under multiple Criteria & Match

    can you show us what you expect to see as your results??
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  5. #5
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Compare items in 1 Table under multiple Criteria & Match

    So you have an income of 1000 and you expense it out in 1 or 3 or 10 different payouts. If you expand on my idea of using a pivot table you could use all the criteria of month, account and description to do sums. Because you don't know how many rows will be included in the matching income/expense using totals is the only way you can tell if they are equal at the end.

    Add more row filters to the Pivot and see if that helps.

  6. #6
    Forum Contributor
    Join Date
    10-20-2017
    Location
    London
    MS-Off Ver
    2016
    Posts
    108

    Re: Compare items in 1 Table under multiple Criteria & Match

    What I want from the results is to identify the 1 to 1 matches.
    I.e income 500 in april = expenditure 500 in april and therefore matches off.
    This means income 500 in april cannot match off against expenditure 500 in may.
    Hence a 1 to 1 match.
    I want to identify these so that I can filter foir them and remove them.

    Where I have duplicate matches such as income 500 in april can be matched off against 2 different expenditure 500 in april.
    These are highlighted differently so I can investigate them.

  7. #7
    Forum Contributor
    Join Date
    10-20-2017
    Location
    London
    MS-Off Ver
    2016
    Posts
    108

    Re: Compare items in 1 Table under multiple Criteria & Match

    Quote Originally Posted by MarvinP View Post
    So you have an income of 1000 and you expense it out in 1 or 3 or 10 different payouts. If you expand on my idea of using a pivot table you could use all the criteria of month, account and description to do sums. Because you don't know how many rows will be included in the matching income/expense using totals is the only way you can tell if they are equal at the end.

    Add more row filters to the Pivot and see if that helps.

    Not quite, these items are not matched off in different payouts.
    It is a 1 to 1 match not a 1 to many match.
    So Income 500 can only match 1 expense 500 and not multiple payments of 250 or 500 etc.

  8. #8
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Compare items in 1 Table under multiple Criteria & Match

    Hi,

    I guess I don't understand the question. You are using 1 or 0 to designate a match. If you use a Sort and Filter, wouldn't you do the same thing as 1 and zero?

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Compare items in 1 Table under multiple Criteria & Match

    I will try again. Please upload a sample sheet showing your expected results....

+ 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. Replies: 2
    Last Post: 12-16-2016, 07:58 AM
  2. Index-Match Multiple Criteria From Same Table
    By mycon73 in forum Excel General
    Replies: 0
    Last Post: 04-27-2016, 06:54 PM
  3. Need to retrieve multiple row items given two criteria (Index, Match, Row)
    By tonyridino in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-13-2015, 04:02 PM
  4. [SOLVED] Match multiple criteria in table, create list
    By x65140 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-15-2014, 12:21 PM
  5. [SOLVED] Need to count items in column that match multiple data items
    By bclucas55 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-27-2014, 10:03 AM
  6. Compare line items, giving match locations
    By sk8shorty01 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-29-2011, 05:13 PM
  7. Hide/show specific Pivot Table Items based on multiple criteria
    By wotadude in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-18-2009, 05:15 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