Dear Sir,
In Excel 365 I have a consecutive (No Blank Cells) Column Array Selected in
some portion of Column C (Not beginning on C1) for example such as:
Colorado Rockies (1) @ Arizona D'Backs (16) Boxscore
Los Angeles Angels (3) @ Baltimore Orioles (11) Boxscore
Detroit Tigers (1) @ Chicago White Sox (0) Boxscore
Washington Nationals (2) @ Cincinnati Reds (8) Boxscore
New York Yankees (5) @ Houston Astros (4) Boxscore
Minnesota Twins (4) @ Kansas City Royals (1) Boxscore
St. Louis Cardinals (1) @ Los Angeles Dodgers (7) Boxscore
Pittsburgh Pirates (6) @ Miami Marlins (5) Boxscore
Cleveland Guardians (8) @ Oakland Athletics (0) Boxscore
San Francisco Giants (4) @ San Diego Padres (6) Boxscore
Boston Red Sox (6) @ Seattle Mariners (4) Boxscore
Toronto Blue Jays (8) @ Tampa Bay Rays (2) Boxscore
Chicago Cubs (3) @ Texas Rangers (4) Boxscore
I would like to have the VBA Code to run this Array all in once with
these results:
“=VLOOKUP( Selected Team Name , TMSYMBOL, 2 )” to convert
Team Names to 3 Letter Symbols manually for each Team Name but
waste lots of time. I want to select the whole Array of Column C so
it will show All Team 3 Letter Symbols right away.
To get rid of the Scores bracket I use the Built in Function
“=LEFT(Select Team, LEN(Select Team)-5)”, I did this 1st before
Using VLOOKUP Functions.
(2) To the right of each Team Name is the Score of that Team, e.g.
Colorado Rockies (1), which means Colorado Rockies Score is 1,
I would like to have all Team Scores extracted from that Team
and show them all in real Integer Numbers without any bracket()
to avoid Misleading for Excel to think it is a Negative Number.
The Integer Column Array is on Column D which is to the right side
of Column C Team Name Symbols with the same Row Numbers as
Column C.
(3) After all the “@” are the Home Team Names, their Scores in bracket,
and extra Tails of “Boxscore”, I use function “=LEFT(Selected team
name, LEN(Selected team name)-12) to get rid of the “Boxscore” Tails.
However there is a Catch for the Home Team Name Conversion to
3 Letter Symbol of Teams. Since After “@” there is a SPACE of each
Home Teams, I have to manually delete each First SPACE before the
Home Team Names, then I can do the VLOOKUP Convert to Symbols,
Could you write code so that it will delete ALL 1st space before each
Home Team Name, then Convert to 3 Letter Symbol Array on
Column H, extract the Home team scores on Column I with
the same Row Numbers, in other words, Parallel moving all
the Column Arrays. Eliminate al the “@” Symbol.
The Results are like these:
Column C Column D Column H Column I
AWAY TM V-SCORE HOME TM H-SCORE
It should be all in line, I just can’t do it in Words. Sorry about that.
In Excel they should have the same Row Numbers.
The Conversion Table named “TMSYMBOL” in my Excel Worksheet
named “TMS” is as follows
( Each Team in ONE line only. )
The name of the worksheet is “SKD DOG”, the name of the Workbook is
“2024MLB”, due to everyday I have new data in Column C to update,
Could you modify the Code dynamically so that once I select today’s
Input Array in Column C ( It varies since today it starts with C10, but
tomorrow I have to start with C14 to get day by day schedule & score result).
The Heading of the Visitor Team name is “AWAY TM” on C6, the Heading of the
Visitor Score is “V-Score” on D6, the Heading of the Home Team Name is
“HOME TM” on H6, the Heading of the Home Team Score is “H-Score” on I6.
I hope I explained my expected results using VBA Code to run clearly.
If you need more information, please feel free to ask. Thanks.
Boy282828 3/30/2024
In Excel 365 I have a consecutive (No Blank Cells) Column Array Selected in
some portion of Column C (Not beginning on C1) for example such as:
Colorado Rockies (1) @ Arizona D'Backs (16) Boxscore
Los Angeles Angels (3) @ Baltimore Orioles (11) Boxscore
Detroit Tigers (1) @ Chicago White Sox (0) Boxscore
Washington Nationals (2) @ Cincinnati Reds (8) Boxscore
New York Yankees (5) @ Houston Astros (4) Boxscore
Minnesota Twins (4) @ Kansas City Royals (1) Boxscore
St. Louis Cardinals (1) @ Los Angeles Dodgers (7) Boxscore
Pittsburgh Pirates (6) @ Miami Marlins (5) Boxscore
Cleveland Guardians (8) @ Oakland Athletics (0) Boxscore
San Francisco Giants (4) @ San Diego Padres (6) Boxscore
Boston Red Sox (6) @ Seattle Mariners (4) Boxscore
Toronto Blue Jays (8) @ Tampa Bay Rays (2) Boxscore
Chicago Cubs (3) @ Texas Rangers (4) Boxscore
I would like to have the VBA Code to run this Array all in once with
these results:
- All the Visitor Baseball Teams WITHOUT the bracket Score Stay in Column C and Convert Team Names to 3 Letters Symbol according
- to a Table Called “TMSYMBOL”, on that Table the 1st Column is all Team
“=VLOOKUP( Selected Team Name , TMSYMBOL, 2 )” to convert
Team Names to 3 Letter Symbols manually for each Team Name but
waste lots of time. I want to select the whole Array of Column C so
it will show All Team 3 Letter Symbols right away.
To get rid of the Scores bracket I use the Built in Function
“=LEFT(Select Team, LEN(Select Team)-5)”, I did this 1st before
Using VLOOKUP Functions.
(2) To the right of each Team Name is the Score of that Team, e.g.
Colorado Rockies (1), which means Colorado Rockies Score is 1,
I would like to have all Team Scores extracted from that Team
and show them all in real Integer Numbers without any bracket()
to avoid Misleading for Excel to think it is a Negative Number.
The Integer Column Array is on Column D which is to the right side
of Column C Team Name Symbols with the same Row Numbers as
Column C.
(3) After all the “@” are the Home Team Names, their Scores in bracket,
and extra Tails of “Boxscore”, I use function “=LEFT(Selected team
name, LEN(Selected team name)-12) to get rid of the “Boxscore” Tails.
However there is a Catch for the Home Team Name Conversion to
3 Letter Symbol of Teams. Since After “@” there is a SPACE of each
Home Teams, I have to manually delete each First SPACE before the
Home Team Names, then I can do the VLOOKUP Convert to Symbols,
Could you write code so that it will delete ALL 1st space before each
Home Team Name, then Convert to 3 Letter Symbol Array on
Column H, extract the Home team scores on Column I with
the same Row Numbers, in other words, Parallel moving all
the Column Arrays. Eliminate al the “@” Symbol.
The Results are like these:
Column C Column D Column H Column I
AWAY TM V-SCORE HOME TM H-SCORE
COL | 1 | ARI | 16 | ||
LAA | 3 | BAL | 11 | ||
DET | 1 | CHW | 0 | ||
WAS | 2 | CIN | 8 | ||
NYY | 5 | HOU | 4 | ||
MIN | 4 | KC | 1 | ||
STL | 1 | LAD | 7 | ||
PIT | 6 | MIA | 5 | ||
CLE | 8 | OAK | 0 | ||
SF | 4 | SD | 6 | ||
BOS | 6 | SF | 4 | ||
TOR | 8 | TB | 2 | ||
CHC | 3 | TEX | 4 |
It should be all in line, I just can’t do it in Words. Sorry about that.
In Excel they should have the same Row Numbers.
The Conversion Table named “TMSYMBOL” in my Excel Worksheet
named “TMS” is as follows
Arizona D'Backs | ARI |
Atlanta Braves | ATL |
Baltimore Orioles | BAL |
Boston Red Sox | BOS |
Chicago Cubs | CHC |
Chicago White Sox | CHW |
Cincinnati Reds | CIN |
Cleveland Guardians | CLE |
Colorado Rockies | COL |
Detroit Tigers | DET |
Houston Astros | HOU |
Kansas City Royals | KC |
Los Angeles Angels | LAA |
Los Angeles Dodgers | LAD |
Miami Marlins | MIA |
Milwaukee Brewers | MIL |
Minnesota Twins | MIN |
New York Mets | NYM |
New York Yankees | NYY |
Oakland Athletics | OAK |
Philadelphia Phillies | PHI |
Pittsburgh Pirates | PIT |
San Diego Padres | SD |
Seattle Mariners | SEA |
San Francisco Giants | SF |
St. Louis Cardinals | STL |
Tampa Bay Rays | TB |
Texas Rangers | TEX |
Toronto Blue Jays | TOR |
Washington Nationals | WAS |
( Each Team in ONE line only. )
The name of the worksheet is “SKD DOG”, the name of the Workbook is
“2024MLB”, due to everyday I have new data in Column C to update,
Could you modify the Code dynamically so that once I select today’s
Input Array in Column C ( It varies since today it starts with C10, but
tomorrow I have to start with C14 to get day by day schedule & score result).
The Heading of the Visitor Team name is “AWAY TM” on C6, the Heading of the
Visitor Score is “V-Score” on D6, the Heading of the Home Team Name is
“HOME TM” on H6, the Heading of the Home Team Score is “H-Score” on I6.
I hope I explained my expected results using VBA Code to run clearly.
If you need more information, please feel free to ask. Thanks.
Boy282828 3/30/2024