Hi,
This would work if both formula's are negative
=IF(AND(SIGN(A1)=-1,SIGN(B1)=-1),SUBSTITUTE("("&A1&")/("&B1&")","-",""),A1&"/"&B1)
VBA Noob
Hi,
This would work if both formula's are negative
=IF(AND(SIGN(A1)=-1,SIGN(B1)=-1),SUBSTITUTE("("&A1&")/("&B1&")","-",""),A1&"/"&B1)
VBA Noob
_________________________________________
![]()
![]()
Credo Elvem ipsum etian vivere
_________________________________________
A message for cross posters
Please remember to wrap code.
Forum Rules
Please add to your signature if you found this link helpful. Excel links !!!
Thanks VBA Noob,
I use : ="("&-A1&")/("&-B1&")"
This works because as you said, I know for sure that both numbers are negative.
I only wish there was a way to create a custom format to automate that.
Thanks though.
Use the TEXT function, something like
=TEXT(A1,"0;(0);0")&"/"&TEXT(B1,"0;(0);0")
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks