SOLVED

suffix in cells with custom format

Copper Contributor

Good morning I ask you for help, I need to add a suffix to a value read in the cell and I'm using the custom format by adding the following wording "text" 0.0 but when the value stored in the cell is negative the result is this: -text 1.8. is there any way to solve the problem that the minus sign is placed before the suffix?

13 Replies

 

thanks but my problem is that I have to put both a prefix and a suffix, when I read an example value 27.5 I have to view it like this: Temp = 27.5 ° C where the prefix is "Temp =" and the suffix is "° C".
however, when the value read is negative it is displayed as: - Temp = 27.5 ° C

@GMettew20 

That is like

"Temp " #,##0.0 "dgC";"Temp "-* #,##0.0 "dgC";"Temp " #,##0.0 "dgC";_-@_-
Lets say you have 23.4 in cell A1
1. Select cell A1
2. Press CTRL + 1
3. Select Custom
4. Clear General (below Type)
5. Type in: "Temp = "#,##0.0
6. Then, hold down the AltGr key on your keyboard and type 0176C. (That's the code to have the degree symbol as seen in the attached pictures.
Click OK

Completed. See the two attachment

@Abiola1 

That's not enough, you need to define negative part of the custom format string. Desirably zero part as well.

You're absolutely correct..
Below is both negative and positive with the prefix and the suffix
1. Select all the number
2. CTRL + 1 and select Custom
3. In the General, executive the logical custom formatting
[>0]"Temp = "#,##0.0oC;[<0]"Temp = "#,##0.0oC
(ALTGR key 0176C to get the degree symbol). See the attached caption.

When the numbers are in negative, you will see: -Temp 5.5oC (for example)
When it is positive: Temp 23.5oC (for example)

@Abiola1 , I meant minus shall be before number, not before "Temp"

image.png

 

I actually placed the minus before Temp as the requester put it... I can replace the equal sign with minus sign!

@Abiola1 , I understood the question by opposite way, but let @GMettew20 decides.

@Sergei Baklan 

it is correct I needed this result:  Tevap = -27.5 °C

I have studied your answer and i reproduce it correctly:

"Tevap ="_?-* #.##0,00 "°C";"Tevap ="?-* #.##0,00 "°C";

the only problem is the alignmet, the result si infact :  Tevap= -        27,5°C and it epends froma the dimension of column, but it is not very important.

Thankyou for your answer 

 

Well, I only provide solution to the question the best way I understand it and for me, its not a question of "let so so decide". After all, this is not a competition for me
best response confirmed by GMettew20 (Copper Contributor)
Solution

@Abiola1 

Of course. That's not about the Excel, that's about English: how to interpret

...when the value stored in the cell is negative the result is this: -text 1.8. is there any way to solve the problem that the minus sign is placed before the suffix?

@Abiola1 

I'm sorry but, since I don't speak English well, I probably explained myself wrong. However, your advice has helped me. Thanks anyway

 

1 best response

Accepted Solutions
best response confirmed by GMettew20 (Copper Contributor)
Solution

@Abiola1 

Of course. That's not about the Excel, that's about English: how to interpret

...when the value stored in the cell is negative the result is this: -text 1.8. is there any way to solve the problem that the minus sign is placed before the suffix?

View solution in original post