Keep the trailing zero's in TEXTJOIN

Nanaia

Active Member
Joined
Jan 11, 2018
Messages
306
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Greetings again!
Is there a way to get TEXTJOIN to keep the trailing zeros when having it pull numbers? I have the reference cells set up to carry out to three decimal places. When I use TEXTJOIN to combine data (text and numbers) it's removing the trailing zeros that I need on my numbers. I'm having memory issues because I remember being able to do this before I even knew the TEXTJOIN command existed....

Addendum: I remembered using & and got it to work, but it still won't keep the trailing zeros...

Regards,
Nanaia
"Do or do not, there is no try"~Yoda
 
Last edited:

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Nanaia, Good afternoon.

Suppose your cell is C5 and is 1.400

Try to use:

=TEXTJOIN(",', TRUE, "NOW ", TEXT(C5,"0.000"), " IS OK!")

Is that what you want?
I hope it helps.
 
Upvote 0
Thanks for the suggestion! I'm not sure it'll work with what I've got. This is what I have in the cell (sheets referenced are named CSV and REF):

=REF!$A$2 & CSV!K2 & REF!$A$3 & REF!C2 & REF!$A$4 & REF!$A$5 & REF!$A$6 & REF!U2 & REF!$A$7 & REF!V2 & REF!$A$8

Columns U and V are supposed to be carried out three decimal places, but Excel is dropping the trailing zeros.

Is this clear as mud now? :eek:

Thanks again for your help.

Regards,
Nanaia
"Do or do not, there is no try"~Yoda
 
Upvote 0
Nanaia, Good afternoon.

"...Thanks for the suggestion! I'm not sure it'll work with what I've got..."
My suggestion was based on what you said in your message that you were using the TEXTJOIN function.
But as I see in your new message you are only using the & connector.

Try to use:

=REF!$A$2 & CSV!K2 & REF!$A$3 & REF!C2 & REF!$A$4 & REF!$A$5 & REF!$A$6 & TEXT(REF!U2,"0.000") & REF!$A$7 & TEXT(REF!V2,"0.000") & REF!$A$8

Please, tell us if it worked as you want.
I hope it helps.
 
Upvote 0
:biggrin: You're fabulous! Yes that worked! Sorry about the confusion from me shifting gears on which formula style I was using. I'd changed to & and only wanted to switch back if I had to.
Thank you again!
Regards,
Nanaia
"Do or do not, there is no try"~Yoda
 
Upvote 0
Maybe something like this with TEXTJOIN.
This is an array formula and must be entered with
Excel Workbook
ABCDE
1KL23.000PL45.670GH
2
3KL23.000PL45.670GH
CTRL-SHIFT-ENTER.
 
Upvote 0

Forum statistics

Threads
1,215,942
Messages
6,127,807
Members
449,408
Latest member
Bharathi V

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