Search from multiple outcomes and convert.

Davebro

Board Regular
Joined
Feb 22, 2018
Messages
135
Office Version
  1. 365
  2. 2021
  3. 2016
Platform
  1. Windows
I have football matches in Col. A. Predictions in Col.B. In Col. C i need the prediction (B) to be converted to possible outcomes.
I have been using IF(SEARCH whch has worked well if only two choices H or A but now there are multiple choices I am somewhat lost how to comvert them all.
This is useful for analysis later.

TeamsPrediction
Mongolia v LebanonThe DrawDPossible Outcomes
Japan v El SalvadorOver 2.5 GoalsO 2.5Col BH
Greece v Republic of IrelandRepublic of IrelandAThe DrawD
Poland v GermanyUnder 2.5 GoalsU 2.5Col BA
Azerbaijan v EstoniaEstoniaAUnder 0.5 GoalsU .5
Norway v ScotlandOver 1.5 GoalsO 1.5Over 0.5 GoalsO .5
Portugal v BosniaPortugalHUnder 1.5 GoalsU 1.5
Sport Recife v Vila NovaVila NovaAOver 1.5 GoalsO 1.5
Armenia v LatviaUnder 1.5 GoalsU 1.5Under 2.5 GoalsU 2.5
Over 2.5 GoalsO 2.5
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
How about
Fluff.xlsm
ABCDEFG
1TeamsPrediction
2Mongolia v LebanonThe DrawDDPossible Outcomes
3Japan v El SalvadorOver 2.5 GoalsO 2.5O 2.5Col BH
4Greece v Republic of IrelandRepublic of IrelandAAThe DrawD
5Poland v GermanyUnder 2.5 GoalsU 2.5U 2.5Col BA
6Azerbaijan v EstoniaEstoniaAAUnder 0.5 GoalsU .5
7Norway v ScotlandOver 1.5 GoalsO 1.5O 1.5Over 0.5 GoalsO .5
8Portugal v BosniaPortugalHHUnder 1.5 GoalsU 1.5
9Sport Recife v Vila NovaVila NovaAAOver 1.5 GoalsO 1.5
10Armenia v LatviaUnder 1.5 GoalsU 1.5U 1.5Under 2.5 GoalsU 2.5
11Over 2.5 GoalsO 2.5
Master
Cell Formulas
RangeFormula
D2:D10D2=IFNA(INDEX($G$3:$G$11,MATCH(B2,$F$3:$F$11,0)),IF(SEARCH(B2,A2)=1,"H","A"))
 
Upvote 1
Solution
How about
Fluff.xlsm
ABCDEFG
1TeamsPrediction
2Mongolia v LebanonThe DrawDDPossible Outcomes
3Japan v El SalvadorOver 2.5 GoalsO 2.5O 2.5Col BH
4Greece v Republic of IrelandRepublic of IrelandAAThe DrawD
5Poland v GermanyUnder 2.5 GoalsU 2.5U 2.5Col BA
6Azerbaijan v EstoniaEstoniaAAUnder 0.5 GoalsU .5
7Norway v ScotlandOver 1.5 GoalsO 1.5O 1.5Over 0.5 GoalsO .5
8Portugal v BosniaPortugalHHUnder 1.5 GoalsU 1.5
9Sport Recife v Vila NovaVila NovaAAOver 1.5 GoalsO 1.5
10Armenia v LatviaUnder 1.5 GoalsU 1.5U 1.5Under 2.5 GoalsU 2.5
11Over 2.5 GoalsO 2.5
Master
Cell Formulas
RangeFormula
D2:D10D2=IFNA(INDEX($G$3:$G$11,MATCH(B2,$F$3:$F$11,0)),IF(SEARCH(B2,A2)=1,"H","A"))
Many thanks again, perfect, just I was looking for.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,208
Members
452,618
Latest member
Tam84

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