vba - How do I retrieve an Excel cell value in another cell, as text, formatted as in the origin cell? -


i have 2 cells custom currency formatting.

i display text next sum, describes sum being made.

so write = "" & textasdisplayed(a1) & "+" & textasdisplayed(a2)

does such function exist in worksheet or have make vba function ?

try this: tested , works fine. text , format in dollar(usa) currency.

="" & text(a1,"[$$-409]#,##0.0") & "+" & text(a2,"[$$-409]#,##0.0") 

Comments

Popular posts from this blog

javascript - Is getTimezoneOffset() stable during daylight saving transition? -

Why does PHP consider 0 to be equal to a string? -

formula - R: how to pass in a reference to the variable in glm or lm? -