Need Assistance how to associate combination of Company and location to apppropriate company using the below matrix please help.
[TABLE="width: 549"]
<colgroup><col span="2"><col></colgroup><tbody>[TR]
[TD="colspan: 3"]Grouping Matrix[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Group Name[/TD]
[TD]Company[/TD]
[TD]Location[/TD]
[/TR]
[TR]
[TD]XXX[/TD]
[TD="align: right"]100[/TD]
[TD]000,155,200,208,209,210,211,212,213,[/TD]
[/TR]
[TR]
[TD]215,216,217,218,220,221,222,223,224,[/TD]
[/TR]
[TR]
[TD]225,226,227,228,229,230,231,232,233,[/TD]
[/TR]
[TR]
[TD="align: right"]244,249,259,260[/TD]
[/TR]
[TR]
[TD="align: right"]109[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD="align: right"]121[/TD]
[TD="align: right"]267[/TD]
[/TR]
[TR]
[TD="align: right"]141[/TD]
[TD]244,227,231,225,[/TD]
[/TR]
[TR]
[TD="align: right"]145[/TD]
[TD="align: right"]249,221[/TD]
[/TR]
[TR]
[TD="align: right"]146[/TD]
[TD="align: right"]264,000[/TD]
[/TR]
[TR]
[TD="align: right"]149[/TD]
[TD="align: right"]233,232,234,236[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 2"]BBB Grouping[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Group Name[/TD]
[TD]Company[/TD]
[TD]Location[/TD]
[/TR]
[TR]
[TD]BBB Grouping[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]177,161[/TD]
[/TR]
[TR]
[TD="align: right"]200[/TD]
[TD]151,000, 154,172,476,471[/TD]
[/TR]
[TR]
[TD="align: right"]201[/TD]
[TD]709,217,231,229,227,223,230,224,[/TD]
[/TR]
[TR]
[TD]220,228,244,232,469,712,054,365,[/TD]
[/TR]
[TR]
[TD]249,000,355,475,463,462,720,102,[/TD]
[/TR]
[TR]
[TD]713,107,362,209,216,466,211,718,[/TD]
[/TR]
[TR]
[TD]651,221,654,218,059,106,060,725,[/TD]
[/TR]
[TR]
[TD]726,012,708,353,363,057,465,226,[/TD]
[/TR]
[TR]
[TD]719,007,727,364,210,109,359,711,[/TD]
[/TR]
[TR]
[TD]357,215,014,222,367,467,468,213,[/TD]
[/TR]
[TR]
[TD]472,208,366,225,471,212,356,707,[/TD]
[/TR]
[TR]
[TD]729,464,715,010,714,015,352,716,[/TD]
[/TR]
[TR]
[TD]009,305,307,101,303,006,061,342,[/TD]
[/TR]
[TR]
[TD]233,368,374,461,306,304,722,459,[/TD]
[/TR]
[TR]
[TD="align: right"]470,005,058,100,104,000[/TD]
[/TR]
[TR]
[TD="align: right"]204[/TD]
[TD="align: right"]158[/TD]
[/TR]
[TR]
[TD="align: right"]222[/TD]
[TD="align: right"]170,184,161[/TD]
[/TR]
[TR]
[TD="align: right"]262[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD="align: right"]285[/TD]
[TD="align: right"]153[/TD]
[/TR]
[TR]
[TD="align: right"]316[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD="align: right"]317[/TD]
[TD="align: right"]186[/TD]
[/TR]
[TR]
[TD]Group Name[/TD]
[TD]Company[/TD]
[TD]Location[/TD]
[/TR]
[TR]
[TD]XXX[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]751,819,709,714,502,000,000[/TD]
[/TR]
[TR]
[TD="align: right"]145[/TD]
[TD="align: right"]83,084[/TD]
[/TR]
[TR]
[TD="align: right"]146[/TD]
[TD="align: right"]751,502,084,471,057[/TD]
[/TR]
[TR]
[TD="align: right"]200[/TD]
[TD="align: right"]183,719[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 549"]
<colgroup><col span="2"><col></colgroup><tbody>[TR]
[TD="colspan: 3"]Grouping Matrix[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Group Name[/TD]
[TD]Company[/TD]
[TD]Location[/TD]
[/TR]
[TR]
[TD]XXX[/TD]
[TD="align: right"]100[/TD]
[TD]000,155,200,208,209,210,211,212,213,[/TD]
[/TR]
[TR]
[TD]215,216,217,218,220,221,222,223,224,[/TD]
[/TR]
[TR]
[TD]225,226,227,228,229,230,231,232,233,[/TD]
[/TR]
[TR]
[TD="align: right"]244,249,259,260[/TD]
[/TR]
[TR]
[TD="align: right"]109[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD="align: right"]121[/TD]
[TD="align: right"]267[/TD]
[/TR]
[TR]
[TD="align: right"]141[/TD]
[TD]244,227,231,225,[/TD]
[/TR]
[TR]
[TD="align: right"]145[/TD]
[TD="align: right"]249,221[/TD]
[/TR]
[TR]
[TD="align: right"]146[/TD]
[TD="align: right"]264,000[/TD]
[/TR]
[TR]
[TD="align: right"]149[/TD]
[TD="align: right"]233,232,234,236[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 2"]BBB Grouping[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Group Name[/TD]
[TD]Company[/TD]
[TD]Location[/TD]
[/TR]
[TR]
[TD]BBB Grouping[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]177,161[/TD]
[/TR]
[TR]
[TD="align: right"]200[/TD]
[TD]151,000, 154,172,476,471[/TD]
[/TR]
[TR]
[TD="align: right"]201[/TD]
[TD]709,217,231,229,227,223,230,224,[/TD]
[/TR]
[TR]
[TD]220,228,244,232,469,712,054,365,[/TD]
[/TR]
[TR]
[TD]249,000,355,475,463,462,720,102,[/TD]
[/TR]
[TR]
[TD]713,107,362,209,216,466,211,718,[/TD]
[/TR]
[TR]
[TD]651,221,654,218,059,106,060,725,[/TD]
[/TR]
[TR]
[TD]726,012,708,353,363,057,465,226,[/TD]
[/TR]
[TR]
[TD]719,007,727,364,210,109,359,711,[/TD]
[/TR]
[TR]
[TD]357,215,014,222,367,467,468,213,[/TD]
[/TR]
[TR]
[TD]472,208,366,225,471,212,356,707,[/TD]
[/TR]
[TR]
[TD]729,464,715,010,714,015,352,716,[/TD]
[/TR]
[TR]
[TD]009,305,307,101,303,006,061,342,[/TD]
[/TR]
[TR]
[TD]233,368,374,461,306,304,722,459,[/TD]
[/TR]
[TR]
[TD="align: right"]470,005,058,100,104,000[/TD]
[/TR]
[TR]
[TD="align: right"]204[/TD]
[TD="align: right"]158[/TD]
[/TR]
[TR]
[TD="align: right"]222[/TD]
[TD="align: right"]170,184,161[/TD]
[/TR]
[TR]
[TD="align: right"]262[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD="align: right"]285[/TD]
[TD="align: right"]153[/TD]
[/TR]
[TR]
[TD="align: right"]316[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD="align: right"]317[/TD]
[TD="align: right"]186[/TD]
[/TR]
[TR]
[TD]Group Name[/TD]
[TD]Company[/TD]
[TD]Location[/TD]
[/TR]
[TR]
[TD]XXX[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]751,819,709,714,502,000,000[/TD]
[/TR]
[TR]
[TD="align: right"]145[/TD]
[TD="align: right"]83,084[/TD]
[/TR]
[TR]
[TD="align: right"]146[/TD]
[TD="align: right"]751,502,084,471,057[/TD]
[/TR]
[TR]
[TD="align: right"]200[/TD]
[TD="align: right"]183,719[/TD]
[/TR]
</tbody>[/TABLE]