How to filter function and SUM based on Partial Text Match (SUMIFS with wildcards)

Lacan

Board Regular
Joined
Oct 5, 2016
Messages
228
Office Version
  1. 365
Platform
  1. Windows
Dear Guys, 🙌

Not using VBA Code, accordingly with criteria (Customer Name+Month) how to filter function and SUM based on Partial Text Match (SUMIFS with wildcards)?
Hope someone could help???🙏🙏
Thank you very much!!! 👍👍🍻🍻

Search by Name_2.xlsm
BCDEFGHIJK
2CRITERIADATA BASE
3Customer NameMonthProduct Name AbbreviationEXCLUSIVES CUSTOMERSEXCLUSIVES MONTHCustomer NameMonthProduct NameUnits
4CNYfeb. 2023Rosuva+EzetABAjan. 2023ABAfeb. 2023ESPIRONOLACTONA 100 MG - 60 COMP.1
5Amlod+Olmes+HctzCNYfeb. 2023ABAfeb. 2023SINVASTATINA 20 MG - 60 COMP.80
6Metform+VildaDILABAfeb. 2023AMLODIPINA 10 mg - 60 Com20
7ABAjan. 2023PRAVASTATINA 20 MG - 60 COMP.2
8ABAfeb. 2023NIFEDIPINA 20 MG - 60 COMP.5
9ABAfeb. 2023SINVASTATINA 40 MG - 60 COMP.2
10ABAfeb. 2023ROSUVASTATINA + EZETIMIBA 20 + 10 mg 604
11ABAjan. 2023SERTRALINA 50 MG - 60 COMP.24
12ABAjan. 2023SERTRALINA 100 MG - 60 COMP.20
13ABAfeb. 2023ROSUVASTATINA + EZETIMIBA 20 + 10 mg 6016
14CNYfeb. 2023RAMIPRIL 2,5 MG - 56 CAPS.2
15RESULTS OF CRITERIA TABLE ABOVECNYfeb. 2023RAMIPRIL 5 MG - 56 CAPS.6
16Product NameSum UnitsCNYfeb. 2023RAMIPRIL 10 MG - 56 CAPS.6
17CNYfeb. 2023RAMIPRIL + HCTZ 5 MG/25 MG - 56 COMP.1
18CNYfeb. 2023OLANZAPINA 2,5X28 MG4
19CNYjan. 2023PANTOPRAZOL 20 MG - 56 COMP.GASTRO-RESIST.2
20CNYfeb. 2023AMLOD+OLME+HCTZ 5 MG +20 MG +12,5 MG 5669
21CNYjan. 2023MONTELUCASTE 10MG 28COMP2
22CNYfeb. 2023AMLOD+OLME+HCTZ 5 MG +20 MG +12,5 MG 561
23CNYfeb. 2023PANTOPRAZOL 40 MG - 56 COMP.GASTRO-RESIST2
24CNYjan. 2023EBASTINA 10MG-20 COMP6
25DILfeb. 2023QUETIAPINA 25MG 20 COMP12
26DILfeb. 2023MONTELUCASTE 10MG 28COMP2
27DILfeb. 2023ESPIRONOLACTONA 25 MG - 60 COMP.20
28DILfeb. 2023METFORMINA + VILDAGLIPTINA 1000 + 50 mg 604
29DILjan. 2023CLOPIDOGREL GENERICOS 75MG 28C50
30DILfeb. 2023IRBESARTAN+HCTZ 150 12,5 28MG4
31DILjan. 2023IRBESARTAN+HCTZ 300 12,5 28MG2
32DILfeb. 2023METFORMINA + VILDAGLIPTINA 1000 + 50 mg 603
Sheet1
Cell Formulas
RangeFormula
F4:F6F4=SORT(UNIQUE(H4:H32))
G4:G5G4=SORT(UNIQUE(I4:I32),,-1)
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
B5List=$G$4:$G$12
B4List=$F$4:$F$6
C4List=$G$4:$G$5
 
Dear @Peter_SSs

