Align Text on a Specific Character

SledLax

New Member
Joined
May 9, 2019
Messages
9
Hi.

I want to align the text in a column so that a specific character (±) is in the centre. The number of characters either side will vary depending on the value, # decimal places etc, but the one constant will be the ± character.

This is an example of some data:


<colgroup><col style="mso-width-source:userset;mso-width-alt:3510;width:72pt" width="96"> </colgroup><tbody>
[TD="class: xl64, width: 96"]

<colgroup><col style="mso-width-source:userset;mso-width-alt:3510;width:72pt" width="96"> </colgroup><tbody>
[TD="class: xl66, width: 96"]44:37 ± 4:01 c
[/TD]

[TD="class: xl67"]73 ± 11[/TD]

[TD="class: xl67"]1.6 ± 0.3 c [/TD]

[TD="class: xl67"]7.12 ± 2.40 b
[/TD]

</tbody>
[/TD]

[TD="class: xl65"]Thanks.[/TD]

[TD="class: xl66"][/TD]

</tbody>
 
Thanks Everyone for your assistance. I now have a very simple/elegant solution (separate columns) and also the automated process (macro) I was looking for. I appreciate your help.
 
Upvote 0

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Thanks Everyone for your assistance. I now have a very simple/elegant solution (separate columns) and also the automated process (macro) I was looking for. I appreciate your help.


I'm glad to help you. Thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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