Find matches by given criteria and divide by equal values up to 100%

K0st4din

Active Member
Joined
Feb 8, 2012
Messages
488
Office Version
  1. 2016
  2. 2013
  3. 2011
  4. 2010
  5. 2007
Platform
  1. Windows
Hello, everyone,
since 2 month I have been going crazy, looking for a solution, how to automate a rather large table so that I can finish it faster, because my eyes are going to hell.
I have a very large table, in which on the right I have given names (in the example) from IVAN IVANOV 1 to IVAN IVANOV 35 - AK - BS.
From all these names in column BU, I have specifically selected names.
On the left of the same table, I have horizontally these same names from IVAN IVANOV 1 to IVAN IVANOV 35 - A:AI .
What I do is according to the selected names in column BU, start from A1 first, then A3, then B2 (as a final option and selection), look them up in the table on the right. Then on the same row, but already in the table on the left, if the name from BU - corresponds first to A1, then to A3 and finally to B2, to divide equally by the numbers to get 100% in column AJ (and the corresponding row ).
Apparently I can't handle it, because I tried with excel index match multiple criteria, SUM, SUMIF, but things don't work out for me.
I am asking for some help because I am processing over 2000 rows and this search and compare is totally killing me.
I will attach a sample table and I remain available if you have any questions, because for me personally, you may be confused somewhere in the very clarity of my problem.
Book1.xlsm
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAKALAMANAOAPAQARASATAUAVAWAXAYAZBABBBCBDBEBFBGBHBIBJBKBLBMBNBOBPBQBRBSBTBU
1
2
3
4
5
6PRODUCT VIS %
7IVAN IVANOV 1IVAN IVANOV 2IVAN IVANOV 3IVAN IVANOV 4IVAN IVANOV 5IVAN IVANOV 6IVAN IVANOV 7IVAN IVANOV 8IVAN IVANOV 9IVAN IVANOV 10IVAN IVANOV 11IVAN IVANOV 12IVAN IVANOV 13IVAN IVANOV 14IVAN IVANOV 15IVAN IVANOV 16IVAN IVANOV 17IVAN IVANOV 18IVAN IVANOV 19IVAN IVANOV 20IVAN IVANOV 21IVAN IVANOV 22IVAN IVANOV 23IVAN IVANOV 24IVAN IVANOV 25IVAN IVANOV 26IVAN IVANOV 27IVAN IVANOV 28IVAN IVANOV 29IVAN IVANOV 30IVAN IVANOV 31IVAN IVANOV 32IVAN IVANOV 33IVAN IVANOV 34IVAN IVANOV 35100%IVAN IVANOV 1IVAN IVANOV 2IVAN IVANOV 3IVAN IVANOV 4IVAN IVANOV 5IVAN IVANOV 6IVAN IVANOV 7IVAN IVANOV 8IVAN IVANOV 9IVAN IVANOV 10IVAN IVANOV 11IVAN IVANOV 12IVAN IVANOV 13IVAN IVANOV 14IVAN IVANOV 15IVAN IVANOV 16IVAN IVANOV 17IVAN IVANOV 18IVAN IVANOV 19IVAN IVANOV 20IVAN IVANOV 21IVAN IVANOV 22IVAN IVANOV 23IVAN IVANOV 24IVAN IVANOV 25IVAN IVANOV 26IVAN IVANOV 27IVAN IVANOV 28IVAN IVANOV 29IVAN IVANOV 30IVAN IVANOV 31IVAN IVANOV 32IVAN IVANOV 33IVAN IVANOV 34IVAN IVANOV 35SELECT PRODUCT
8 0B2B2B2B2B2B2B3B2B2D1B2IVAN IVANOV 5
9 0B2B2B2B2B2C2B2B2B2IVAN IVANOV 10
1011B2B2B2B2C2C2B1C2B2B2B2A3A3B2B2B2B2B1B2A3A3B2IVAN IVANOV 11
1111111 11111  111  1111    1111     21A1B2B2A1A1C2A1A1A1A3B2A1A1A1B2B2B2A3A1A1A1A1IVAN IVANOV 12
12                                   0IVAN IVANOV 27
130 0 0 000000 0000 0000 00000000000 ######B2A1A1A1A3A3B2A3B2B2A1A1A3A3A3A3A3B2B2B2B2B2B2B2B2A3B2A3……….TO THE END
14A1B2A1A1A3
152020202020100A3B2B2B2A1A3A3A3C2B2A1A1A3B2A1A3A3A3A3A3A3A1B2A3A3C1A3B2B2A3A3A3B2
16B2B2
17No, in all info from IVAN IVANOV 1 to IVAN IVANOV 35, MISSING A1 or A3, from locking product in BUNo, in all info from IVAN IVANOV 1 to IVAN IVANOV 35, MISSING A1 or A3, from locking product in BU0B2B2B2B2B2B2B2B2B2B2B2B2A1B2B2B2B2
180B2B2B2B2B2B2
19A3B2B2A1A30B1B1B1B1B1B1B1C2C2B2B1B2B2B2B2C2B2C2B2B2B2B2
202020202020100B1B3A3C2B2A3A3B2B2A1A3A3A3A3C2A3A3A3A3B2A3A3A3A3A3A3A1
21A1A3B2A10B2B2C2B2C2C2C2C2C2C2B2C2C1B2B2C1B2B2C1B2B2B1
2225252525100A1B2B2A1A1C2A1A1A1A3B2A1A1A1B2B2B2A3A1A1A1A1
230B2B2B2B2B1B1B1B2B2B2B2B2B2B2
24A3B2A3B2B20B2B2B2B2B2B2B2A3B2B2B2B2B2B2B2A3A3A3B2A3A1B2B2A3B2B2B2B2A3A3A3A3A3B2
252020202020100B2B2C2B2A3B2B2A1B2B2A3B2B2B2A3A3A3A3A3A3B2B2B2B3B2B2B2A3A3A3A3B2A3
26B2B2B2B1B2
2725252525100B2C2B2B2B2B2B2B2B2B2B2B1B2B2B2B2C2B2B2B2B2B3B2B2B2B2B2B2B2B2B2
28A1A3A3B2A10B2B2B2B2C2C2C2C2C2B2C2C2B2B2B2B2C1B2C1B2B2B2B2B2……….TO THE END
292020202020100A3A3B2A1B2B2A3B2A3A3B2B2A3A1A3A3A3A3B2A3C1A3B2A1C1C1A3A1A3B2B2B2
300A3B2B2A3A1C2B2A1A3A3A1B2B2A1A3A3A3A3A3B2B2B2A1B2B2B2B2A1A3A1B2B2B2
Sheet2
Cell Formulas
RangeFormula
A11:AI11,A8:A10A8=IF(AK8="B1",1,IF(AK8="A1",1,IF(AK8="A3",1,IF(AK8="B2",1,IF(AK8="B2",1,"")))))
AJ27:AJ30,AJ17:AJ25,AJ15,AJ8:AJ13AJ8=SUM(A8:AI8)
A12:AI12A12=IF(AK12<>"",AK12/SUM($A$12:$AI$12),"")
A13:AI13A13=IF(AK13<>"",AK13/SUM($A$13:$AI$13),"")
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Let me add one more thing:
The example with the division being equal is according to how many A1, A3 and B2 there are for the given row. The idea is that if I have 5, I divide them 100 / 5 and make each marked 20.
Since, in the example, I have forgotten test formulas, they do not play any role.
15,17,20,22,25,27,29 - these lines are an example of what should be obtained. The description of A1, A3, B2 above each of these lines (the previous one) is only and only, for your convenience, to be able to see, if the way and the formula are found, that there below should be the values, because they correspond in a real case of the truth.
I really hope someone can help me.
Thanks in advance and stay healthy!
 
Upvote 0
Hello, anyone with any idea or is there any ambiguity in my query!? I keep looking for some solution on my own, but I can't manage. If you have any questions, to explain more and more, I'm on the line. Once again, thank you very much!
 
Upvote 0
Friends, does anyone have any idea how things can turn out?
I can't believe there isn't some solution.
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,717
Members
448,985
Latest member
chocbudda

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top