Accordingly in post #6 everything OK. đź‘Ť
However I have updated sheet for more of my works analysis requires.
Need your oppinion because have table with data more than 50000 rows.
Instead of having 2 different formulas it is possible to make it in just more simple one?
(when you check sheet below you will understand).

Search by Name_2.xlsm
ABCDEFGHIJKLM
1
2CRITERIADATA BASE
3Customer NameProduct Name AbbreviationEXCLUSIVES CUSTOMERSEXCLUSIVES MONTHCustomer NameMonthProduct NameUnits
4ABAsinvaABAjan. 2023ABAfeb. 2023ESPIRONOLACTONA 100 MG - 60 COMP.1 
5CNYfeb. 2023ABAjan. 2023SINVASTATINA 20 MG - 60 COMP.80161
6rosuva + ezetDILABAjan. 2023SINVASTATINA 20 MG - 60 COMP.81161
7ABAfeb. 2023AMLODIPINA 10 mg - 60 Com20 
8ABAjan. 2023PRAVASTATINA 20 MG - 60 COMP.2 
9ABAfeb. 2023NIFEDIPINA 20 MG - 60 COMP.5 
10MonthMonthABAfeb. 2023SINVASTATINA 40 MG - 60 COMP.2 
11jan. 2023feb. 2023ABAfeb. 2023ROSUVASTATINA + EZETIMIBA 20 + 10 mg 604 
12ABAjan. 2023SERTRALINA 50 MG - 60 COMP.24 
13RESULTS OF CRITERIA TABLE ABOVERESULTS OF CRITERIA TABLE ABOVEABAjan. 2023SERTRALINA 100 MG - 60 COMP.20 
14Product NameSum UnitsProduct NameSum UnitsABAfeb. 2023ROSUVASTATINA + EZETIMIBA 20 + 10 mg 6016 
15SINVASTATINA 20 MG - 60 COMP.161ESPIRONOLACTONA 100 MG - 60 COMP.CNYfeb. 2023RAMIPRIL 2,5 MG - 56 CAPS.2 
16SINVASTATINA 20 MG - 60 COMP.161CNYfeb. 2023RAMIPRIL 5 MG - 56 CAPS.6 
17AMLODIPINA 10 mg - 60 ComCNYfeb. 2023RAMIPRIL 10 MG - 56 CAPS.6 
18PRAVASTATINA 20 MG - 60 COMP.CNYfeb. 2023RAMIPRIL + HCTZ 5 MG/25 MG - 56 COMP.1 
19NIFEDIPINA 20 MG - 60 COMP.CNYfeb. 2023OLANZAPINA 2,5X28 MG4 
20SINVASTATINA 40 MG - 60 COMP.CNYjan. 2023PANTOPRAZOL 20 MG - 56 COMP.GASTRO-RESIST.2 
21ROSUVASTATINA + EZETIMIBA 20 + 10 mg 60CNYfeb. 2023AMLOD+OLME+HCTZ 5 MG +20 MG +12,5 MG 5669 
22SERTRALINA 50 MG - 60 COMP.CNYjan. 2023MONTELUCASTE 10MG 28COMP2 
23SERTRALINA 100 MG - 60 COMP.CNYfeb. 2023AMLOD+OLME+HCTZ 5 MG +20 MG +12,5 MG 561 
24RAMIPRIL 2,5 MG - 56 CAPS.CNYfeb. 2023PANTOPRAZOL 40 MG - 56 COMP.GASTRO-RESIST2 
25RAMIPRIL 5 MG - 56 CAPS.CNYjan. 2023EBASTINA 10MG-20 COMP6 
26RAMIPRIL 10 MG - 56 CAPS.DILfeb. 2023QUETIAPINA 25MG 20 COMP12 
27RAMIPRIL + HCTZ 5 MG/25 MG - 56 COMP.DILfeb. 2023MONTELUCASTE 10MG 28COMP2 
28OLANZAPINA 2,5X28 MGDILfeb. 2023ESPIRONOLACTONA 25 MG - 60 COMP.20 
29PANTOPRAZOL 20 MG - 56 COMP.GASTRO-RESIST.DILfeb. 2023METFORMINA + VILDAGLIPTINA 1000 + 50 mg 604 
30AMLOD+OLME+HCTZ 5 MG +20 MG +12,5 MG 56DILjan. 2023CLOPIDOGREL GENERICOS 75MG 28C50 
31MONTELUCASTE 10MG 28COMPDILfeb. 2023IRBESARTAN+HCTZ 150 12,5 28MG4 
32PANTOPRAZOL 40 MG - 56 COMP.GASTRO-RESISTDILjan. 2023IRBESARTAN+HCTZ 300 12,5 28MG2 
33EBASTINA 10MG-20 COMPDILfeb. 2023METFORMINA + VILDAGLIPTINA 1000 + 50 mg 603 
34QUETIAPINA 25MG 20 COMP
35ESPIRONOLACTONA 25 MG - 60 COMP.
36METFORMINA + VILDAGLIPTINA 1000 + 50 mg 60
37CLOPIDOGREL GENERICOS 75MG 28C
38IRBESARTAN+HCTZ 150 12,5 28MG
39IRBESARTAN+HCTZ 300 12,5 28MG
40
41
Sheet2 (3)
Cell Formulas
RangeFormula
F4:F6F4=SORT(UNIQUE(H4:H33))
G4:G5G4=SORT(UNIQUE(I4:I33),,-1)
B15:C15B15=UNIQUE(CHOOSECOLS(FILTER(J4:L100,L4:L100<>"",{"";"";""}),1,3))
E15:F39E15=UNIQUE(CHOOSECOLS(FILTER(J4:L100,K4:K100<>"",{"";"";""}),1,3))
L4:L33L4=IF(AND(H4=B$4,I4=B$11,COUNT(SEARCH(FILTER(C$4:C$6,C$4:C$6<>""),J4))),SUMIFS(K$4:K$100,H$4:H$100,H4,I$4:I$100,I4,J$4:J$100,J4),"")
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
B11,E11List=$G$4:$G$5
B4List=$F$4:$F$6
B5List=$G$4:$G$12
 
