6 sectioned file name using 2 spaces to separate each section - needing 6 formulas to enter each section into 6 separate cells.

alexa9622

New Member
Joined
Aug 4, 2021
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
HI!

I have file names automatically generated in File Juggler. It uses OCR to capture the information and renames the files in 6 sections which are each separated by 2 spaces. The 6 sections are never the same number of characters. I have coworkers who do not know excel but can copy and paste info into one cell (find and replace is not an option LOL). The spreadsheet would be opened and new file names entered regularly.

If I paste the file name OPT-20 Staples V#2400 3445370000 2020-04-18 VN 86.31 into cell A2, what formula can I put into cells B2 C2 D2 E2 F2 G2 to divide the info into the correct cell? I have been able to do 3 columns in the past, but I cannot figure out how to do 6 columns. Unfortunately, I do not know how to code.... yet =)

Thank you in advance for your help!

1631735508668.png
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
what formula can I put into cells B2 C2 D2 E2 F2 G2
Try this in B2, copied across. Note that inside the red quote marks are two spaces. Inside the blue quote marks, just one space.

=TRIM(MID(SUBSTITUTE(" "&$A2," ",REPT(" ",100)),COLUMNS($B:B)*100,100))

21 09 16.xlsm
ABCDEFG
2OPT-20 Staples V#2400 3445370000 2020-04-18 VN 86.31OPT-20Staples V#240034453700002020-04-18VN86.31
Split file name
Cell Formulas
RangeFormula
B2:G2B2=TRIM(MID(SUBSTITUTE(" "&$A2," ",REPT(" ",100)),COLUMNS($B:B)*100,100))
 
Upvote 0
Solution
Oh my goodness! I love you! Thank you so much!!! It worked like a charm!!!

You do not know how much work you have saved all the department heads in a small children's hospital! I cannot express my gratitude enough!
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,329
Members
452,635
Latest member
laura12345

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