Hi again!
I just built this simple test Excel table for testing purposes:

Next I use a SElect action block, and use aWDL expression based on replace() function:
In my example I am dealing with 2 cities only, but you can nest replace() functions accordingly:
replace(replace(item()?['City'],'Seattle','SEA'),'Portland','PDX')
My flow design is as follows:

And the output array provided by 'Select' action block when executing it is as follows:
[
{
"Customer": "A",
"City": "SEA"
},
{
"Customer": "B",
"City": "PDX"
},
{
"Customer": "C",
"City": "PDX"
},
{
"Customer": "D",
"City": "SEA"
}
]
Please note there are also other approaches to solve it, you can for example store City Names + City codes in a second Excel to read it dinamically and replace values by means of an 'Apply to each' + 'Filter array' action blocks combination. The most appropriate one depends on your specific scenario
Hope this helps
==========