+ Reply to Thread
Results 1 to 7 of 7

Extracting Data from Coloured Cells

  1. #1
    Registered User
    Join Date
    11-15-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    11

    Question Extracting Data from Coloured Cells

    Hey guys!

    Hoping someone can help!

    I'm looking to extract data into an existing worksheet (let's say sheet1 for example), from another worksheet called "Docs for update".
    Basically, the "Docs for update" tab is a repository of all documents. The cells I'm working from would be in Column B & C (column B contains document name; column C contains the associated doc number)

    The macro/similar would return all document names and numbers that are within coloured cells (red fill) in a list on sheet1. (As long as the list contains no spaces between the lines, I'd be happy!)

    Thanks in advance for the help guys!
    Last edited by darrenfiend; 03-03-2015 at 12:04 PM. Reason: Edited to refer to how coloured

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Extracting Data from Coloured Cells

    names and numbers coloured red on "Docs for update" would go into Column B Sheet1? Font red?

  3. #3
    Registered User
    Join Date
    12-12-2014
    Location
    PL
    MS-Off Ver
    2010
    Posts
    55

    Re: Extracting Data from Coloured Cells

    Hi,

    might need just a little bit of adjusting to your needs. Macro looks for red cell fill (not sure if that is what you wanted). You also need to provide your destination workbook name and sheet name. By default the first matching record will be copied to the first row in your destination workbook.

    Please Login or Register  to view this content.
    Last edited by JazzKult; 03-03-2015 at 11:22 AM.

  4. #4
    Registered User
    Join Date
    11-15-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Extracting Data from Coloured Cells

    Sorry, just updated. Should have specified that the cells are filled red with conditional formatting.

  5. #5
    Registered User
    Join Date
    11-15-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Extracting Data from Coloured Cells

    Quote Originally Posted by JazzKult View Post
    Hi,

    might need just a little bit of adjusting to your needs. Macro looks for red cell fill (not sure if that is what you wanted). You also need to provide your destination workbook name and sheet name. By default the first matching record will be copied to the first row in your destination workbook.

    Please Login or Register  to view this content.
    Thanks for the quick reply. I'm getting an overflow error at the For i = 2 To Range("B1").End(xlDown).Row part though. Any ideas why that's happening?

  6. #6
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Extracting Data from Coloured Cells

    I don't think the solution offered will work for cells colored by conditional format.

  7. #7
    Registered User
    Join Date
    12-12-2014
    Location
    PL
    MS-Off Ver
    2010
    Posts
    55

    Re: Extracting Data from Coloured Cells

    @ JOHN H. DAVIS - you're right, it does not work for conditionally formatted cells

    @ darrenfiend - can you upload a workbook with some sample entries? Will be easier to get that error fixed and find a different solution for detecting the cells you want to be copied.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Auto copy cells including a cells Coloured background (colour fill)
    By rick.parry in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-06-2013, 04:51 AM
  2. How can I count coloured cells (coloured using Conditional Formatting)
    By franfry in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-15-2013, 02:40 PM
  3. Count coloured cells - But treat cells with colour and value as 0.5
    By Wabby in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-19-2009, 12:26 PM
  4. Adding data to coloured cells
    By Paul Sheppard in forum Excel General
    Replies: 1
    Last Post: 06-29-2006, 04:20 AM
  5. [SOLVED] Using data from coloured cells in a chart
    By Mikey9131 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-26-2005, 04:10 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1