+ and - signs in &/CONCATENATE formula

~stein~

New Member
Joined
Nov 9, 2012
Messages
2
Hi all - first post here! (i.e. first time I can't find a solution by searching - this forum has saved my life more times than I can count...)

I'm making a dashboard intended to track a bunch of metrics at once. For one of the charts, I'm using the below formula to create the series labels:

=B5&": "&TEXT(C5;"0,000")&" KUSD ["&TEXT(F5;"0.0%")&"]"&" // Company Share: "&TEXT(G5;"0.0%")&" ["&TEXT(I5;"0.0")&"]"

I5 contains the change in market share and can be either positive or negative (or zero), and the formula results look something like this:

[TABLE="class: grid, width: 525"]
<tbody>[TR]
[TD]Segment A: 50,000 KUSD [-1.5%] // Company Share: 61.0% [2.6]
[/TD]
[/TR]
[TR]
[TD]Segment B: 9,900 KUSD [5.9%] // Company Share: 67.0% [-5.6]
[/TD]
[/TR]
[TR]
[TD]Segment C: 17,000 KUSD [-11.3%] // Company Share: 36.2% [1.4]
[/TD]
[/TR]
</tbody>[/TABLE]

My problem is that I want to include a plus sign for positive changes in market share (not only minuses when the change is negative), i.e.:

[TABLE="class: grid, width: 525"]
<tbody>[TR]
[TD]Segment A: 50,000 KUSD [-1.5%] // Company Share: 61.0% [+2.6]
[/TD]
[/TR]
[TR]
[TD]Segment B: 9,900 KUSD [5.9%] // Company Share: 67.0% [-5.6]
[/TD]
[/TR]
[TR]
[TD]Segment C: 17,000 KUSD [-11.3%] // Company Share: 36.2% [+1.4]
[/TD]
[/TR]
</tbody>[/TABLE]

Any advice on this is much appreciated!

Cheers,
~stein~
 
Andrew,

Can I ask where that aspect of the TEXT FormatString is documented. It certainly doesn't seem to be part of the wonderous Bing help system, though it seems to be logical and simply an application of custom formating applied to individual cells.

Regards
 
Upvote 0
Andrew,

Can I ask where that aspect of the TEXT FormatString is documented. It certainly doesn't seem to be part of the wonderous Bing help system, though it seems to be logical and simply an application of custom formating applied to individual cells.

Regards

The second argument for the TEXT function is the number format, like you would enter in the Number tab of the Format Cells dialog. It's quite well documented in Help for the function in Excel 2010.
 
Upvote 0
Hi Andrew, it doesnt mention that its the same as the Format Cells dialog nor that it can have multiple parts. Thank heaven for this forum.

Have a good weekend.
 
Upvote 0

Forum statistics

Threads
1,226,907
Messages
6,193,600
Members
453,810
Latest member
Gks77117

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