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
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Does this example help?

Use SORT and FILTER together to sort a range in ascending order, and limit it to values over 5,000.

Use SORT and FILTER together to sort a range in ascending order, and limit it to values over 5,000.

 
Upvote 0
I think the VBA code that @DanteAmor gave you is the way to go if it worked.
The following seems to work if you can change the way you enter the Product Name Abb. and can add a helper column.

Book1
ABCDEFGHIJKL
1
2CRITERIADATA BASE
3Customer NameMonthProduct Name AbbreviationEXCLUSIVES CUSTOMERSEXCLUSIVES MONTHCustomer NameMonthProduct NameUnitsHelper
4ABAfeb. 2023ROSUVASTATINA + EZETIMIBAABAjan. 2023ABAfeb. 2023ESPIRONOLACTONA 100 MG - 60 COMP.10
5AMLOD+OLME+HCTZCNYfeb. 2023ABAfeb. 2023SINVASTATINA 20 MG - 60 COMP.800
6METFORMINA + VILDAGLIPTINADILABAfeb. 2023AMLODIPINA 10 mg - 60 Com200
7SERTRALINAABAjan. 2023PRAVASTATINA 20 MG - 60 COMP.20
8ABAfeb. 2023AMLOD+OLME+HCTZ 5 MG +20 MG +12,5 MG 565AMLOD+OLME+HCTZ
9ABAfeb. 2023SINVASTATINA 40 MG - 60 COMP.20
10ABAfeb. 2023ROSUVASTATINA + EZETIMIBA 20 + 10 mg 604ROSUVASTATINA + EZETIMIBA
11ABAfeb. 2023SERTRALINA 50 MG - 60 COMP.24SERTRALINA
12ABAfeb. 2023SERTRALINA 100 MG - 60 COMP.20SERTRALINA
13ABAfeb. 2023ROSUVASTATINA + EZETIMIBA 20 + 10 mg 6016ROSUVASTATINA + EZETIMIBA
14CNYfeb. 2023RAMIPRIL 2,5 MG - 56 CAPS.20
15RESULTS OF CRITERIA TABLE ABOVECNYfeb. 2023RAMIPRIL 5 MG - 56 CAPS.60
16Product NameSum UnitsCNYfeb. 2023RAMIPRIL 10 MG - 56 CAPS.60
17AMLOD+OLME+HCTZ 5 MG +20 MG +12,5 MG 565CNYfeb. 2023RAMIPRIL + HCTZ 5 MG/25 MG - 56 COMP.10
18ROSUVASTATINA + EZETIMIBA 20 + 10 mg 6020CNYfeb. 2023OLANZAPINA 2,5X28 MG40
19SERTRALINA 50 MG - 60 COMP.24CNYjan. 2023PANTOPRAZOL 20 MG - 56 COMP.GASTRO-RESIST.20
20SERTRALINA 100 MG - 60 COMP.20CNYfeb. 2023AMLOD+OLME+HCTZ 5 MG +20 MG +12,5 MG 56690
21 CNYjan. 2023MONTELUCASTE 10MG 28COMP20
22CNYfeb. 2023AMLOD+OLME+HCTZ 5 MG +20 MG +12,5 MG 5610
23CNYfeb. 2023PANTOPRAZOL 40 MG - 56 COMP.GASTRO-RESIST20
24CNYjan. 2023EBASTINA 10MG-20 COMP60
25DILfeb. 2023QUETIAPINA 25MG 20 COMP120
26DILfeb. 2023MONTELUCASTE 10MG 28COMP20
27DILfeb. 2023AMLOD+OLME+HCTZ 5 MG +20 MG +12,5 MG 56200
28DILfeb. 2023METFORMINA + VILDAGLIPTINA 1000 + 50 mg 6040
29DILjan. 2023CLOPIDOGREL GENERICOS 75MG 28C500
30DILfeb. 2023IRBESARTAN+HCTZ 150 12,5 28MG40
31DILjan. 2023IRBESARTAN+HCTZ 300 12,5 28MG20
32DILfeb. 2023METFORMINA + VILDAGLIPTINA 1000 + 50 mg 6030
Sheet2
Cell Formulas
RangeFormula
F4:F6F4=SORT(UNIQUE(H4:H32))
G4:G5G4=SORT(UNIQUE(I4:I32),,-1)
B17:B20B17=UNIQUE(FILTER($J$4:$J$32,($I$4:$I$32=$C$4)*($H$4:$H$32=$B$4)*($L$4:$L$32<>0),""))
C17:C20C17=IF(B17#="","",SUMIFS($K$4:$K$32,$J$4:$J$32,B17#,$H$4:$H$32,$B$4))
C21C21=IF(B21="","",SUMIFS($K$4:$K$32,$J$4:$J$32,B21,$H$4:$H$32,$B$4))
L4:L32L4=IF(H4=$B$4,INDEX($D$4:$D$8,MATCH(1,COUNTIF(J4,"*"&$D$4:$D$8&"*"),0)),0)
Dynamic array formulas.
 
Upvote 1
It is not clear to me exactly what you want. Can you manually fill in the expected results, post XL2BB again and explain in more detail in relation to those expected results?
 
Upvote 0
It is not clear to me exactly what you want. Can you manually fill in the expected results, post XL2BB again and explain in more detail in relation to those expected results?

Dear @Peter_SSs
Hope you are fine my friend. 👍🍻
Always a pleasure to see that you are still here helping.đź’Ş
As you asked here with expected results accordingly criteria.
Any more information please fell free to ask.
Thank you very much.
Big hug.
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
17AMLOD+OLME+HCTZ 5 MG +20 MG +12,5 MG 5670CNYfeb. 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
 
Upvote 0
Did @AhoyNC's suggestion work for you?

I can't see how you got that expected result from your sample data so perhaps I am not understanding correctly. I thought that for a row to be included, at least one of the texts from column D needed to be found in column J. None of the texts in D4:D6 in your sample are found in those two green cells. Or is cell D5 a typo and it should be Amlod+Olme+Hctz not Amlod+Olmes+Hctz
I have assumed that was a typo and my suggestion also involves a helper column so is not too unlike @AhoyNC's suggestion.

Lacan.xlsm
BCDEFGHIJKL
2CRITERIADATA BASE
3Customer NameMonthProduct Name AbbreviationEXCLUSIVES CUSTOMERSEXCLUSIVES MONTHCustomer NameMonthProduct NameUnits
4CNYfeb. 2023Rosuva+EzetABAjan. 2023ABAfeb. 2023ESPIRONOLACTONA 100 MG - 60 COMP.1 
5Amlod+Olme+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 
17AMLOD+OLME+HCTZ 5 MG +20 MG +12,5 MG 5670CNYfeb. 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 566970
21CNYjan. 2023MONTELUCASTE 10MG 28COMP2 
22CNYfeb. 2023AMLOD+OLME+HCTZ 5 MG +20 MG +12,5 MG 56170
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)
B17:C17B17=UNIQUE(CHOOSECOLS(FILTER(J4:L100,L4:L100<>"",{"","",""}),1,3))
L4:L32L4=IF(AND(H4=B$4,I4=C$4,COUNT(SEARCH(FILTER(D$4:D$12,D$4:D$12<>""),J4))),SUMIFS(K$4:K$100,H$4:H$100,H4,I$4:I$100,I4,J$4:J$100,J4),"")
Dynamic array formulas.
 
