Linking to custom number formats

crew11k

New Member
Joined
Nov 11, 2011
Messages
8
The issue: I want to display a cell with the value -1,000 as Negative 1,000. In custom number formats I have selected #;"negative" #,###;; which does indeed display the cell with -1000 as Negative 1,000, however, I want to be able to link to this cell and have the link pull in Negative $1,000. Is this possible?

Thanks so much
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Welcome to the Board,

It's not clear to me what you mean by "have the link pull in Negative $1,000"

The easiest solution would be to format the cell that is referencing the other cell to have the format that you want....
#;"Negative" $* #,###;;

Would that work, or are you looking for something else?
 
Upvote 0
For example, cell A5 contains the value -1000 which displays as "negative 1,000" by using the custom number format #;"negative" #,###;.

Cell A6 contains a sentence where I want to link in the "negative 1,000" using concatenate. For example ="The value is negative 1,000." The formula I have used is ="The value is "&A5&"."

Copying the custom number format from A5 to A6 will not work it seems because of the concatenante formula.

I guess my question is, what is the best way to have the text "negative 1,000" be able to be linked to as a input into another cell using the concatenante.

Thanks so much!
 
Upvote 0
I think you'd need VBA for this. Right click the sheet tab, select View Code and paste in

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address(False, False) = "A5" Then
    Application.EnableEvents = False
    Target.Offset(1).Value = "Value is " & Target.Text
    Application.EnableEvents = True
End If
End Sub

then try changing the value in A5.
 
Upvote 0
Using the number format:
$#,##0;"Negative "$#,##0;$0

Incorporate this into your concatenation formula with the TEXT function:
="The Value is " & TEXT(A5,"$#,##0;""Negative ""$#,##0;$0")

Excel Workbook
ABC
4
5Negative $1,000The Value is Negative $1,000
6
Sheet1
 
Upvote 0
Wow, thank you all for your quick responses. A special thanks to HOTPEPPER who gave the best answer which solved my issue. This was a very quick and easy application of cell referencing with custom number formats. Thank you.

Cheers
 
Upvote 0
One more follow-up issue related to custom number formatts.

In Excel 2007, cell A1 has the value 5.0%.

In A2 is the formula:
=TEXT(FIXED($A$1*100,1),"#,###.#;""negative ""#,###.#;#")

The displayed value in A2 is 5.

I want A2 to display 5.0, but for some reason when there is a 0 in the tenths decimile place, it does not show up. I tried the same formula with 5.5% in A1 and the formula properly displays 5.5

Does any one have an idea why when there is a .0 the formula chops off the 0?

Thanks!
 
Upvote 0
=TEXT(FIXED($A$1*100,1),"#,###.0;""negative ""#,###.0;#")
 
Upvote 0
I don't think you should need FIXED, and unless your values are going to be greater than or equal to 1000%, you should need all the #, part either:

=TEXT($A$1*100,".0;""negative "".0;0")
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

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