Change format of result cell from Vlookup

Celticfc

Board Regular
Joined
Feb 28, 2016
Messages
153
Hi,

I've used a Vlookup and result is 35.10- (the minus sign is at the end of the number).
Now, I really need that number in brackets. If I change the result cell format to anything from date to currency etc, it has no effect. TEXT function is of no use either. Is it a bug or something?

I'm not looking to change the format of the original cell that I'm looking up - that needs to stay general format.

Thank you!

EDIT: I JUST FIGURED OUT THAT THE PROBLEM IS DUE TO THE FACT THAT MINUS SIGN IS AT THE END OF THE NUMBER, NOT BEGINNING. WHAT DO WE DO NOW? I STILL NEED IT IN BRACKETS, THANK YOU.
 
Last edited:

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
No, my guess is that your entry is text and not numeric. Formatting does not work on text (strings), only valid numbers and dates.
So, you will need to convert that to a numeric value before you can apply numeric formatting options to it.

If it was a value in cell A1, here is a formula that will convert those text entries to numbers:
Code:
=IF(RIGHT(A1,1)="-",0-LEFT(A1,LEN(A1)-1),0+A1)
and then you can apply your desired numeric formatting.
 
Upvote 0
Can you tell me what appears in the Home ribbon in the Number block when you have your cursor on the cell with your 35.10- result?


-- removed inline image ---
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,472
Messages
6,125,011
Members
449,204
Latest member
tungnmqn90

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