Concatenate and preserve number format

adrienne0914

Board Regular
Joined
Mar 22, 2018
Messages
73
Office Version
  1. 365
Platform
  1. Windows
Cell A1 contains $26,501,370.27. I have a custom format so that it appears as $26.501 million. Trying to figure out how to preserve this format in CONCATENATE as text. I tried TEXT(A1,$#.000,," million") but get a formula error message.
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Does A1 actually contain the number 26501370.27 rather than the text $26,501,370.27?
If it is a number then try
Book1
AB
126501370.27$26.501 Million
Sheet1
Cell Formulas
RangeFormula
B1B1=TEXT(A1,"$#,###,.###,")&" Million"
 
Upvote 0
Solution
Last edited:
Upvote 0
No, your solution worked perfect. No revisions necessary, but I will save this for future reference just in case. 💚
 
Upvote 0
No, your solution worked perfect.
It seemed to me from post 1 that your custom format and your desired concatenated output would have 3 decimal places. The suggested formula does not always do that - see B2:B4 below.

If my interpretation was correct then perhaps the column C formula might be more what you want?
.. and column D was just for fun to show that it can be done within the text function rather than with "&" if you want (though I am not recommending that :))

Cell Formulas
RangeFormula
B1:B5B1=TEXT(A1,"$#,###,.###,")&" Million"
C1:C5C1=TEXT(A1,"$#,##0.000,,")&" Million"
D1:D5D1=TEXT(A1,"$#,##0.000,, \Millio\n")
 
Upvote 0
It seemed to me from post 1 that your custom format and your desired concatenated output would have 3 decimal places. The suggested formula does not always do that - see B2:B4 below.

If my interpretation was correct then perhaps the column C formula might be more what you want?
.. and column D was just for fun to show that it can be done within the text function rather than with "&" if you want (though I am not recommending that :))
Peter_SSs, I actually didn't have any issues with the original solution. The result was consistently 3 decimal places. But I have noted yours for future reference. Much appreciated!
 
Upvote 1
Peter_SSs, I actually didn't have any issues with the original solution. The result was consistently 3 decimal places.
I don't know how your data is arrived at but I would say that is more good luck than that the original formula is robust.

If any of your data could ever have zeros in
  • the thousands column, or
  • the thousands and tens of thousands columns, or
  • the thousands and tens of thousands and hundreds of thousands columns
then the given formula will not return 3 decimal places.
Are you saying that the sample data that I have in column A above is impossible for you?
 
Upvote 0
Are you saying that the sample data that I have in column A above is impossible for you?
Here are the numbers that I used in my CONCATENATE formula:

$26,501,000
$1,413,000
$2,192,000
$9,641,000
$13,624,000
$848,000
$1,368,000

I also rounded to the nearest thousand. And it just so happened that there were no zeroes at the end of the thousands column. I'm sure it won't always be that way. That's why I am saving your solution for the future. Thanks again.
 
Upvote 0
Personally I would just change to the version Peter proposed in cell C1, there are no downsides to using it ;)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,849
Members
452,361
Latest member
d3ad3y3

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