+ Reply to Thread
Results 1 to 7 of 7

Cell text based on another cell color

  1. #1
    Registered User
    Join Date
    09-25-2013
    Location
    Phoenix
    MS-Off Ver
    Excel 2007
    Posts
    61

    Cell text based on another cell color

    Hi all,

    I'd like to populate a cell with the text of another cell if it is a certain color. Say cell A1 is red and has the text ABC written.I would like something that would populate like this for example:

    IF(Cell A1 is Red, populate cell B1 with text from A1) .... so that B1 would just say ABC in it now.

    I know there is no built-in function based on cell color, but i have been able to return a value using a cellcolor function. Currently, my function is =IF(cellcolor(A1)=3, "true", "") but this doens't return the text from cell A1.


    I appreciate any help thanks!

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Cell text based on another cell color

    Are you using conditional formatting to make the cell red? If so you are going to have issues with the route you choose. Conditional formatting would probably work for B1 too.

  3. #3
    Registered User
    Join Date
    09-25-2013
    Location
    Phoenix
    MS-Off Ver
    Excel 2007
    Posts
    61

    Re: Cell text based on another cell color

    thanks for the reply. No, the color is being manually filled. I've seen all sorts of code for color and text functions, but nothing that outputs the text of a cell into another based on color.

    thanks!

  4. #4
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Cell text based on another cell color

    Try:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    09-25-2013
    Location
    Phoenix
    MS-Off Ver
    Excel 2007
    Posts
    61

    Re: Cell text based on another cell color

    Thanks stnky. now the way my table i am pulling this info from is organized, i want to search columns D3:D21, H3:H21, L3:L21, etc. Currently, it is copying text from a red cell outside my desired range. Could you tell me how to alter my code to change my LR? thanks!

  6. #6
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Cell text based on another cell color

    I am not 100% sure what you mean but give this a try and see if it works for you:

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    09-25-2013
    Location
    Phoenix
    MS-Off Ver
    Excel 2007
    Posts
    61

    Re: Cell text based on another cell color

    Looking good!

    Thanks!

+ 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. cell text based on other cell color
    By cp41 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-25-2013, 03:26 PM
  2. Replies: 5
    Last Post: 01-31-2013, 11:25 PM
  3. Condition based on Cell Text Color
    By yogesh1904 in forum Excel General
    Replies: 2
    Last Post: 09-09-2012, 11:21 AM
  4. Color cell text based on date
    By Byron in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-09-2005, 09:00 PM
  5. change text color based on adjacent cell text color
    By matthewst in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-01-2005, 03:49 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