If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Sorting/Extracting by cell color

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-23-11, 08:07
seoservice seoservice is offline
Registered User
 
Join Date: Feb 2011
Location: Miami, Florida
Posts: 10
Sorting/Extracting by cell color

Hi Guys !!!


Is it possible to have excel take data from a colored cell (or cells) and display it somewhere else?

I've been trying this for some time and I've had no success.

Thanks
Manish
Reply With Quote
  #2 (permalink)  
Old 02-23-11, 10:27
Colin Legg Colin Legg is offline
Registered User
 
Join Date: Sep 2008
Location: London, UK
Posts: 495
You can sort/filter by colour in Excel 2007 or later.

If there is an underlying logic as to how the cells are coloured (eg. conditional formatting) then that logic could be used to extract the required records.
__________________
Colin

RAD Excel Blog

Other tutorials:
Array Formulas | Deleting Rows with VBA
Reply With Quote
  #3 (permalink)  
Old 03-03-11, 13:28
Nielsje Nielsje is offline
Registered User
 
Join Date: Mar 2011
Location: Amsterdam, NL
Posts: 5
Or use VBA in previous versions of Excel (in 2003 or earlier)

For example, the following code line only copies the value of cell A1 to cell B1 if the color of the value in cell A1 is red.

Code:
If Range("A1").Font.Color = vbRed Then Range("B1").Value = Range("A1").Value
Hope this helps..
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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