I have a text made of some cells with concatenation. One of the items of the text is a number. How to make it a full number with all the necesarry comas etc.
I have: on stt 03/06 db corr PLN 60000000 val 03/06 pending
I need: on stt 03/06 db corr PLN 60,000,000.00 val 03/06 pending
I tried with CDbl(Sheets(1).Cells(i, 5).Value)
but the number is still the same.
Please note that the source cell contains the number in correct format : 60,000,000.00
which is downloaded from DB2 database
Many thanks for any help how to achieve that
To concatenate a string and a number you just use
&
, then convert the result to a number withVal()
function. Then if you want to format the result number you can useFormat()
function. Then you get a formatted string.Example: