Vlookup to pull Value & Formats

catmanjake

New Member
Joined
Jul 20, 2010
Messages
3
Is there a way to use a Vlookup table or something similar that would pull Values as wells as Formats? Thanks for any help you can give me.
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
You can return the format of a cell with the following formula:

=CELL("FORMAT",A1)

You can find out what the code means by looking up the CELL function in the Excel help menu.

I don't know if you can use this formula with a VLOOKUP. When I tried, it didn't work. Maybe someone else knows...

Pete
 
Upvote 0
Welcome to the Board!

A formula won't change cell formats unless you're using Conditional Formatting. You'd need to use VBA. The most likely candidate would be the Find method to replicate your VLOOKUP, then either apply the format of the found value directly or Copy-->Paste Special-->Formats.

HTH,
 
Upvote 0

Forum statistics

Threads
1,211,696
Messages
6,103,357
Members
447,860
Latest member
thuexetheothang

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