How do I get a vlook-up to return a value with the correct formatting?

sinasdf

New Member
Joined
Dec 4, 2017
Messages
37
Lets say I have in column A, fruit names:

Apple
Banana
Orange

and in column B, I have price discounts for the corresponding fruit:
$0.20
5%
$1.00

If I were to do a look-up in column C, those prices end up being:
0.2
.05
1

Is there a way for me to keep the formatting? I can't format the entire column C, as my discount pricing can be both a percentage and a dollar value.

Thanks,
Josh
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
I get what you're saying, but unfortunately that would have to involve some additional steps - I'm hoping that there is a formula or a way to format the cell so that I do not have to do anything after each look-up
 
Upvote 0
Vlookup and similar functions can only find cell contents, not formats. You could write something in VBA, but the method i suggested above is easier.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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