Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 116
Default VLookup and cell shading

I am pulling in data using a Vlookup and would like for it to keep the same
cell color shading as in the original spreadsheet that it is pulling from.
Is this possible?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default VLookup and cell shading

No, a formula can not be used to convey formatting information, only values.

If the cell shading is applied through conditional formatting, though, the
same conditional formatting could be applied to the cell with the VLOOKUP
formula in, to achieve the same effect.

Pete

"Sherry" wrote in message
...
I am pulling in data using a Vlookup and would like for it to keep the same
cell color shading as in the original spreadsheet that it is pulling from.
Is this possible?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
mvk mvk is offline
external usenet poster
 
Posts: 6
Default VLookup and cell shading

Yes! But you would need to use VBA. You first need to identify the address
of the cell with the value that was chosen, and then use VBA to return the
format of this cell and then apply that format to the new cell.

To do the first bit you could add a column which holds the row number, you
know the column letter and you can now make a reference to the cell.

Hope this helps, if not happy to go into more detail.

MVK


"Sherry" wrote in message
...
I am pulling in data using a Vlookup and would like for it to keep the same
cell color shading as in the original spreadsheet that it is pulling from.
Is this possible?


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
is it possible to sort the data by cell shading or cell color? L.T. Excel Discussion (Misc queries) 3 July 17th 06 08:24 PM
Conditional Cell Shading (based on the shading of other cells) Tubby Excel Worksheet Functions 2 June 20th 06 10:03 PM
shading a rowwhen a time is entered but no shading when 0 is enter fomula problems Excel Worksheet Functions 7 October 23rd 05 08:44 PM
Vlookup Function Cell shading waldersha Excel Discussion (Misc queries) 5 August 19th 05 08:49 PM
change cell shading whenever contents different from previous cell zooeyhallne Excel Discussion (Misc queries) 3 June 6th 05 09:59 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"