Combining Index, small, if, row

Translationguy

New Member
Joined
Nov 4, 2016
Messages
26
Hi All

I'm running into a bit of an issue I can't work out, granted I have a horrible cold right now...

I have this formula to find content in a sheet called "Test", it works perfectly until later (G94):
=INDEX(Test!F:F,SMALL(IF($AX$92=Test!E:E,IF(A150=Test!B:B,ROW(Test!E:E)-ROW(Test!E1))+1),2))

What I want it to do/does is, search the Test sheet for:
  • English keyword in E
  • "Portugal - BGP" in B
  • When there's a match, return the result from column F (other languages' keywords)
    • In this instance, skip the first result and instead give me the 2nd result

This is working fine, until I start adding more languages underneath. Once I add the Spanish keywords, it no longer functions correctly. My mind is a bit foggy right now, but I can't understand why it works until more content is added under.

ANy help would be massively appreciated!

mrexcel.xlsx
ABCDEFGH
90General informationKeywordsKeywords
91CountryColumn1Column2Keyword 1Search Vol.Keyword 2Ref to keyword 1Search Vol.
921. MASTERPressure boosterNo Search Vol.water pressure booster systemNo Search Vol.
93Spain - BGEelevador de presión10sistema de aumento de la presión del agua0#N/A
94Portugal - BGPpressurizador de água140sistema de reforço de pressão de água0#N/A
Boosting
Cell Formulas
RangeFormula
E92,H92E92=IFERROR(VLOOKUP(D92,#REF!,3,FALSE),"No Search Vol.")
D93D93=INDEX(Test!A:H,MATCH(Boosting!D92&A93,Test!E:E&Test!B:B,0),6)
E93:E94E93=VLOOKUP(Boosting!D93,Test!F:G,2,FALSE)
F93F93=INDEX(Test!A:H,MATCH(Boosting!F92&A93,Test!E:E&Test!B:B,0),6)
G93G93=INDEX(Test!F:F,SMALL(IF(Test!E:E=$D$92,IF(A94=Test!B:B,ROW(Test!E:E)-ROW(Test!E1))+1),2))
H93:H94H93=VLOOKUP(Boosting!G93,Test!F:G,2,FALSE)
D94D94=INDEX(Test!A:H,MATCH(Boosting!D92&A94,Test!E:E&Test!B:B,0),6)
F94F94=INDEX(Test!A:H,MATCH(Boosting!F92&A94,Test!E:E&Test!B:B,0),6)
G94G94=INDEX(Test!F:F,SMALL(IF((Test!E:E=$D$92),IF(A94=Test!B:B,ROW(Test!E:E)-ROW(Test!E1))+1),2))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
F92Expression=F89="WU "textNO
F92Expression=F89="CBS"textNO
F92Expression=F89="IND"textNO
F92Expression=F89="n/a"textNO
F92Expression=F89="General"textNO
F92Expression=F89="DBS"textNO
D92Expression=D89="WU "textNO
D92Expression=D89="CBS"textNO
D92Expression=D89="IND"textNO
D92Expression=D89="n/a"textNO
D92Expression=D89="General"textNO
D92Expression=D89="DBS"textNO
G93:G94,I93:I94,AA93:AA94,AC93:AC94,AU93:AU94,AW93:AW94Expression=#REF!="WU "textNO
G93:G94,I93:I94,AA93:AA94,AC93:AC94,AU93:AU94,AW93:AW94Expression=#REF!="CBS"textNO
G93:G94,I93:I94,AA93:AA94,AC93:AC94,AU93:AU94,AW93:AW94Expression=#REF!="IND"textNO
G93:G94,I93:I94,AA93:AA94,AC93:AC94,AU93:AU94,AW93:AW94Expression=#REF!="n/a"textNO
G93:G94,I93:I94,AA93:AA94,AC93:AC94,AU93:AU94,AW93:AW94Expression=#REF!="General"textNO
G93:G94,I93:I94,AA93:AA94,AC93:AC94,AU93:AU94,AW93:AW94Expression=#REF!="DBS"textNO
Cells with Data Validation
CellAllowCriteria
C93:C94List=Data!$A$1:$A$4


mrexcel.xlsx
ABCDEFGH
13IndexLanguageGroupCategorySeed KeywordsLANGUAGE KeywordsSVEN Translation
14286Portugal - BGP112BoostingPressure boosterpressurizador de água140pressure booster
15287Portugal - BGP112BoostingPressure boosterpressurizador para torneira10faucet pressure booster
16288Portugal - BGP112BoostingPressure boosterpressurizador de água para chuveiro10shower water pressure booster
17289Portugal - BGP112BoostingPressure boosterpressurizador de água residencial10residential water pressure booster
18290Portugal - BGP113Boostingwater pressure booster systemsistema de reforço de pressão de água0water pressure booster system
19291Portugal - BGP113Boostingwater pressure booster systemsistema de pressurização de água10water pressure system
20292Portugal - BGP113Boostingwater pressure booster systemsistema de pressurização de água residencial70residential water pressure system
21293Portugal - BGP113Boostingwater pressure booster systemsistema de pressurização de água industrial10industrial water pressure system
22945Spain - BGEBoostingPressure boosterelevador de presión10pressure booster set
23946Spain - BGEBoostingPressure boosterPressure booster20pressure booster
24947Spain - BGEBoostingPressure boosterelevador de presion de agua10water pressure booster
25948Spain - BGEBoostingwater pressure booster systemsistema de aumento de la presión del agua0water pressure booster system
26949Spain - BGEBoostingwater pressure booster systemsistema para aumentar presion de agua10water pressure booster set
27950Spain - BGEBoostingwater pressure booster systemaparato para aumentar la presion del agua10water pressure booster
Test
Cell Formulas
RangeFormula
E15:E17,D26:E27,D23:E24,E19:E21E15=E14
Cells with Conditional Formatting
CellConditionCell FormatStop If True
F28:F1048576,F1:F21Cell ValueduplicatestextNO
F13:F21Cell ValueduplicatestextNO
F14:F21Cell ValueduplicatestextNO
F14:F21Cell ValueduplicatestextNO
F14:F21Cell ValueduplicatestextNO
F14:F21Cell ValueduplicatestextNO
F14:F21Cell ValueduplicatestextNO
F14:F21Cell ValueduplicatestextNO
F22:F27Cell ValueduplicatestextNO
F22:F27Cell ValueduplicatestextNO
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
You have G93: =INDEX(Test!F:F,SMALL(IF(Test!E:E=$D$92,IF(A94=Test!B:B,ROW(Test!E:E)-ROW(Test!E1))+1),2))

You need G93: =INDEX(Test!F:F,SMALL(IF(Test!E:E=$D$92,IF(A94=Test!B:B,ROW(Test!E:E)-ROW(Test!E1)+1)),2))
 
Upvote 0
Solution
You have G93: =INDEX(Test!F:F,SMALL(IF(Test!E:E=$D$92,IF(A94=Test!B:B,ROW(Test!E:E)-ROW(Test!E1))+1),2))

You need G93: =INDEX(Test!F:F,SMALL(IF(Test!E:E=$D$92,IF(A94=Test!B:B,ROW(Test!E:E)-ROW(Test!E1)+1)),2))
Many thanks for this, I confirm that it works!

I suspected it might be something simple, this cold really sucks!
 
Upvote 0

Forum statistics

Threads
1,223,230
Messages
6,170,883
Members
452,364
Latest member
springate

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