Please help. Excel formula to split cell value to 2 cells

cedric_dranreb

New Member
Joined
Nov 10, 2013
Messages
3
Hi all,

Please help me on this:

I want to have a formula in cell “B10” that checks the number of characters in cell “A1” that contain say for example the text string “One Thousand Five Hundred Twenty Five”. When the number of characters exceeds the maximum of 20, it will trim the result to 20 characters or LESS but will still preserve the whole text prior to the maximum character limit. In this case, 20 characters will result to “One Thousand Five Hu”. With the given condition, the formula in cell “B10” must result to “One Thousand Five” thereby still preserving the complete words prior to the maximum limit.

In cell “B11”, another formula must also result in “Hundred Twenty Five” completing the whole text string in cell “A1”. I just can’t figure out what the formulas must be to have the desired results.

Any help is very much appreciated. Thank you.:confused:
 

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
Are there ever text strings with more than 40 characters? If so, should the remainder be in yet a 3rd cell, and a 4th cell, etc?

If there are only text strings with 40 characters or less, then maybe this will work (from Rick Rothstein's playbook):


Excel 2010
ABC
1One Thousand Five Hundred Twenty FiveOne Thousand FiveHundred Twenty Five
Sheet1
Cell Formulas
RangeFormula
B1=LEFT(LEFT(A1,20),SEARCH(TRIM(LEFT(RIGHT(SUBSTITUTE(" "&LEFT(A1,20)," ",REPT(" ",99)),99),99)),LEFT(A1,20))-2)
C1=RIGHT(A1,LEN(A1)-LEN(B1))
 
Upvote 0
Hi all,

Please help me on this:

I want to have a formula in cell “B10” that checks the number of characters in cell “A1” that contain say for example the text string “One Thousand Five Hundred Twenty Five”. When the number of characters exceeds the maximum of 20, it will trim the result to 20 characters or LESS but will still preserve the whole text prior to the maximum character limit. In this case, 20 characters will result to “One Thousand Five Hu”. With the given condition, the formula in cell “B10” must result to “One Thousand Five” thereby still preserving the complete words prior to the maximum limit.

In cell “B11”, another formula must also result in “Hundred Twenty Five” completing the whole text string in cell “A1”. I just can’t figure out what the formulas must be to have the desired results.

Any help is very much appreciated. Thank you.:confused:

The two bold statements in your post seem to be contradictory so I'm unsure if this is what you want.
Excel Workbook
AB
1One Thousand Five Hundred Twenty Five
2
3
4
5
6
7
8
9
10One Thousand Five Hu
11ndred Twenty Five
Sheet14
 
Upvote 0
Slight Correction:


Excel 2010
ABC
1One Thousand Five Hundred Twenty FiveOne Thousand FiveHundred Twenty Five
Sheet1
Cell Formulas
RangeFormula
B1=LEFT(LEFT(A1,20),SEARCH(TRIM(LEFT(RIGHT(SUBSTITUTE(" "&LEFT(A1,20)," ",REPT(" ",99)),99),99)),LEFT(A1,20))-2)
C1=RIGHT(A1,LEN(A1)-LEN(B1)-1)
 
Upvote 0

Forum statistics

Threads
1,223,721
Messages
6,174,096
Members
452,542
Latest member
Bricklin

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