Search multiple rows for a single result?

jgruberman

New Member
Joined
Jan 15, 2024
Messages
23
Office Version
  1. 365
Platform
  1. Windows
  2. Web
I am trying to compile some data for a game that has a vet simulator built into it. My goal is to select from a dropdown(like a data filter) a number of sick pet symptoms and return a single illness name. Here is a sample of data. In this example, I would select "Icy Fur", "Low Temperature", "Overly Moist Skin", and "Watery Eyes" separately and it would return "Frosty Fur Flu". However, if I were to select "Icy Fur" and "Low Temperature" only, then it would show "Frosty Fur Flu" and "Frozen Mange" since enough Minor Symptoms were not selected to determine the correct Sickness.

Honestly, I'm not even sure if this is possible with Excel but it seems like it could be... just with possibly an extensive amount of filtering?


SicknessMajor SymptomMinor SymptomsExam Table Cure
Derpy DoggyExtreme LethargyInflamed CutenessAntifungal Spray
Derpy DoggyExtreme LethargySluggish HeartbeatAntifungal Spray
Faking HealthynoneExcessive EarwaxFixitol Treat
Faking HealthynoneHigh temperatureFixitol Treat
FleasFleasNoneParasite Killer Spray
Frosty Fur FluIcy FurLow TemperatureEssence of Placebo
Frosty Fur FluIcy FurOverly Moist SkinEssence of Placebo
Frosty Fur FluIcy FurWatery EyesEssence of Placebo
Frozen MangeIcy FurExcessively Wet NoseOrganic Disinfectant Spray
Frozen MangeIcy FurLow TemperatureOrganic Disinfectant Spray
Frozen MangeIcy FurStinky FurOrganic Disinfectant Spray
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Try:
Book1
ABCDEFGHIJ
1SicknessMajor SymptomMinor SymptomsExam Table CureMajorMinor1Minor2Minor3Potential Sickness
2Derpy DoggyExtreme LethargyInflamed CutenessAntifungal SprayIcy FurFrosty Fur Flu
3Derpy DoggyExtreme LethargySluggish HeartbeatAntifungal SprayFrozen Mange
4Faking HealthynoneExcessive EarwaxFixitol Treat
5Faking HealthynoneHigh temperatureFixitol Treat
6FleasFleasNoneParasite Killer Spray
7Frosty Fur FluIcy FurLow TemperatureEssence of Placebo
8Frosty Fur FluIcy FurOverly Moist SkinEssence of Placebo
9Frosty Fur FluIcy FurWatery EyesEssence of Placebo
10Frozen MangeIcy FurExcessively Wet NoseOrganic Disinfectant Spray
11Frozen MangeIcy FurLow TemperatureOrganic Disinfectant Spray
12Frozen MangeIcy FurStinky FurOrganic Disinfectant Spray
Sheet10
Cell Formulas
RangeFormula
J2:J3J2=LET(g,GROUPBY(A2:B12,C2:C12,ARRAYTOTEXT,,0),FILTER(INDEX(g,,1),(INDEX(g,,2)=F2)*ISNUMBER(SEARCH(G2,INDEX(g,,3))*SEARCH(H2,INDEX(g,,3))*SEARCH(I2,INDEX(g,,3)))))
Dynamic array formulas.
 
Upvote 0
How about something like this?

Book1
ABCDEFGHI
1SicknessMajor SymptomMinor SymptomExam Table CureMinor Short ListMajor SymptomMinor Symptom
2Derpy DoggyExtreme LethargyInflamed CutenessAntifungal SprayLow TemperatureIcy FurStinky Fur
3Derpy DoggyExtreme LethargySluggish HeartbeatAntifungal SprayOverly Moist Skin
4Faking HealthyNoneExcessive EarwaxFixitol TreatWatery EyesSicknessExam Table Cure
5Faking HealthyNoneHigh TemperatureFixitol TreatExcessively Wet NoseFrozen MangeOrganic Disinfectant Spray
6FleasFleasNoneParasite Killer SprayLow Temperature
7Frosty Fur FluIcy FurLow TemperatureEssence of PaceboStinky Fur
8Frosty Fur FluIcy FurOverly Moist SkinEssence of Pacebo
9Frosty Fur FluIcy FurWatery EyesEssence of Pacebo
10Frozen MangeIcy FurExcessively Wet NoseOrganic Disinfectant Spray
11Frozen MangeIcy FurLow TemperatureOrganic Disinfectant Spray
12Frozen MangeIcy FurStinky FurOrganic Disinfectant Spray
Sheet2
Cell Formulas
RangeFormula
F2:F7F2=FILTER($C$2:$C$12,$B$2:$B$12=H2,"")
H5H5=FILTER($A$2:$A$12,IF(I2<>"",($B$2:$B$12=H2)*($C$2:$C$12=I2),($B$2:$B$12=H2)),"")
I5I5=FILTER($D$2:$D$12,IF(I2<>"",($B$2:$B$12=H2)*($C$2:$C$12=I2),($B$2:$B$12=H2)),"")
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
H2List=$B$2:$B$12
I2List=$F$2#
 
