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

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
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,224,823
Messages
6,181,182
Members
453,021
Latest member
Mohamed Magdi Tawfiq Emam

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