negatve numbers within a concatenate formula

jjquincy

New Member
Joined
Sep 17, 2004
Messages
18
how do you show a negatve number in a concatenate formula as (38),not as -38

I want brackets to appear instead of the minus sign

thanks for any help
 
After you concatenate the numbers, they aren't numbers anymore -- they are text. I'd suggest using an IF() statement to format the numbers as you want them. e.g. =IF(E7<0,D7&"("&E7&")",D7&E7)

Hope this helps,
 
Upvote 0
You have to use TEXT(cell, "format") only that I don't know how to put the format including negative numbers. But you could add a conditional though:


=concatenate(if(a1>0,a1,text(1,"(0)"))

Actually this doesnot get rid of the minus sign but only adds the parenthesis for you.

Joke
 
Upvote 0
To answer your locked post:


=CONCATENATE(TEXT(A1,"0;(0)"),"/",TEXT(B2,"0;(0)"),"/",TEXT(C3,"0;(0)"),"/",TEXT(D4,"0;(0)"))
 
Upvote 0
how could I show this 45/-38/664/193 as 45/(38)/664/193

my current formula is =concatenate(a1,"/",b2,"/",c3,"/",d4)

I would like to change that b2 cell to appear as (38) no minus sign


Thanks for all the previous advice

=CONCATENATE(A1,"/","("&ABS(B1)&")","/",C1,"/",D1)

Hope this helps!
 
Upvote 0

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