Upvote 0

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Looks like the requirement has changed considerably.
  • Now you want results for multiple months from the same data, originally it was for just a single month.
  • Originally, the exact text from C4 and down was found (or not found) in column J. Now it looks like you possibly want to break up the entries in that column C range and look for individual parts. For example "rosuva + ezet". That text is not found in column J but I'm guessing that you want "rosuva" and "ezet" separately to be found in rows 11 and 14?
Instead of having 2 different formulas it is possible to make it in just more simple one?
Looks like you are wanting to do multiple complicated tasks with a single "simple" formula. :eek:
I'm afraid that I don't have one for you, but perhaps somebody else will come up with one.

BTW, for future threads, please be mindful of #14 of the Forum Rules and eliminate (or extremely limit) the use of emoticons in the thread title.
 
Last edited:
Upvote 0
Dear @Peter_SSs

First thank you very much for the help and patience.
Since always you know that have a lot admiration and respect for you and all the guys in this community through altruistic motivation help others freely.
At the beginning of the thread had an idea that could be a little complex and with the purpose of being better understood preferred to divide it by parts.
Work in sales area and the goal is to analyse my customers sales monthly through a very specific produts they bought or not each month (and sum their units if specifically they match). Thats why double the month (one is January and the second one February) so can check the sales performance of that very specific produts in C4 and down during that period of time.
Originally the exact text from C4 and down was found in column J, this one "Sinva" yes but not this one "rosuva + ezet".
My own personsal data base have 12 columns and more then 51.000 rows each one thats thats the reason if one all single formula it would be more easier if not thats ok too.
For future threads title - Forum Rules - got i!!!
Do you have someone expertise wich you could please recommend for this one?
Thank you very much.đź’Şđź‘Ťđź‘Ť

