+ Reply to Thread
Results 1 to 12 of 12

Calculating multiple duplicate values between two arrays

  1. #1
    Registered User
    Join Date
    04-09-2025
    Location
    Toronto
    MS-Off Ver
    365
    Posts
    7

    Calculating multiple duplicate values between two arrays

    Hello,

    I have two tables of numbers, each row in table 'A' represents a list of numbers that are part of an asset group and the second table is all available assets by classification. I have already applied a simple conditional format to highlight duplicates within table 'A' that match the table of a specific asset group (C-10) in table 'B' but would like to upgrade this to a formula.

    Problem 1: Instead of using Excel's build in duplicate condition formatting, can I use a formula so I can create a drop down list for each asset class and the condition formatting for duplicated changes based on the class selected? As info, there will only ever be one duplicate in table 'A' compared to table 'B'

    Problem 2: I would like a formula that can sum how many matches are in each individual row of table 'A' to whichever asset group in table 'B' is selected based on the drop down list.

    I attached a screen shot as I cannot attach an excel file for some reason.

    Thank you for anyone who is able to take time to help me with this!
    Attached Images Attached Images

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,742

    Re: Calculating multiple duplicate values between two arrays

    Hello BarryFraser. Welcome to the forum.

    There are instructions for uploading in the link in the banner at the top of this page.
    Dave

  3. #3
    Registered User
    Join Date
    04-09-2025
    Location
    Toronto
    MS-Off Ver
    365
    Posts
    7

    Re: Calculating multiple duplicate values between two arrays

    Thanks - I did try but I believe the issue is my internal work firewall preventing me from uploading.

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,742

    Re: Calculating multiple duplicate values between two arrays

    Without something concrete to work with I will not be able to help.

    Perhaps another member can suggest something without that. Working off of pictures usually involves too much guessing to be of much use.

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,990

    Re: Calculating multiple duplicate values between two arrays

    Is your file larger then 1000 KB? If so, you could produce a sample file that has 10 or so rows in table A and 10 or so rows in table B. That should produce a small enough file to attach and also give us enough data with which to identify some duplicates between table A and each column in table B. We can then attempt to write a formula that will work for the original tables. I am somewhat concerned about what appears to be a merged cell in table B, AA2.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  6. #6
    Registered User
    Join Date
    04-09-2025
    Location
    Toronto
    MS-Off Ver
    365
    Posts
    7

    Calculating multiple duplicate values between two arrays

    Hello,

    I have build a spreadsheet that takes an asset allocation list (Table A) and compares it to the 'Dynamic list' which is filtered based on which asset class is selected from the dropdown at the top of table 'A'. The ''Dynamic List' is a filtered version of the master list, Table 'B'. The asset allocation info is fed from the work sheet tab. The reason for this is not apparent in the sample I uploaded, but it is an important feature for the main working file I will be applying these changes to. I tried several tricks for a countif & match formula for a condition format formula, but I was unable to get anything to work for the entire Table 'A' table. I removed them to clean up the example file. I suspect there is a complication with having Table 'A' as a spilled row and the 'Dynamic list' being a spilled column.

    I would like to fix the conditional formatting currently in place for Table 'A' to highlight asset numbers that match the 'Dynamic List', and changes based on which filter is selected. The built in basic duplicate condition formatting works, but it also highlights blanks which I would like to avoid.

    Can anyone of you fantastic folks help clean up the conditional formatting to only highlight direct matches to the dynamic list and ignore blanks?

    Thank you!
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    01-25-2011
    Location
    Belgium, Alveringem
    MS-Off Ver
    Excel 2003, 2007, 365
    Posts
    1,447

    Re: Calculating multiple duplicate values between two arrays

    i hope i understood the question
    Attached Files Attached Files
    Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,991

    Re: Calculating multiple duplicate values between two arrays

    @bsalv

    Administrative Note:

    Where you have provided a workbook solution, please also include a clear explanation of what you've done and how (including formulae/code as approriate) in the post in question (for the benefit of members unable to download attachments).

    This is about making your assistance accessible to all.

    Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  9. #9
    Registered User
    Join Date
    04-09-2025
    Location
    Toronto
    MS-Off Ver
    365
    Posts
    7

    Re: Calculating multiple duplicate values between two arrays

    Quote Originally Posted by bsalv View Post
    i hope i understood the question
    Hello Bsalv - You understood the question and provided exactly what I needed. Thank you for taking the time to do that!

  10. #10
    Registered User
    Join Date
    04-09-2025
    Location
    Toronto
    MS-Off Ver
    365
    Posts
    7

    Re: Calculating multiple duplicate values between two arrays

    For any future readers:

    My original issue was creating a column that calculated the total number of matches between a fixed table and a dynamic spilled list. This was achieved using this formula: =SUM(COUNTIF($C6:$P6,$T$5#),0) (Cell references are specific to the file I uploaded, and found in column 'R'.

    The second issue was conditional formatting to then highlight the cells in in Table 'A' that matched the cells in the dynamic list, and also ignore blank cells. Bsalv solved this by using a formula in conditional formatting: =AND(C6<>"",COUNTIF(Dyn_List,C6))

    I have so much appreciation for those who take time to follow these forums and share their time to help others. Thank you.

  11. #11
    Registered User
    Join Date
    04-09-2025
    Location
    Toronto
    MS-Off Ver
    365
    Posts
    7

    Re: Calculating multiple duplicate values between two arrays

    Quote Originally Posted by JeteMc View Post
    Is your file larger then 1000 KB? If so, you could produce a sample file that has 10 or so rows in table A and 10 or so rows in table B. That should produce a small enough file to attach and also give us enough data with which to identify some duplicates between table A and each column in table B. We can then attempt to write a formula that will work for the original tables. I am somewhat concerned about what appears to be a merged cell in table B, AA2.
    Let us know if you have any questions.
    Thanks for the feedback. I know merged cells are taboo, but my example is a small portion of my master file I created to help solution my issue. I took the liberty to help it present better since the merged cells were not part of the formula array.

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,991

    Re: Calculating multiple duplicate values between two arrays

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED. You can also access the SOLVED tag by editing the opening post and choosing SOLVED from the drop-down to the left of the title box.

    Also, if you have not already done so, remember that you can reward anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.

+ 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] Calculating duplicate values in a row
    By Karnik in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 04-03-2018, 01:10 AM
  2. [SOLVED] Calculating MIN & MAX from arrays containing dates with a/multiple criteria.
    By Quasar82 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 06-28-2016, 09:24 AM
  3. [SOLVED] Using Arrays To Find Values With Multiple Criteria
    By rpokorny in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-05-2015, 12:00 PM
  4. What's the best practice for determining unique values in multiple arrays?
    By dmasters4919 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-15-2015, 05:38 PM
  5. Exclude duplicate values from out of a calculating a sumproduct
    By Alan Casey in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-07-2012, 04:29 PM
  6. Multiple values with Vlookup (arrays)
    By sayan316 in forum Excel General
    Replies: 3
    Last Post: 07-04-2011, 11:27 AM
  7. Sorting arrays that contain multiple values
    By greenglide in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-29-2005, 10:15 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