Formatting negative value when using Concatenate function

excelq

New Member
Joined
Feb 10, 2005
Messages
5
Say I have two values in two different cells: A1) -2.568 and B1) 7.134
in another cell, I want to combine the two but have it look this way:
-$2.6 / $7.1
I got close using the concantenate formula but it on the negative values, it returns the '-' sign before the '$' sign ($-2.6, rather than -$2.6)

Here's the formula I used:
="$"&(ROUND(A1,1))&" / $"&(ROUND(B2,1))

which returns: $-2.6 / $7.1

Is there a way to have the '-' sign come BEFORE the '$' sign?

any help would be appreciated!
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Try this:
=IF(A1<0,"-","")&"$"&(ROUND(ABS(A1),1))&" / "&IF(B2<0,"-","")&"$"&(ROUND(ABS(B2),1))
 
Upvote 0
How about this:

=TEXT(ROUND(A1,1), "$#.##")&"/"&TEXT(ROUND(B1,1), "$#.##")
 
Upvote 0
..

=IF(A1<0,"- $"&(ROUND(ABS(A1),1)),"$"&(ROUND(A1,1)))&" / " &IF(B1<0,"- $"&(ROUND(ABS(B1),1)),"$"&(ROUND(B1,1)))
 
Upvote 0

Forum statistics

Threads
1,214,927
Messages
6,122,311
Members
449,080
Latest member
jmsotelo

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