Trim formula working on one cell, but not working on similar adjacent cell

WikeMo1

New Member
Joined
Apr 15, 2019
Messages
19
Hello All,
This thing has stumped me.

I trying to separate a bullet point list from one cell into different columns using this formula:
=TRIM(LEFT(SUBSTITUTE(MID(D4,FIND("|",SUBSTITUTE(D4,"•","|",1))+1,LEN(D4)),"•",REPT(" ",LEN(D4))),LEN(D4)))


It works most of the time, but sometimes it doesn't and I cannot figure out why.

For example,
I have two cells here and one works, the other doesn't. I have found that if I reduce the characters in the first cell by deleting the text in red, the formula works.
What is going on here? Is this a character limit issue?
[TABLE="width: 500"]
<tbody>[TR]
[TD]

<tbody>
[TD="class: xl65"]• Elegant All White Fra me Design • Super Lightweight Powder Coated Aluminum Frame Construction • Detachable Pin-Hinged Sections for Easy Assembling and Disassembling • Includes Four 24"W x 46"H Sections • Each Section Color Code Marked For a Quick Setup • Fire Retardant Treated Dual Scrim Screen Faces • Use in Conjunction with Lighting for Color Wash Effects • Carrying/Storage Bag is Included: (25" x 46.75" x 4.25") *use all necessary safety precautions when using heat and electrical related devices near the stretch screen **SCRIM CLEANING CARE: Dry-Clean or Machine wash in cold water (Do not bleach). Hang dry or Tumble dry at "low" to no heat. Do not iron. *Flame retardant must be retreated after washing or dry-cleaning. Other Related Products • SWF7246WHT 72"W x 46"H All White Pro DJ Facade ALL BLACK PRO DJ FACADES • SWF4846BLK 48"W x 46"H All Black Pro DJ Facade • SWF7246BLK 72"W x 46"H All Black Pro DJ Facade BLACK FRAME WITH WHITE SCRIM PRO DJ FACADES • SWF4846B 48"W x 46"H Pro DJ Facade • SWF7246B 72"W x 46"H Pro DJ Facade • SWF9646B 96"W x 46"H Pro DJ Facade • SWFTT5816B 58"W x 16"H Table Top Pro DJ Facade OTHER SCRIM WERKS™ PRODUCTS • Light Columns • 12"x12" Square Truss Slip Screens™ Stretch Covers • Banquet Table Slip Screens™ Stretch Covers • Lighting/Speaker Tripod/Crank Stand Stretch Covers • X Stand Slip Screen™ Stretch Covers • Video Stretch Screens • Triangular Decor Scrims • Decor Display Panels[/TD]

</tbody>
[/TD]
[TD]

<tbody>
[TD="class: xl65, align: center"]#VALUE![/TD]

</tbody>
[/TD]
[/TR]
[TR]
[TD]
• Sleek All Black Stealth Frame and Scrim Design • Super Lightweight Powder Coated Aluminum Frame Construction • Detachable Pin-Hinged Sections for Easy Assembling and Disassembling • Includes Four 24"W x 46"H Sections • Each Section Color Code Marked For a Quick Setup • Carrying/Storage Bag is Included: (25" x 46.75" x 4.25") *use all necessary safety precautions when using heat and electrical related devices near the stretch screen **SCRIM CLEANING CARE: Dry-Clean or Machine wash in cold water (Do not bleach). Hang dry or Tumble dry at "low" to no heat. Do not iron. *Flame retardant must be retreated after washing or dry-cleaning. Other Related Products • SWF7246BLK 72"W x 46"H All Black Pro DJ Facade ALL WHITE PRO DJ FACADES • SWF4846WHT 48"W x 46"H All White Pro DJ Facade • SWF7246WHT 72"W x 46"H All White Pro DJ Facade BLACK FRAME WITH WHITE SCRIM PRO DJ FACADES • SWF4846B 48"W x 46"H Pro DJ Facade • SWF7246B 72"W x 46"H Pro DJ Facade • SWF9646B 96"W x 46"H Pro DJ Facade • SWFTT5816B 58"W x 16"H Table Top Pro DJ Facade OTHER SCRIM WERKS™ PRODUCTS • Light Columns • 12"x12" Square Truss Slip Screens™ Stretch Covers • Banquet Table Slip Screens™ Stretch Covers • Lighting/Speaker Tripod/Crank Stand Stretch Covers • X Stand Slip Screen™ Stretch Covers • Video Stretch Screens • Triangular Decor Scrims • Decor Display Panels

<tbody>
</tbody>
[/TD]
[TD]

<tbody>
[TD="class: xl65"]Sleek All Black Stealth Frame and Scrim Design[/TD]

</tbody>
[/TD]
[/TR]
</tbody>[/TABLE]


Here is an online workbook with the example. https://1drv.ms/x/s!Avza4YgA-BnDjBwMZ6nL1YudMvzq
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Not sure if you saw post#10 as you posted about the same time. ;)
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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