# concatenate question with negative numbers

#### johnny52

##### Active Member
Hi ,

my question ...I have 2 numbers in 2 different cells...one is a negative number.When I use the concatenate formula the result is as follows
cell a1 = 7 cell b1 = -9

=concatenate(a1," - ",b1) the result in the cell looks like 7 - -9

can I write a concatenate formula to put the negative number with parenthesis...so it would look like this 7 - (9) all in one cell ?

Thanks everybody

### Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

#### pgc01

##### MrExcel MVP
Hi

Is the negative number always the second one?

#### Lewiy

##### Well-known Member
Maybe something like this:
Code:
``=IF(A1<0,"("&ABS(A1)&")",A1)&"-"&IF(B1<0,"("&ABS(B1)&")",B1)``

#### Boller

##### Banned
If A1 is always positive and B1 is always negative :-

=A1 & TEXT(-B1,"-(#,###)")

or

=A1 & "-(" & -B1 & ")"

#### barry houdini

##### MrExcel MVP
Are you just dealing with integers?

Try

=TEXT(A1,"0;(0);0")&"-"&TEXT(B1,"0;(0);0")

#### johnny52

##### Active Member
=IF(A1<0,"("&ABS(A1)&")",A1)&"-"&IF(B1<0,"("&ABS(B1)&")",B1)

wow thanks everybody for the great answers this one worked

Replies
0
Views
421
Replies
6
Views
840
Replies
7
Views
432
Replies
2
Views
327
Replies
8
Views
688

1,181,102
Messages
5,928,062
Members
436,586
Latest member
latintxn

### 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.

### Which adblocker are you using?

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

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