Speeding up data entry

tigerzen

Board Regular
Joined
Mar 8, 2023
Messages
165
Office Version
  1. 365
Platform
  1. Windows
Looking for a formula based solution if possible, otherwise VBA. Desired format is in rows 7 to 10. I can use TEXTSPLIT to split the cells with the dash separator easily enough but there are quite a number of columns to add headings to and this is what's slowing me down.
Book1
ABCDEFGHIJKLM
1KicksClearancesScoresTackles
2Team A20-157-810-42-4
3Team B33-124-56-55-8
4Team C14-349-137-53-7
5
6
7KicksKicks for Kicks AgainstClearancesClearances ForClearances againstScoresScores forScores againstTacklesTackles for Tackles against
8Team A20-1520157-87810-41042-424
9Team B33-1233124-5456-5655-858
10Team C14-3414349-139137-5753-737
Sheet1
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Hi

=TEXTSPLIT(TEXTJOIN(" ",TRUE,B2:E2&" "&SUBSTITUTE(B2:E2,"-"," "))," ")
 
Upvote 0
C8 copy to whole table:
VBA Code:
=CHOOSE(MOD(COLUMNS($A:B)-1,3)+1,VLOOKUP($A8,$A$2:$E$4,INT((COLUMNS($A:B)-1)/3)+2,0),LEFT(B8,SEARCH("-",B8)-1),MID(A8,SEARCH("-",A8)+1,10))

Book2
ABCDEFGHIJKLM
1KicksClearancesScoresTackles
2Team A20-157-810-42-4
3Team B33-124-56-55-8
4Team C14-349-137-53-7
5
6
7KicksKicks for Kicks AgainstClearancesClearances ForClearances againstScoresScores forScores againstTacklesTackles for Tackles against
8Team A20-1520157-87810-41042-424
9Team B33-1233124-5456-5655-858
10Team C14-3414349-139137-5753-737
Sheet1
Cell Formulas
RangeFormula
B8:B10B8=CHOOSE(MOD(COLUMNS($A:A)-1,3)+1,VLOOKUP($A8,$A$2:$E$4,INT((COLUMNS($A:A)-1)/3)+2,0),LEFT(A8,SEARCH("-",A8)-1),MID(#REF!,SEARCH("-",#REF!)+1,10))
C8:M10C8=CHOOSE(MOD(COLUMNS($A:B)-1,3)+1,VLOOKUP($A8,$A$2:$E$4,INT((COLUMNS($A:B)-1)/3)+2,0),LEFT(B8,SEARCH("-",B8)-1),MID(A8,SEARCH("-",A8)+1,10))
 
Upvote 0
Since you have 365, try
Excel Formula:
=LET(rng,B1:E4,HSTACK(A1:A4&"",SORTBY(HSTACK(rng,TEXTBEFORE(rng,"-",,,,rng&" For"),TEXTAFTER(rng,"-",,,,rng&" Against")),MOD(SEQUENCE(,COLUMNS(rng)*3)-1,4)+1)))
 
Upvote 0
Thanks for the responses so far, both solutions posted address the separation of data under the main headings but I need something to enter Row 7 which is what is slowing me down.
 
Upvote 0
Just seen your response Anonymous1378 and it looks like it will work for my real data set, thank you.
 
Upvote 0

Forum statistics

Threads
1,215,454
Messages
6,124,933
Members
449,195
Latest member
Stevenciu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top