Upvote 0
Dear @Peter_SSs

You are correct it is Amlod+Olme+Hctz not Amlod+Olmes+Hctz.
Just made that correction in all sheet.
Should it help to clarify the goal?
Thanks again pal.

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+Olme+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
17AMLOD+OLME+HCTZ 5 MG +20 MG +12,5 MG 5670CNYfeb. 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
 
Upvote 0
Dear @Peter_SSs
Please let my clarify because think this example maybe help other guys also with similar questions.

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.
In table RESULTS OF CRITERIA TABLE ABOVE (B11:C11) is a simple example of the end results from excel formula applied in the previous phrase.
To be more simple and noticeable just made a few ajustmens in all sheet.
Thanks for the help.
Search by Name_2.xlsm
BCDEFGHIJK
2CRITERIADATA BASE
3Customer NameMonthProduct Name AbbreviationEXCLUSIVES CUSTOMERSEXCLUSIVES MONTHCustomer NameMonthProduct NameUnits
4CNYfeb. 2023Amlod+Olme+HctzABAjan. 2023ABAfeb. 2023ESPIRONOLACTONA 100 MG - 60 COMP.1
5CNYfeb. 2023ABAfeb. 2023SINVASTATINA 20 MG - 60 COMP.80
6DILABAfeb. 2023AMLODIPINA 10 mg - 60 Com20
7ABAjan. 2023PRAVASTATINA 20 MG - 60 COMP.2
8ABAfeb. 2023NIFEDIPINA 20 MG - 60 COMP.5
9RESULTS OF CRITERIA TABLE ABOVEStill very very incomplete the formula below maybe could help for the correct oneABAfeb. 2023SINVASTATINA 40 MG - 60 COMP.2
10Product NameSum UnitsAMLOD+OLME+HCTZ 5 MG +20 MG +12,5 MG 5669ABAfeb. 2023ROSUVASTATINA + EZETIMIBA 20 + 10 mg 604
11AMLOD+OLME+HCTZ 5 MG +20 MG +12,5 MG 5670AMLOD+OLME+HCTZ 5 MG +20 MG +12,5 MG 561ABAjan. 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
15CNYfeb. 2023RAMIPRIL 5 MG - 56 CAPS.6
16CNYfeb. 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
Sheet2 (2)
Cell Formulas
RangeFormula
F4:F6F4=SORT(UNIQUE(H4:H32))
G4:G5G4=SORT(UNIQUE(I4:I32),,-1)
D10:E11D10=FILTER(J4:K32,ISNUMBER(SEARCH("*"&D4,J4:J32)))
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
B5List=$G$4:$G$12
B4List=$F$4:$F$6
C4List=$G$4:$G$5
 
Upvote 0
As far as I can see, that is exactly what the suggestion in post #6 does. In what way does that method give the wrong answer?
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,252
Members
452,623
Latest member
Techenthusiast

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