Splitting text into only two cells ?

streets

New Member
Joined
Mar 23, 2024
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hello. I'm an accountant. At where I work, for certain reports, we can download accounting data into excel that has the following in cell each, per row :

1000 Checking
1100 Money Market - Endowment
1106 Money Market - Oper/Temp Restr
1107 Money Market - Board Reserve/GALA Festival Designated
1200 Accounts Receivable
1299 Doubtful accounts allowance
1300 Pledges Receivable
1305 Discounts - long-term pledges
1310 Doubtful pledges allowance
1320 Grants receivable
1345 Discounts - long-term grants
1400 Inventory - CDs, Videos
1500 Prepaid expenses
1595 Deposits
1705 Land - operating
1710 Buildings - operating
1720 Leasehold improvements
1730 Furniture, fixtures & equipment
1735 Software
1750 Vehicles
1790 Accumulated depreciation
1800 Other long-term assets
2000 Accounts payable
2050 Credit card
2070 Consignment Sales Payable
2071 Gifts Payable
2075 Sales tax payable
2080 Misc Payroll Liabilities
2100 Accrued liabilities
2200 Deferred revenue
2310 Notes payable current - Board
2320 Line of credit payable
2330 Notes payable current - other
2400 Other current liabilities
3000 Unrestricted net assets
3100 Temporarily restricted net assets
3200 Permanently restricted net assets

I need the chart of account numbers and the text separated, using only two cells per line to do that. How to do that?

For example, immediately after the download of the excel file, let's say that, by default, the "1107 Money Market - Board Reserve/GALA Festival Designated" line occupies excel cell A4. After the cell split, the desired result is that just the number, "1107", occupies cell A4 and and all of the text piece, the "Money Market - Board Reserve/GALA Festival Designated", is in cell B4. How to do that?

I've searched the internet, before posting here. There is endless "Text to Column" instruction, found on so many innumerable websites. There is online an endless list "Text to Column" instruction. The flaw in using "Text to Column" function, is that for the text piece of the cell, this "Text to Column" excel function separates each word and dash symbol into its own cell, ends-up spanning over 7 cells. This is un-acceptable, for what I prepare. I need the text "Money Market - Board Reserve/GALA Festival Designated" to be only occupying one cell. And so on, for all of the other accounts, listed above.
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Since all your account numbers are the same length, select the column and then open the Text To Columns dialog box (Data tab, Data Tools panel)... select "Fixed Width" and click the "Next" button... a single line separating the account numbers from the text should be all you see in the example table (if not, double click the ones you do NOT want)... click the "Finish" button.
 
Upvote 0
Rick Rothstein, that perfectly worked. Thank you.

Just in case I come across account numbers that are more than 4 characters in length, my next question is, how to do the split if all my account numbers are not the same length ? For example:

1000 Checking
1100 Money Market - Endowment
1106.2 Money Market - Oper/Temp Restr
1107g1 Money Market - Board Reserve/GALA Festival Designated
120078 Accounts Receivable
1299 Doubtful accounts allowance
 
Upvote 0
How about this?

Book3
KLM
121000 Checking1000Checking
131100 Money Market - Endowment1100Money Market - Endowment
141106.2 Money Market - Oper/Temp Restr1106.2Money Market - Oper/Temp Restr
151107g1 Money Market - Board Reserve/GALA Festival Designated1107g1Money Market - Board Reserve/GALA Festival Designated
16120078 Accounts Receivable120078Accounts Receivable
171299 Doubtful accounts allowance1299Doubtful accounts allowance
Sheet13
Cell Formulas
RangeFormula
L12:M17L12=TEXTSPLIT(SUBSTITUTE(K12," ","*",1),"*")
Dynamic array formulas.
 
Upvote 0
Welcome to the MrExcel board!

Another option, just need these formulas in the top cell of each column.

24 03 24.xlsm
ABC
11000 Checking1000Checking
21100 Money Market - Endowment1100Money Market - Endowment
31106 Money Market - Oper/Temp Restr1106Money Market - Oper/Temp Restr
41107 Money Market - Board Reserve/GALA Festival Designated1107Money Market - Board Reserve/GALA Festival Designated
51200 Accounts Receivable1200Accounts Receivable
61299 Doubtful accounts allowance1299Doubtful accounts allowance
71300 Pledges Receivable1300Pledges Receivable
8130562 Discounts - long-term pledges130562Discounts - long-term pledges
91310 Doubtful pledges allowance1310Doubtful pledges allowance
101320 Grants receivable1320Grants receivable
111345 Discounts - long-term grants1345Discounts - long-term grants
121400 Inventory - CDs, Videos1400Inventory - CDs, Videos
131500 Prepaid expenses1500Prepaid expenses
141595 Deposits1595Deposits
1517 Land - operating17Land - operating
161710 Buildings - operating1710Buildings - operating
17
Split
Cell Formulas
RangeFormula
B1:B16B1=TEXTBEFORE(A1:A16," ")
C1:C16C1=TEXTAFTER(A1:A16," ")
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,952
Members
449,095
Latest member
nmaske

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