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.
 

Some videos you may like

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December

pagrender

Well-known Member
Joined
Sep 3, 2008
Messages
652
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
 

Smitty

Legend
Joined
May 15, 2003
Messages
29,536
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,
 

Watch MrExcel Video

Forum statistics

Threads
1,123,320
Messages
5,600,946
Members
414,417
Latest member
Nobu

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
Top