Combining Text and Cell References Through A Formula

RhyGuy

Board Regular
Joined
Jan 12, 2009
Messages
79
Good Afternoon All,

I am running into a bit of a snag. I am trying to automate some of my reporting funtions by automating the text strings I would normally type out in our powerpoint decks that derive from information I have in my excel files. I am using the text that I know is standard and combining them with cell references throughout the worksheet.

Now I know how to combine text and cell references via fomula using the "Text" function, but where I am running into a wall is the formatting of the number itself. I want the number, if negative, to be in brackets, with one decimal point. With all numbers to have the 1000 Separator.

I have searched the net and have been coming up blank. Does anyone know how to properly format this?

Thanks In Advance

Ryan
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Hi Ryan

The syntax is the same as with cell formatting.

With the number in A1, write in B1:

="Example: "&TEXT(A1,"#,##0.00;(#,##0.0)")

In this case positive numbers have 2 decimals and negative numbers are enclosed in brackets with 1 decimal. Both positive and negative formats have the thousands separator.
 
Upvote 0

Forum statistics

Threads
1,224,504
Messages
6,179,142
Members
452,892
Latest member
JUSTOUTOFMYREACH

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