Search by Name_2.xlsm
ABCDEFGHIJKL
1
2CRITERIADATA BASE
3Customer NameProduct Name AbbreviationEXCLUSIVES CUSTOMERSEXCLUSIVES MONTHCustomer NameMonthProduct NameUnits
4ABAsinvaABAjan. 2023ABAfeb. 2023ESPIRONOLACTONA 100 MG - 60 COMP.1 
5CNYfeb. 2023ABAjan. 2023SINVASTATINA 20 MG - 60 COMP.80161
6rosuva + ezetDILABAjan. 2023SINVASTATINA 20 MG - 60 COMP.81161
7ABAfeb. 2023AMLODIPINA 10 mg - 60 Com20 
8ABAjan. 2023PRAVASTATINA 20 MG - 60 COMP.2 
9ABAfeb. 2023NIFEDIPINA 20 MG - 60 COMP.5 
10MonthMonthABAfeb. 2023SINVASTATINA 40 MG - 60 COMP.2 
11jan. 2023feb. 2023ABAfeb. 2023ROSUVASTATINA + EZETIMIBA 20 + 10 mg 604 
12ABAjan. 2023SERTRALINA 50 MG - 60 COMP.24 
13RESULTS OF CRITERIA TABLE ABOVERESULTS OF CRITERIA TABLE ABOVEABAjan. 2023SERTRALINA 100 MG - 60 COMP.20 
14Product NameSum UnitsProduct NameSum UnitsABAfeb. 2023ROSUVASTATINA + EZETIMIBA 20 + 10 mg 6016 
15SINVASTATINA 20 MG - 60 COMP.161ESPIRONOLACTONA 100 MG - 60 COMP.CNYfeb. 2023RAMIPRIL 2,5 MG - 56 CAPS.2 
16SINVASTATINA 20 MG - 60 COMP.161CNYfeb. 2023RAMIPRIL 5 MG - 56 CAPS.6 
17AMLODIPINA 10 mg - 60 ComCNYfeb. 2023RAMIPRIL 10 MG - 56 CAPS.6 
18PRAVASTATINA 20 MG - 60 COMP.CNYfeb. 2023RAMIPRIL + HCTZ 5 MG/25 MG - 56 COMP.1 
19NIFEDIPINA 20 MG - 60 COMP.CNYfeb. 2023OLANZAPINA 2,5X28 MG4 
20SINVASTATINA 40 MG - 60 COMP.CNYjan. 2023PANTOPRAZOL 20 MG - 56 COMP.GASTRO-RESIST.2 
21ROSUVASTATINA + EZETIMIBA 20 + 10 mg 60CNYfeb. 2023AMLOD+OLME+HCTZ 5 MG +20 MG +12,5 MG 5669 
22SERTRALINA 50 MG - 60 COMP.CNYjan. 2023MONTELUCASTE 10MG 28COMP2 
23SERTRALINA 100 MG - 60 COMP.CNYfeb. 2023AMLOD+OLME+HCTZ 5 MG +20 MG +12,5 MG 561 
24RAMIPRIL 2,5 MG - 56 CAPS.CNYfeb. 2023PANTOPRAZOL 40 MG - 56 COMP.GASTRO-RESIST2 
25RAMIPRIL 5 MG - 56 CAPS.CNYjan. 2023EBASTINA 10MG-20 COMP6 
26RAMIPRIL 10 MG - 56 CAPS.DILfeb. 2023QUETIAPINA 25MG 20 COMP12 
27RAMIPRIL + HCTZ 5 MG/25 MG - 56 COMP.DILfeb. 2023MONTELUCASTE 10MG 28COMP2 
28OLANZAPINA 2,5X28 MGDILfeb. 2023ESPIRONOLACTONA 25 MG - 60 COMP.20 
29PANTOPRAZOL 20 MG - 56 COMP.GASTRO-RESIST.DILfeb. 2023METFORMINA + VILDAGLIPTINA 1000 + 50 mg 604 
30AMLOD+OLME+HCTZ 5 MG +20 MG +12,5 MG 56DILjan. 2023CLOPIDOGREL GENERICOS 75MG 28C50 
31MONTELUCASTE 10MG 28COMPDILfeb. 2023IRBESARTAN+HCTZ 150 12,5 28MG4 
32PANTOPRAZOL 40 MG - 56 COMP.GASTRO-RESISTDILjan. 2023IRBESARTAN+HCTZ 300 12,5 28MG2 
33EBASTINA 10MG-20 COMPDILfeb. 2023METFORMINA + VILDAGLIPTINA 1000 + 50 mg 603 
34QUETIAPINA 25MG 20 COMP
35ESPIRONOLACTONA 25 MG - 60 COMP.
36METFORMINA + VILDAGLIPTINA 1000 + 50 mg 60
37CLOPIDOGREL GENERICOS 75MG 28C
38IRBESARTAN+HCTZ 150 12,5 28MG
39IRBESARTAN+HCTZ 300 12,5 28MG
Sheet2 (3)
Cell Formulas
RangeFormula
F4:F6F4=SORT(UNIQUE(H4:H33))
G4:G5G4=SORT(UNIQUE(I4:I33),,-1)
B15:C15B15=UNIQUE(CHOOSECOLS(FILTER(J4:L100,L4:L100<>"",{"";"";""}),1,3))
E15:F39E15=UNIQUE(CHOOSECOLS(FILTER(J4:L100,K4:K100<>"",{"";"";""}),1,3))
L4:L33L4=IF(AND(H4=B$4,I4=B$11,COUNT(SEARCH(FILTER(C$4:C$6,C$4:C$6<>""),J4))),SUMIFS(K$4:K$100,H$4:H$100,H4,I$4:I$100,I4,J$4:J$100,J4),"")
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
B11,E11List=$G$4:$G$5
B4List=$F$4:$F$6
B5List=$G$4:$G$12
 
