Welcome to the forums!
Another possibility:
Excel 2003<table style="border: 1px solid rgb(166, 170, 182); border-collapse: collapse; background-color: rgb(255, 255, 255);" rules="all" cellpadding="2"><colgroup><col style="background-color: rgb(224, 224, 240);" width="25"><col><col><col><col><col><col><col><col></colgroup><thead><tr style="color: rgb(22, 17, 32); background-color: rgb(224, 224, 240); text-align: center;"><th>
</th><th>A</th><th>B</th><th>C</th><th>D</th><th>E</th><th>F</th><th>G</th><th>H</th></tr></thead><tbody><tr><td style="color: rgb(22, 17, 32); text-align: center;">1</td><td style="border: 1px solid black; background-color: rgb(255, 255, 255);">Country 1</td><td style="border: 1px solid black; background-color: rgb(255, 255, 255); text-align: right;">3000</td><td style="border: 1px solid black; background-color: rgb(255, 255, 255); text-align: right;">4000</td><td style="border: 1px solid black; background-color: rgb(255, 255, 255);">CityX</td><td style="border: 1px solid black; background-color: rgb(255, 255, 255); text-align: right;">
</td><td style="border: 1px solid black; background-color: rgb(255, 255, 255);">Country 1</td><td style="border: 1px solid black; background-color: rgb(255, 255, 255); text-align: right;">5432</td><td style="border: 1px solid black; background-color: rgb(255, 255, 255);">CityZ</td></tr><tr><td style="color: rgb(22, 17, 32); text-align: center;">2</td><td style="border: 1px solid black; background-color: rgb(255, 255, 255);">Country 1</td><td style="border: 1px solid black; background-color: rgb(255, 255, 255); text-align: right;">4000</td><td style="border: 1px solid black; background-color: rgb(255, 255, 255); text-align: right;">5000</td><td style="border: 1px solid black; background-color: rgb(255, 255, 255);">CityY</td><td style="border: 1px solid black; background-color: rgb(255, 255, 255); text-align: right;">
</td><td style="border: 1px solid black; background-color: rgb(255, 255, 255); text-align: right;">
</td><td style="border: 1px solid black; background-color: rgb(255, 255, 255); text-align: right;">
</td><td style="border: 1px solid black; background-color: rgb(255, 255, 255); text-align: right;">
</td></tr><tr><td style="color: rgb(22, 17, 32); text-align: center;">3</td><td style="border: 1px solid black; background-color: rgb(255, 255, 255);">Country 1</td><td style="border: 1px solid black; background-color: rgb(255, 255, 255); text-align: right;">5000</td><td style="border: 1px solid black; background-color: rgb(255, 255, 255); text-align: right;">6000</td><td style="border: 1px solid black; background-color: rgb(255, 255, 255);">CityZ</td><td style="border: 1px solid black; background-color: rgb(255, 255, 255); text-align: right;">
</td><td style="border: 1px solid black; background-color: rgb(255, 255, 255); text-align: right;">
</td><td style="border: 1px solid black; background-color: rgb(255, 255, 255); text-align: right;">
</td><td style="border: 1px solid black; background-color: rgb(255, 255, 255); text-align: right;">
</td></tr><tr><td style="color: rgb(22, 17, 32); text-align: center;">4</td><td style="border: 1px solid black; background-color: rgb(255, 255, 255);">Country 2</td><td style="border: 1px solid black; background-color: rgb(255, 255, 255); text-align: right;">3000</td><td style="border: 1px solid black; background-color: rgb(255, 255, 255); text-align: right;">4000</td><td style="border: 1px solid black; background-color: rgb(255, 255, 255);">CityA</td><td style="border: 1px solid black; background-color: rgb(255, 255, 255); text-align: right;">
</td><td style="border: 1px solid black; background-color: rgb(255, 255, 255); text-align: right;">
</td><td style="border: 1px solid black; background-color: rgb(255, 255, 255); text-align: right;">
</td><td style="border: 1px solid black; background-color: rgb(255, 255, 255); text-align: right;">
</td></tr><tr><td style="color: rgb(22, 17, 32); text-align: center;">5</td><td style="border: 1px solid black; background-color: rgb(255, 255, 255);">Country 2</td><td style="border: 1px solid black; background-color: rgb(255, 255, 255); text-align: right;">4000</td><td style="border: 1px solid black; background-color: rgb(255, 255, 255); text-align: right;">5000</td><td style="border: 1px solid black; background-color: rgb(255, 255, 255);">CityB</td><td style="border: 1px solid black; background-color: rgb(255, 255, 255); text-align: right;">
</td><td style="border: 1px solid black; background-color: rgb(255, 255, 255); text-align: right;">
</td><td style="border: 1px solid black; background-color: rgb(255, 255, 255); text-align: right;">
</td><td style="border: 1px solid black; background-color: rgb(255, 255, 255); text-align: right;">
</td></tr><tr><td style="color: rgb(22, 17, 32); text-align: center;">6</td><td style="border: 1px solid black; background-color: rgb(255, 255, 255);">Country 2</td><td style="border: 1px solid black; background-color: rgb(255, 255, 255); text-align: right;">5000</td><td style="border: 1px solid black; background-color: rgb(255, 255, 255); text-align: right;">6000</td><td style="border: 1px solid black; background-color: rgb(255, 255, 255);">CityC</td><td style="border: 1px solid black; background-color: rgb(255, 255, 255); text-align: right;">
</td><td style="border: 1px solid black; background-color: rgb(255, 255, 255); text-align: right;">
</td><td style="border: 1px solid black; background-color: rgb(255, 255, 255); text-align: right;">
</td><td style="border: 1px solid black; background-color: rgb(255, 255, 255); text-align: right;">
</td></tr></tbody></table><table style="border: 1px solid rgb(166, 170, 182); border-collapse: collapse; background-color: rgb(255, 255, 255);" rules="all" cellpadding="2"><thead><tr style="color: rgb(22, 17, 32); background-color: rgb(224, 224, 240); text-align: center;"><th>Sheet2</th></tr></thead><tbody></tbody></table>
<table style="border: 2px solid black; padding: 0.4em; border-collapse: collapse; background-color: rgb(255, 255, 255);" rules="all" cellpadding="2" width="85%"><tbody><tr><td style="padding: 6px;">Array Formulas<table style="border: 1px solid rgb(166, 170, 182); border-collapse: collapse; background-color: rgb(255, 255, 255); text-align: center;" rules="all" cellpadding="2" width="100%"><thead><tr style="color: rgb(22, 17, 32); background-color: rgb(224, 224, 240);"><th width="10">Cell</th><th style="padding-left: 5px; text-align: left;">Formula</th></tr></thead><tbody><tr><th style="color: rgb(22, 17, 32); background-color: rgb(224, 224, 240);" width="10">H1</th><td style="text-align: left;">{=INDEX(D1:D6,MATCH(9.99E+307,IF(A1:A6=F1,IF(B1:B6<g1,1,""></g1,1,"">))))}</td></tr></tbody></table>Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself
</td></tr></tbody></table>