+ Reply to Thread
Results 1 to 41 of 41

Display and Count values, in an array, that do not match values another array

  1. #1
    Forum Contributor
    Join Date
    09-15-2022
    Location
    Marseille, France
    MS-Off Ver
    O365 (PC) V 2303
    Posts
    265

    Display and Count values, in an array, that do not match values another array

    EDIT - please see below posts, potentially easier issue to fix - version 2 & 3 - thanks.

    Dear All:

    I am trying to check, display and count in a single formula the values of an array that do not match the values available in another array. Case-unsensitive.
    Problem: this is not an array of simple strings as there are possibly some comma-separated values in it, which need to be checked as well individually.


    display_count_unmatches.jpg

    In the example above all values are in the authorized values except black which appear 8 times and dark 1 time.

    Thanks for your help on this matter.
    Attached Files Attached Files
    Last edited by guillaume0314; 10-26-2022 at 03:48 AM. Reason: file attached

  2. #2
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,789

    Re: Display and Count values, in an array, that do not match values another array

    Fast answers need clear examples. Post a small Excel sheet (not a picture) showing realistic & representative sample data WITHOUT confidential information (10-20 rows, not thousands...) and some manually calculated results. For a new thread (1st post), scroll to Manage Attachments, otherwise scroll down to GO ADVANCED, click, and then scroll down to MANAGE ATTACHMENTS and click again. Now follow the instructions at the top of that screen.

  3. #3
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Display and Count values, in an array, that do not match values another array

    something like that?

    list Count
    black
    8
    dark
    1
    Last edited by sandy666; 10-25-2022 at 04:23 PM.

  4. #4
    Forum Contributor
    Join Date
    09-15-2022
    Location
    Marseille, France
    MS-Off Ver
    O365 (PC) V 2303
    Posts
    265

    Re: Display and Count values, in an array, that do not match values another array

    @CARACALLA - I thought it was there, not sure what I did. Fixed. Thanks!

  5. #5
    Forum Contributor
    Join Date
    09-15-2022
    Location
    Marseille, France
    MS-Off Ver
    O365 (PC) V 2303
    Posts
    265

    Re: Display and Count values, in an array, that do not match values another array

    @sandy666: rather a formula. Thanks.

  6. #6
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Display and Count values, in an array, that do not match values another array

    Quote Originally Posted by guillaume0314 View Post
    @sandy666: rather a formula. Thanks.

    no problem
    have a nice day

    btw. this is not VBA

  7. #7
    Forum Contributor
    Join Date
    09-15-2022
    Location
    Marseille, France
    MS-Off Ver
    O365 (PC) V 2303
    Posts
    265

    Re: Display and Count values, in an array, that do not match values another array

    I would like to simplify here with a V2 compare to initial request.
    Let's imagine I can create an adjacent range in C6:C22 representing the text splits of the values in column B6:B22. That would be some sort of a control column I can insert in my file, made only for the purpose of counting and displaying the unmatches only. That could possibly help running the control, does this make sense ?
    In C6:C22 we would have a list of arrays of dimensions 1, 2 or 3 depending on the number of commas in B6:B22.

    Attachment 802280

    The problem, the splits deploy on adjacent columns D and E.

    I can run a VSTACK however, what I do not understand is that I need to select the 3 columns C6:E22 for the VSTACK to work whereas in my file that would not be possible considering there will be adjacent columns. What I would like is to use only C6:C22, not the cell values (string) but the arrays they represent.

    So my question, is there any way to create a table right from the arrays of 1, 2, 3 or X dimensions in C6:C22 and use it in a VSTACK? And not to use the adjacent cells populated by the SPLITTEXT? Does this make sense?

    I tried to use MAKEARRAY but I am stuck here.

    Any ideas are welcome.
    Attached Files Attached Files
    Last edited by guillaume0314; 10-26-2022 at 03:44 AM. Reason: version 2

  8. #8
    Forum Contributor
    Join Date
    09-15-2022
    Location
    Marseille, France
    MS-Off Ver
    O365 (PC) V 2303
    Posts
    265

    Re: Display and Count values, in an array, that do not match values another array

    I would like to simplify even more here, to see if there is an acceptable solution doable for me. Version 3.

    Lets imagine the data is not represented any longer with comma-separated strings but available directly in 3 columns. I can force the system to populate the data in different columns, instead of returning a comma-separated values list in a single column. This is possible, although not the best, but I can do it.

    Then I imagine is much simpler to run a control on each of the 3 columns, extract the unmatched valued and count them. What do you think? If yes what would be the steps? Thanks!

    Attachment 802283
    Attached Files Attached Files

  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
    44,139

    Re: Display and Count values, in an array, that do not match values another array

    You want them in that exact format term (count), term2 (count2), etc, etc....
    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

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,417

    Re: Display and Count values, in an array, that do not match values another array

    How about this?

    =LET(t,TRANSPOSE(TEXTSPLIT(TEXTJOIN(",",,B6:B22),",")),f,FILTER(t,(ISNUMBER(MATCH(t,G6:G13,0)))=FALSE),uf,UNIQUE(f),ci,COUNTIF(B6:B22,"*"&uf&"*"),tj,TEXTJOIN(" ",,CHOOSE({1,2},uf,"("&ci&"),")),LEFT(tj,LEN(tj)-1))
    Attached Files Attached Files
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  11. #11
    Forum Contributor
    Join Date
    09-15-2022
    Location
    Marseille, France
    MS-Off Ver
    O365 (PC) V 2303
    Posts
    265

    Re: Display and Count values, in an array, that do not match values another array

    Thanks Glenn.

    That was my intention. However - if the rendered format is an issue then we can amend it - as long as I can see visually the missing term and how many times it is missing - it does not matter how the result is formatted.

    That could possibly be for example this very basic sequence:

    term1 count1 term2 count2 etc.

    or

    count1 term1 count2 term2 etc.

    or even, if it is much easier for the formula:

    totalcounts term1 term2 etc.

    Thanks.

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

    Re: Display and Count values, in an array, that do not match values another array

    Please see post #10.

  13. #13
    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
    44,139

    Re: Display and Count values, in an array, that do not match values another array

    This gives the desired result, but I'm sure it could be shortened!!

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  14. #14
    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
    44,139

    Re: Display and Count values, in an array, that do not match values another array

    Ali, Post 10 does NOT give the desired result...

  15. #15
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,417

    Re: Display and Count values, in an array, that do not match values another array

    @Glenn

    Yes, it does:

    AliGW on MS365 Beta Channel (Windows 11) 64 bit

    C
    1
    black (8), dark (1)
    Sheet: Feuil1

  16. #16
    Forum Contributor
    Join Date
    09-15-2022
    Location
    Marseille, France
    MS-Off Ver
    O365 (PC) V 2303
    Posts
    265

    Re: Display and Count values, in an array, that do not match values another array

    Thanks Ali! It looks like it works this way and I do not have to go through 3 columns like suggested in V3.

    I will look into the details later today and make some tests - cannot look into the details right now.

  17. #17
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,417

    Re: Display and Count values, in an array, that do not match values another array

    Glad to have helped.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank those who have helped you 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 all those who offered help.

  18. #18
    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
    44,139

    Re: Display and Count values, in an array, that do not match values another array

    That is ABSOLUTELY not what I saw when I first looked at it.... It returned a count of ALL terms. It looks fine now. I do not understand!! Did you post the wrong file first time round??

  19. #19
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,417

    Re: Display and Count values, in an array, that do not match values another array

    No - I haven't changed anything!

  20. #20
    Forum Contributor
    Join Date
    09-15-2022
    Location
    Marseille, France
    MS-Off Ver
    O365 (PC) V 2303
    Posts
    265

    Re: Display and Count values, in an array, that do not match values another array

    Thanks Glenn it looks like it works. I will make some tests later today.

    You guys @Glenn and @Ali are fantastic, your help is so much appreciated! And very fast answer.

    @Glenn - it looks like the formula given by Ali gives the desired result too.

    Thanks.

  21. #21
    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
    44,139

    Re: Display and Count values, in an array, that do not match values another array

    Excel is weird! Or my PC is weird...

  22. #22
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,417

    Re: Display and Count values, in an array, that do not match values another array

    Just one of those ghosts in the machine. Definitely not me (for once!) ...

  23. #23
    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
    44,139

    Re: Display and Count values, in an array, that do not match values another array

    Assuming both work as specified... go with Ali's. It calls fewer functions and will be more efficient.

  24. #24
    Forum Contributor
    Join Date
    09-15-2022
    Location
    Marseille, France
    MS-Off Ver
    O365 (PC) V 2303
    Posts
    265

    Re: Display and Count values, in an array, that do not match values another array

    Thanks so much @Ali and @Glenn - it works like a charm.

    I will stick with Ali's one as suggested.

  25. #25
    Forum Contributor
    Join Date
    09-15-2022
    Location
    Marseille, France
    MS-Off Ver
    O365 (PC) V 2303
    Posts
    265

    Re: Display and Count values, in an array, that do not match values another array

    Dear Ali:

    I have been using this formula for different kind of arrays without troubles:

    Quote Originally Posted by AliGW View Post
    How about this?

    =LET(t,TRANSPOSE(TEXTSPLIT(TEXTJOIN(",",,B6:B22),",")),f,FILTER(t,(ISNUMBER(MATCH(t,G6:G13,0)))=FALSE),uf,UNIQUE(f),ci,COUNTIF(B6:B22,"*"&uf&"*"),tj,TEXTJOIN(" ",,CHOOSE({1,2},uf,"("&ci&"),")),LEFT(tj,LEN(tj)-1))
    However I have just discovered a limitation in one of my table. Actually it looks like if the array is large enough (e.g. B6:B1000 instead of B6:B22 in the initial example), and if each cell of this array contains lengthy data, then the formula will return a #CALC error.

    Please see:

    Attachment 804124

    It is my understanding this function
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    would not work if it exceeds 32,767 characters (https://support.microsoft.com/en-us/...0exceeds,error.)

    In the exemple attached, I see the total characters length of B6:B1000 is 48,079.

    If I change B6:B1000 to B6:B500, then suddenly the TEXTJOIN works again. So I imagine TEXTJOIN is the culprit here.

    Any ideas how to bypass this new issue? Thank you so much.

  26. #26
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,417

    Re: Display and Count values, in an array, that do not match values another array

    Is this the last time? I don't want to have to keep tweaking this multiple times because yu haven't considered aspects of your real data.

  27. #27
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,417

    Re: Display and Count values, in an array, that do not match values another array

    Just looked - sorry, I'm out. Your sample data was clearly so far away from what you are really working with that this has been a complete waste of time. Luckily I have benefited from the process of working it out for you, but I'm not going to do it again as it's a lot of effort only to be told the next day that it doesn't cope with something I knew nothing about.

    Over to you!

  28. #28
    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
    44,139

    Re: Display and Count values, in an array, that do not match values another array

    Reply withdrawn by GK
    Last edited by Glenn Kennedy; 11-08-2022 at 08:17 AM.

  29. #29
    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
    44,139

    Re: Display and Count values, in an array, that do not match values another array

    If you don't mind a pile of helpers...

    To split them:
    =IFERROR(TEXTSPLIT(B6,",",,1),"")

    to consolidate them:
    =TOCOL(I6:R2000,1)

    To deliver the result:
    =LET(t,G6#,f,FILTER(t,(ISNUMBER(MATCH(t,E6:E13,0)))=FALSE),uf,UNIQUE(f),ci,COUNTIF(G6#,uf),tj,TEXTJOIN(" ",,CHOOSE({1,2},uf,"("&ci&"),")),LEFT(tj,LEN(tj)-1))
    Attached Files Attached Files

  30. #30
    Forum Contributor
    Join Date
    09-15-2022
    Location
    Marseille, France
    MS-Off Ver
    O365 (PC) V 2303
    Posts
    265

    Re: Display and Count values, in an array, that do not match values another array

    Dear Ali:

    Your sample data was clearly so far away from what you are really working with that this has been a complete waste of time.
    I am sorry, but what do you not understand in: "I have been using this formula for different kind of arrays without troubles"?

    It means it was a good fit and very useful for the arrays I had to deal with on 10/25, correct?

    Would this prevent me from having a NEW issue on 11/08 with a NEW kind of data which require a NEW formula, as the previous one is not working any longer? Certainly not.

    Do you seriously believe one has to imagine all kind of difficulties that may happen in the future, just in case, before taking any action for the current problem, considering the current configuration and scenario? Should I discover it does not work with case-sensitive data later on, for example, I would not be authorized to ask, because it would risk you feel you wasted your time? Seriously? And I shall have imagined a potential case-sensitivity issue at the very beginning instead, although not needed at that time? Or I shall have imagined empty cells, which were not existing in the original data set? Or I shall have imagined any potential issues, just in case, not to upset you? As I read you, I understand it has to be a "for once and for all" scenario when you deliver a solution, which is, to me, completely out of reality. I do not know any problem-solver with such an approach. New solutions lead to new problems, and then new solutions, and etc.

    Please be reassured - it was NOT a complete waste of time, it works for a dozen of tables - thanks again!

    However, it was a big mistake on my side to imagine it was a good idea to ask you directly what do you think of this discovered and unexpected limitation. The fact is - my intention was very respectful to you! I could have ignored you completely and submit a new thread instead.

    Quite a bad idea as it led to
    I'm not going to do it again as it's a lot of effort only to be told the next day that it doesn't cope with something I knew nothing about.
    .

    I always appreciate your help, really. However, I deal with highly dynamical data from various sources, in terms of size, nature, complexity, multiple kind of changes happen very often and lead to new challenges. We are certainly not a good match considering this, and I do not want to be a pain. I am sorry for the inconvenience caused.

  31. #31
    Forum Contributor
    Join Date
    09-15-2022
    Location
    Marseille, France
    MS-Off Ver
    O365 (PC) V 2303
    Posts
    265

    Re: Display and Count values, in an array, that do not match values another array

    Thanks Glenn for the suggestion. I will look into it immediately.

  32. #32
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,417

    Re: Display and Count values, in an array, that do not match values another array

    Please be reassured - it was NOT a complete waste of time, it works for a dozen of tables - thanks again!
    That's good to know. I am sorry, but it did rather feel like goalposts being shifted. If this is a new scenario, then actually a new thread with a suitable title wouold have been better.

  33. #33
    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
    44,139

    Re: Display and Count values, in an array, that do not match values another array

    I'm on my way to the cinema right now and have had another thought. I'll try it later and let you know...

  34. #34
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: Display and Count values, in an array, that do not match values another array

    Everything in one go, without helpers (but slow), please try in C2
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    I added tis formula to the sheet of Glenn from post 29 in cell C2.

    Response time in case of 1000 rows, 10 colors on each row is on my laptop about 20 seconds.
    Attached Files Attached Files

  35. #35
    Forum Contributor
    Join Date
    09-15-2022
    Location
    Marseille, France
    MS-Off Ver
    O365 (PC) V 2303
    Posts
    265

    Re: Display and Count values, in an array, that do not match values another array

    @Glenn - I had a look into the details - it will be difficult IMO to insert helpers columns the way our workbooks are setup, there are already 100+ columns in the file I am working in and this functionality (display and count missing values in a column) has to be implemented on many columns to control their content, not a single one, which would require to remultiply the number of column helpers by the number of columns every time this formula is used: looks very complex to do.

    Additionally, I cannot be certain how many terms could be comma-separated in each cell of the analyzed column, as a result the number of helpers, should we go this route, would have to become dynamic as well as the TOCOL array, or at least I would need to consider and use a large max (like 50), which would create many additional columns.

  36. #36
    Forum Contributor
    Join Date
    09-15-2022
    Location
    Marseille, France
    MS-Off Ver
    O365 (PC) V 2303
    Posts
    265

    Re: Display and Count values, in an array, that do not match values another array

    Thank you @Hans. It works well! The problem, each time we modify a single cell in the original range, it recalculates everything and takes about 20 seconds.

    New data will append to the original range on a regular basis, so unfortunately it will not be very comfortable to use on a daily basis.

    Additionally in terms of performance, as this formula would be used on multiple columns, controlling the values inside the cells, I cannot exclude a problem in terms of performance/reliability if everything is recalculating at the same time.

    Thanks you so much for your input!

  37. #37
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: Display and Count values, in an array, that do not match values another array

    Maybe I can speed up the formula.
    But how I approach that depends on numbers in practice.

    How many rows of colors do you usually have in your sheet?
    How many colors are there on average in 1 cell?
    And are there in practice many items (over 1000) that don't match?

  38. #38
    Forum Contributor
    Join Date
    09-15-2022
    Location
    Marseille, France
    MS-Off Ver
    O365 (PC) V 2303
    Posts
    265

    Re: Display and Count values, in an array, that do not match values another array

    Thank you Hans.

    It is not necessarily colors, it can be any list of values I need to control, against authorized values.

    It were colors at the beginning and for the example, but I do not have many colors merged in single cells in my system so it worked perfectly fine, and fast.

    Please see attached a copy of data. I have been stuck suddenly with this set of data, considering the large data and the limitation on TEXTJOIN - at least, this is my understanding.

    You will notice I cannot extend the array to more than B400: it will falsely returns a validation, which is a no-go.

    --

    How many rows of colors do you usually have in your sheet?
    It depends on workbooks. Usually 1k to 5k rows per sheets where this formula could be of interest. I think, no more than 5k. At least, did not happen yet.

    How many colors are there on average in 1 cell?
    Typically I deal with max 3, 4 elements per cells, comma-separated. Was the case for colors. But in the current case, the max is 13. I made a quick check on other arrays susceptible to use this function, currently none has more than 13 values that could be joint together. So, average 3-4, max 13.

    And are there in practice many items (over 1000) that don't match?
    This is very rarely the case - most of the time, data is valid, so it does not have to display anything except the submitted range is valid. I would say there could be 1 or 2 mismatches maximum (to display - not talking about the count). If we talk about the count, then it could rapidly be huge, if a wrong value is used in many rows (500+)


    Also - I have a question.

    1/ Would that make sense to set limitations on the counts (example: MISMATCHES: blue (10+) to say there are more than 10, we do not count over). Would this be a solution?

    2/ Would it be much easier if we do NOT have to display the count? Because I imagine you could use at the very beginning of your LET the UNIQUE function to remove all kind of duplicates, which would drastically reduce the amount of data to deal with. Does this make sense?

    If yes - I think it will be very acceptable to return the missing values instead of the initial request missing values + count. What do you think of this?

    Thank you!
    Attached Files Attached Files

  39. #39
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: Display and Count values, in an array, that do not match values another array

    If the colors do not have to be counted, a different approach can make the formula without helpers in 1 go very fast.
    The clue is that no unnecessary VSTACKs are done. They are relatively slow.

    In this formula, a VSTACK is only done if the color is not already in the table.
    Try this formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  40. #40
    Forum Contributor
    Join Date
    09-15-2022
    Location
    Marseille, France
    MS-Off Ver
    O365 (PC) V 2303
    Posts
    265

    Re: Display and Count values, in an array, that do not match values another array

    It works fine and it is extremely light and fast which is a crucial parameter to me- I will go this route and sacrify the counts at this stage.

    Thank you so much for your continued support and for listening to me while I try to fix continuously multiple issues in Excel.

  41. #41
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: Display and Count values, in an array, that do not match values another array

    You are welcome, thanks you for the feedback and nice questions.

    I myself learned a lot from this and enjoyed exploring the possibilities. .

+ 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 get first non zero value in an array and display all values after that
    By helloexcel07 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 05-07-2020, 11:06 AM
  2. Replies: 5
    Last Post: 02-22-2018, 01:47 AM
  3. Replies: 1
    Last Post: 12-19-2017, 01:26 PM
  4. Upper quartile of values in array next to count of values
    By jamblur in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-08-2013, 06:17 AM
  5. Display only unique values in an array
    By jrm0523 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-16-2012, 03:37 AM
  6. [SOLVED] Count non-#N/A values in an INDEX/MATCH array
    By Old Michael in forum Excel General
    Replies: 3
    Last Post: 07-20-2012, 08:31 AM
  7. [SOLVED] Count consecutive non-zero values; list first non-zero value; display counts as an array
    By treznick in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-17-2012, 08:25 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