ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Is there a way to vlookup and keep format? (https://www.excelbanter.com/excel-programming/367254-there-way-vlookup-keep-format.html)

farful[_4_]

Is there a way to vlookup and keep format?
 

Hi, I'm looking for a way to do vlookup, and I want to keep the format
in argument 3 (where argument 3 in "=vlookup(A2,MyLookup,2,0)" is "2")


--
farful
------------------------------------------------------------------------
farful's Profile: http://www.excelforum.com/member.php...o&userid=36172
View this thread: http://www.excelforum.com/showthread...hreadid=561591


Jim Thomlinson

Is there a way to vlookup and keep format?
 
Nope... VLookup is a function and functions can ONLY return values. They can
not modify formats or other settings. This is just as true of built in
functions as it is of user defined functions...
--
HTH...

Jim Thomlinson


"farful" wrote:


Hi, I'm looking for a way to do vlookup, and I want to keep the format
in argument 3 (where argument 3 in "=vlookup(A2,MyLookup,2,0)" is "2")


--
farful
------------------------------------------------------------------------
farful's Profile: http://www.excelforum.com/member.php...o&userid=36172
View this thread: http://www.excelforum.com/showthread...hreadid=561591



farful[_5_]

Is there a way to vlookup and keep format?
 

Hmm, in that case, anyone have a VBA code or such that would vlookup an
keep format

--
farfu
-----------------------------------------------------------------------
farful's Profile: http://www.excelforum.com/member.php...fo&userid=3617
View this thread: http://www.excelforum.com/showthread.php?threadid=56159


Tim Williams

Is there a way to vlookup and keep format?
 
Not using a formula - you'd have to use VBA to search for the match and copy/paste the return value

Tim

"farful" wrote in message
...

Hmm, in that case, anyone have a VBA code or such that would vlookup and
keep format?


--
farful
------------------------------------------------------------------------
farful's Profile: http://www.excelforum.com/member.php...o&userid=36172
View this thread: http://www.excelforum.com/showthread...hreadid=561591





All times are GMT +1. The time now is 06:05 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com