Hi, Jason, this is really cool what you are doing. I think I have an idea to approach this. If the AI can pick up those two string of text (the pitches-strikes and the batters faced) and pass them to Power Automate, then we can break that information down over a couple of actions. I actually think the hardest thing here will be handling what happens if data is bad, like someone mistypes something. I'm noticing in your first screenshot they didn't actually enter a number for Colton R's Batters Faced. But we can try to address that later.
- Initialize variable action. Variable named pitchesStrikesSanitized. Type: String. Expression value below. Instead of text input from the trigger body, you will use whatever the AI is passing you for the PitchesStrikes.
replace(triggerBody()['text'], 'Pitches-Strikes: ', '')​​
- Initialize variable action. Variable named battersFacedSanitized. Type: String. Expression value below. Same deal as the last variable.
replace(triggerBody()['text_1'], 'Batters Faced: ', '')
- Initialize variable action. Variable named pitchesStrikesArray. Type: Array. Expression value below. this separates all of the pitchers by looking for a comma and a space.
split(variables('pitchesStrikesSanitized'), ', ')​
- Initialize variable action. Variable named battersFacedArray. Type: Array. Expression value:
split(variables('battersFacedSanitized'), ', ')
Quick sanity check to make sure we're on track, and it looks good! Now we have two arrays we can loop through and get their info.

- Next, I initialize two variables called currentPitcherPitchStrikes and currentPitcherBattersFaced. They are both Strings, you may need to do some extra work if you want Batters Faced to be an integer, but I think pitchStrikes will need to be a String to support the dash. During our For Each Pitcher loop, we will update this value before calling it to update your spreadsheet. We must also reset it to 0 at the beginning of each loop to make sure we don't enter someone else's stats if we fail to parse the data correctly. Note: these have to be initialized before our loop.
- I use an Initialize Variable action which creates an array of opponentPitchers. You shouldn't need this, but I don't have this data coming in with my example so I'm just putting it there. I'll do a For Each loop that goes through the pitchers just like you did.
- Begin the loop with two Set Variable steps, both will reset one of the "currentPitcherX" variables to 0.
- Create a loop within the pitcher loop, this loop should iterate over the pitchesStrikesArray. For each pitchStrike it looks at, we need a condition to see if the current item (ex: "Nolan H 44-24") contains the name of the current pitcher we are iterating over in the main loop (ex: "Nolan H"). IF the name is found, we will set currentPitcherPitchStrikes to whatever is in the current pitchStrikeArray item, except we will be replacing the Pitcher's Name and any Spaces with nothing. How you grab the pitcher's name will likely be different. This looks funny, but we are just feeding one whole replace function into another replace function's first argument.
replace(
replace(items('Apply_to_each_pitchStrike'), items('For_each_Pitcher_in_game'), ''),
' ', '')​
What it looks like so far:

It looks complicated, but it collapses down nicely. Here it is after adding a similar loop for battersFaced:

Now to test it! Note: in your first screenshot, Colton R doesn't seem to have a value listed for his battersFaced. I replicated this to make sure our solution could support this. Because we reset our variables each time, it does. Where I have my compose action to look at my outputs, you can just use your Excel action and use the currentPitcherX variables as needed.

This was a really fun exercise, thanks for sharing. I sincerely hope this help you out, and feel free to ask any other questions you may have.