Upvote 0
Not sure what the ask is, but here's one view of what your initial post could be:
Book1
ABCDEFGHIJK
1CRITERIADATA BASE
2Customer NameMonthProduct Name AbbreviationUNIQUE CUSTOMERSUNIQUE MONTHSCustomer NameMonthProduct NameUnits
3CNYFeb 2023Rosuva+EzetABAJan 2023ABAFeb 2023ESPIRONOLACTONA 100 MG - 60 COMP.1
4Amlod+Olmes+HctzCNYFeb 2023ABAFeb 2023SINVASTATINA 20 MG - 60 COMP.80
5Metform+VildaDILABAFeb 2023AMLODIPINA 10 mg - 60 Com20
6ABAJan 2023PRAVASTATINA 20 MG - 60 COMP.2
7ABAFeb 2023NIFEDIPINA 20 MG - 60 COMP.5
8ABAFeb 2023SINVASTATINA 40 MG - 60 COMP.2
9ABAFeb 2023ROSUVASTATINA + EZETIMIBA 20 + 10 mg 604
10ABAJan 2023SERTRALINA 50 MG - 60 COMP.24
11ABAJan 2023SERTRALINA 100 MG - 60 COMP.20
12ABAFeb 2023ROSUVASTATINA + EZETIMIBA 20 + 10 mg 6016
13CNYFeb 2023RAMIPRIL 2,5 MG - 56 CAPS.2
14RESULTS OF CRITERIA TABLE ABOVECNYFeb 2023RAMIPRIL 5 MG - 56 CAPS.6
15Product NameSum UnitsCNYFeb 2023RAMIPRIL 10 MG - 56 CAPS.6
16AMLOD+OLME+HCTZ 5 MG +20 MG +12,5 MG 5670CNYFeb 2023RAMIPRIL + HCTZ 5 MG/25 MG - 56 COMP.1
17AMLODIPINA 10 mg - 60 Com20CNYFeb 2023OLANZAPINA 2,5X28 MG4
18CLOPIDOGREL GENERICOS 75MG 28C50CNYJan 2023PANTOPRAZOL 20 MG - 56 COMP.GASTRO-RESIST.2
19EBASTINA 10MG-20 COMP6CNYFeb 2023AMLOD+OLME+HCTZ 5 MG +20 MG +12,5 MG 5669
20ESPIRONOLACTONA 100 MG - 60 COMP.1CNYJan 2023MONTELUCASTE 10MG 28COMP2
21ESPIRONOLACTONA 25 MG - 60 COMP.20CNYFeb 2023AMLOD+OLME+HCTZ 5 MG +20 MG +12,5 MG 561
22IRBESARTAN+HCTZ 150 12,5 28MG4CNYFeb 2023PANTOPRAZOL 40 MG - 56 COMP.GASTRO-RESIST2
23IRBESARTAN+HCTZ 300 12,5 28MG2CNYJan 2023EBASTINA 10MG-20 COMP6
24METFORMINA + VILDAGLIPTINA 1000 + 50 mg 607DILFeb 2023QUETIAPINA 25MG 20 COMP12
25MONTELUCASTE 10MG 28COMP4DILFeb 2023MONTELUCASTE 10MG 28COMP2
26NIFEDIPINA 20 MG - 60 COMP.5DILFeb 2023ESPIRONOLACTONA 25 MG - 60 COMP.20
27OLANZAPINA 2,5X28 MG4DILFeb 2023METFORMINA + VILDAGLIPTINA 1000 + 50 mg 604
28PANTOPRAZOL 20 MG - 56 COMP.GASTRO-RESIST.2DILJan 2023CLOPIDOGREL GENERICOS 75MG 28C50
29PANTOPRAZOL 40 MG - 56 COMP.GASTRO-RESIST2DILFeb 2023IRBESARTAN+HCTZ 150 12,5 28MG4
30PRAVASTATINA 20 MG - 60 COMP.2DILJan 2023IRBESARTAN+HCTZ 300 12,5 28MG2
31QUETIAPINA 25MG 20 COMP12DILFeb 2023METFORMINA + VILDAGLIPTINA 1000 + 50 mg 603
32RAMIPRIL + HCTZ 5 MG/25 MG - 56 COMP.1
33RAMIPRIL 10 MG - 56 CAPS.6
34RAMIPRIL 2,5 MG - 56 CAPS.2
35RAMIPRIL 5 MG - 56 CAPS.6
36ROSUVASTATINA + EZETIMIBA 20 + 10 mg 6020
37SERTRALINA 100 MG - 60 COMP.20
38SERTRALINA 50 MG - 60 COMP.24
39SINVASTATINA 20 MG - 60 COMP.80
40SINVASTATINA 40 MG - 60 COMP.2
Sheet1
Cell Formulas
RangeFormula
E3:E5,F3:F4E3=SORT(UNIQUE(H3:H31))
A16:A40A16=SORT(UNIQUE(J3:J31))
B16:B40B16=SUMIFS(K3:K31,J3:J31,A16#)
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
A3:A10List=$E$3#
B3:B10List=$F$3#

Things that were changed:
1: NEVER use Merge & Center. It screws up the Worksheet structure. Use Center Across Selection in the Alignment tab instead.
2. Use Numbers instead of Text. Granted, you can't get jan 2023 from 1/1/2023, but using numbers makes things so much easier, and you can still get Jan 2023. While it might be easier to say "=jan 2023" instead of between 1/1/2023 and EOMONTH(cellwithdatevalueI,0),typos are more likely - Jan 2023 <> jan 2023.
3. Give some space to different elements like the narrow grey columns above, and delineate ranges that are using Data Validation (with borders) so one knows where the DV ends.
4. If I were doing this, I'd be using Tables rather than flat ranges. I assume that March 2023 will be coming soon!
And yes, the above starts at A1 rather than B2.
 
Upvote 0
Hello @jdellasala

Through data in criteria Customer Name (cell B4) + Month (cell C4) + Product Name Abbreviation (cell D4) the goal is to filter Table DATA BASE (H4:K4) and to sum units accordingly and specifically if they match.
Just made some improvements in formula maybe you can complete it.
Please let me know if you understand it.
Thank you very much.

Search by Name_2.xlsm
BCDEFGHIJK
1
2CRITERIADATA BASE
3Customer NameProduct Name AbbreviationEXCLUSIVES CUSTOMERSEXCLUSIVES MONTHCustomer NameMonthProduct NameUnits
4ABAsinvaABAjan. 2023ABAfeb. 2023ESPIRONOLACTONA 100 MG - 60 COMP.1
5CNYfeb. 2023ABAjan. 2023SINVASTATINA 20 MG - 60 COMP.80
6DILABAjan. 2023SINVASTATINA 20 MG - 60 COMP.81
7ABAfeb. 2023AMLODIPINA 10 mg - 60 Com20
8ABAjan. 2023PRAVASTATINA 20 MG - 60 COMP.2
9ABAfeb. 2023NIFEDIPINA 20 MG - 60 COMP.5
10MonthMonthABAfeb. 2023SINVASTATINA 40 MG - 60 COMP.2
11jan. 2023feb. 2023ABAfeb. 2023ROSUVASTATINA + EZETIMIBA 20 + 10 mg 604
12ABAjan. 2023SERTRALINA 50 MG - 60 COMP.24
13RESULTS OF CRITERIA TABLE ABOVERESULTS OF CRITERIA TABLE ABOVEABAjan. 2023SERTRALINA 100 MG - 60 COMP.20
14Product NameSum UnitsProduct NameSum UnitsABAfeb. 2023ROSUVASTATINA + EZETIMIBA 20 + 10 mg 6016
15#VALOR!CNYfeb. 2023RAMIPRIL 2,5 MG - 56 CAPS.2
16CNYfeb. 2023RAMIPRIL 5 MG - 56 CAPS.6
17CNYfeb. 2023RAMIPRIL 10 MG - 56 CAPS.6
18CNYfeb. 2023RAMIPRIL + HCTZ 5 MG/25 MG - 56 COMP.1
19CNYfeb. 2023OLANZAPINA 2,5X28 MG4
20CNYjan. 2023PANTOPRAZOL 20 MG - 56 COMP.GASTRO-RESIST.2
21CNYfeb. 2023AMLOD+OLME+HCTZ 5 MG +20 MG +12,5 MG 5669
22CNYjan. 2023MONTELUCASTE 10MG 28COMP2
23CNYfeb. 2023AMLOD+OLME+HCTZ 5 MG +20 MG +12,5 MG 561
24CNYfeb. 2023PANTOPRAZOL 40 MG - 56 COMP.GASTRO-RESIST2
25CNYjan. 2023EBASTINA 10MG-20 COMP6
26DILfeb. 2023QUETIAPINA 25MG 20 COMP12
27DILfeb. 2023MONTELUCASTE 10MG 28COMP2
28DILfeb. 2023ESPIRONOLACTONA 25 MG - 60 COMP.20
29DILfeb. 2023METFORMINA + VILDAGLIPTINA 1000 + 50 mg 604
30161DILjan. 2023CLOPIDOGREL GENERICOS 75MG 28C50
31DILfeb. 2023IRBESARTAN+HCTZ 150 12,5 28MG4
32DILjan. 2023IRBESARTAN+HCTZ 300 12,5 28MG2
33DILfeb. 2023METFORMINA + VILDAGLIPTINA 1000 + 50 mg 603
34
Sheet2 (4)
Cell Formulas
RangeFormula
F4:F6F4=SORT(UNIQUE(H4:H33))
G4:G5G4=SORT(UNIQUE(I4:I33),,-1)
B15B15=FILTER(J4:K32,(ISNUMBER(SEARCH("*"&C4,J4:J32)))*(H4:H33=B4)*(I4:I33=B11)*SUMIFS(K4:K33,H4:H33,B4,I4:I33,B11,J4:J33,C4&"*"))
E30E30=SUMIFS(K4:K33,H4:H33,B4,I4:I33,B11,J4:J33,C4&"*")
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
B4List=$F$4:$F$6
B5List=$G$4:$G$12
B11,E11List=$G$4:$G$5
 
Upvote 0
Hello Guys,

Can you please give a help?🙏👍👍
Thank you very much.
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,254
Members
452,624
Latest member
gregg777

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