XL2BB - Numeric Strings Aligns Right (Bug?)

Cubist

Well-known Member
Joined
Oct 5, 2023
Messages
1,800
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hi,
I'm wondering if this is a known bug. When posting a numeric text string, the XL2BB aligns the cell right as if it's a numerical type.
Book2
AB
1123TRUE
2123,456TRUE
Sheet1
Cell Formulas
RangeFormula
B1:B2B1=ISTEXT(A1)


Screenshot for comparison.
Screen Shot 2024-07-03 at 9.47.09 AM.png
 
Thanks for reporting this.

Yes, I have been aware of this issue from the beginning; however, I have intentionally avoided setting the horizontal alignment property by data type in XL2BB, and actually, I would still prefer to avoid it since it complicates the associated rendering script.

That being said, it is reasonable to expect XL2BB to align Text and perhaps even General data type values to the left, unless the cell is explicitly aligned otherwise. I am bookmarking this thread and will consider what can be done about this in the next XL2BB update.

What is the data type for A1 and A2 in your sample above? If it is Text, then XL2BB will recognize it, but the mini-sheet code you generated indicates that those cells are not Text. Are they "General"?

Aside from my comments above, as an additional note: XL2BB uses explicit cell alignment. You can set the horizontal alignment to force XL2BB to display the cell in that alignment. I know this is not the answer to your question, but I just wanted to mention it.
 
What is the data type for A1 and A2 in your sample above? If it is Text, then XL2BB will recognize it, but the mini-sheet code you generated indicates that those cells are not Text. Are they "General"?
I have tried both formatting General and Text. They both align right.

It's not a big deal but it looks inconsistent in situations like this where they should all be shown as text.
Book1
ABC
1123123
2456, 789, ABC456, 789, ABC
3123,456123456
4XYZ,123XYZ123
Sheet3
Cell Formulas
RangeFormula
A1:A4A1=TEXTJOIN(",",,B1:D1)


Setting the manual alignment does seem to fix it.
Book1
ABC
1123123
2456, 789, ABC456, 789, ABC
3123,456123456
4XYZ,123XYZ123
Sheet3
Cell Formulas
RangeFormula
A1:A4A1=TEXTJOIN(",",,B1:D1)
 

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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