Upvote 0
I would select "Icy Fur", "Low Temperature", "Overly Moist Skin", and "Watery Eyes" separately and it would return "Frosty Fur Flu"
@Jeffrey Mahoney
Based on the OP, they should be able to select up to 3 minor symptoms.
 
Upvote 0
I'm going to take some time and look at both of these and let you know. I did reformat the data to what I think would be a bit easier to work with, so I'm going to figure how to translate those formulas to the new data. I'm not sure if this works easier or not.

SicknessSymptom 1Symptom 2Symptom 3Symptom 4Symptom 5Exam Table CureSurgical Cure
Derpy DoggyExtreme LethargyInflamed CutenessSluggish HeartbeatAntifungal SprayRefill Nose
Faking HealthynoneExcessive EarwaxHigh TemperatureFixitol TreatExtract Excess Cuteness
FleasFleasParasite Killer SprayUnblock Chute
Frosty Fur FluIcy FurLow TemperatureOverly Moist SkinWatery EyesEssence of PlaceboUnblock Kibble Chute Blockage
Frozen MangeIcy FurExcessively Wet NoseLow TemperatureStinky FurOrganic Disinfectant SprayRefill Nose
Gilded Guts DisorderGolden PoopOverly Moist SkinRapid HeartbeatWatery EyesEssence of PlaceboTum Tum Readjustment
 
Upvote 0
With the new layout, try
Book1
ABCDEFGH
1SicknessSymptom 1Symptom 2Symptom 3Symptom 4Symptom 5Exam Table CureSurgical Cure
2Derpy DoggyExtreme LethargyInflamed CutenessSluggish HeartbeatAntifungal SprayRefill Nose
3Faking HealthynoneExcessive EarwaxHigh TemperatureFixitol TreatExtract Excess Cuteness
4FleasFleasParasite Killer SprayUnblock Chute
5Frosty Fur FluIcy FurLow TemperatureOverly Moist SkinWatery EyesEssence of PlaceboUnblock Kibble Chute Blockage
6Frozen MangeIcy FurExcessively Wet NoseLow TemperatureStinky FurOrganic Disinfectant SprayRefill Nose
7Gilded Guts DisorderGolden PoopOverly Moist SkinRapid HeartbeatWatery EyesEssence of PlaceboTum Tum Readjustment
8
9Symptom 1Symptom 2Symptom 3Symptom 4Symptom 5Sickness
10watery eyesoverly moist skingolden poopGilded Guts Disorder
Sheet12
Cell Formulas
RangeFormula
F10F10=FILTER(A2:A7,ISNUMBER(BYROW(DROP(REDUCE("",A10:E10,LAMBDA(a,b,HSTACK(a,SEARCH(b,BYROW(B2:F7,ARRAYTOTEXT))))),,1),PRODUCT)),"")
 
Upvote 0
With the new layout, try
Book1
ABCDEFGH
1SicknessSymptom 1Symptom 2Symptom 3Symptom 4Symptom 5Exam Table CureSurgical Cure
2Derpy DoggyExtreme LethargyInflamed CutenessSluggish HeartbeatAntifungal SprayRefill Nose
3Faking HealthynoneExcessive EarwaxHigh TemperatureFixitol TreatExtract Excess Cuteness
4FleasFleasParasite Killer SprayUnblock Chute
5Frosty Fur FluIcy FurLow TemperatureOverly Moist SkinWatery EyesEssence of PlaceboUnblock Kibble Chute Blockage
6Frozen MangeIcy FurExcessively Wet NoseLow TemperatureStinky FurOrganic Disinfectant SprayRefill Nose
7Gilded Guts DisorderGolden PoopOverly Moist SkinRapid HeartbeatWatery EyesEssence of PlaceboTum Tum Readjustment
8
9Symptom 1Symptom 2Symptom 3Symptom 4Symptom 5Sickness
10watery eyesoverly moist skingolden poopGilded Guts Disorder
Sheet12
Cell Formulas
RangeFormula
F10F10=FILTER(A2:A7,ISNUMBER(BYROW(DROP(REDUCE("",A10:E10,LAMBDA(a,b,HSTACK(a,SEARCH(b,BYROW(B2:F7,ARRAYTOTEXT))))),,1),PRODUCT)),"")
This is definitely the direction I'm going for... is there some sort of way to choose an option from Column B and it only show me the applicable options in Column C and later, or is it at that point just using filtering options from the top? I guess the way that I originally envisioned it is a pick list similar to the below screenshot and based on selections, it spit out the return options:
1733787882580.png
 
Upvote 0
I was able to follow this link to be able to get multiple selections in a single dropdown, but maybe it's possible to parse the values into a search across the array of symptoms?
1733791124744.png
 
Upvote 0
There are many resources on "dependent drop down lists". That's a different question than the one you asked in this thread. Please start a new thread for a new question. Once you have the drop down list figured out, replace the references with the drop down selection in the formula provided above.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,176
Members
453,021
Latest member
Justyna P

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