+ Reply to Thread
Results 1 to 12 of 12

Change cell colour by formula

  1. #1
    Forum Contributor
    Join Date
    12-11-2013
    Location
    St Moritz, GR, Switzerland
    MS-Off Ver
    Excel 2010
    Posts
    187

    Change cell colour by formula

    How do I get a logical formula to add text to a different cell?

    I'm checking a large spreadsheet redflagging things in different columns. I want another column telling me if there's any red flags at all in a row.

    eg. I need a the NAME (column A) to say something. Column B has

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If it's blank I know about it. How do I get the same formula to add text to something in column R? The object is with several formulas contributing to it I have a summary of redflags. Can post a mockup to explain if it helps.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Change cell colour by formula

    A formula only works on the cell it is in, it cannot "push" anything to another cell (unless of course that other cell has a formula that references the 1st cell).

    Have you tried using Conditional Formatting to make cells change color based on their contents?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Contributor
    Join Date
    12-11-2013
    Location
    St Moritz, GR, Switzerland
    MS-Off Ver
    Excel 2010
    Posts
    187

    Re: Change cell colour by formula

    I've figured conditional formatting, but can you format colour in one cell according to the contents of ten other cells? That's what I'm trying to accomplish.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Change cell colour by formula

    Yes you can, you use "use formula" for that

    Give it a shot, and let me know how you make out. If you have a problem, upload a sample workbook

  5. #5
    Forum Contributor
    Join Date
    12-11-2013
    Location
    St Moritz, GR, Switzerland
    MS-Off Ver
    Excel 2010
    Posts
    187

    Re: Change cell colour by formula

    test.xlsx
    Here's a sample. I want columns B, D and F to report to column G if A, C and E are blank.

  6. #6
    Forum Contributor
    Join Date
    12-11-2013
    Location
    St Moritz, GR, Switzerland
    MS-Off Ver
    Excel 2010
    Posts
    187

    Re: Change cell colour by formula

    Ah. I misread, FDibbins. I have no idea how to do so - I would like someone to show me how a formula can put text into another cell.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Change cell colour by formula

    Thanks for the file. Sorry, Im not exactly sure what you are trying to achieve? Could you provide a few sample answers and show how you got them?

  8. #8
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: Change cell colour by formula

    maybe this:
    =COUNTIF(A3:F3;"mistake")&" mistake(s)"
    Last edited by popipipo; 12-13-2013 at 03:09 PM.
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  9. #9
    Forum Contributor
    Join Date
    12-11-2013
    Location
    St Moritz, GR, Switzerland
    MS-Off Ver
    Excel 2010
    Posts
    187

    Re: Change cell colour by formula

    test.xls

    FDibbins: attached is the text of what I'm trying to achieve except I want a formula to do it automatically.
    Popipipo: sorry mate, the formula doesn't work (at least in Mac Numbers which I only have access to).
    Last edited by johnandrews; 12-13-2013 at 04:25 PM.

  10. #10
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: Change cell colour by formula

    =IF(COUNTIF(B3:F3,"mistake")>0,"mistake","OK")
    Is this better?

  11. #11
    Forum Contributor
    Join Date
    12-11-2013
    Location
    St Moritz, GR, Switzerland
    MS-Off Ver
    Excel 2010
    Posts
    187

    Re: Change cell colour by formula

    Evidently.

    I was going to thank you in your presumably native Dutch, but I realised that was the relatively unexciting 'danke u.' I'll opt for Zalig kerstfeest en Gelukkig Nieuwjaar instead.
    Attached Files Attached Files

  12. #12
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: Change cell colour by formula

    Thank you

    And for you and all other members

    Enjoy the Christmas season,
    and toast to a beautiful new year!
    toast.jpg

+ 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. [SOLVED] Cell colour change, based on formula value from another cell
    By sonicsys in forum Excel General
    Replies: 12
    Last Post: 06-19-2013, 10:48 PM
  2. [SOLVED] Can I change a cell colour using an IF formula, not conditional formatting?
    By suxrule in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 01-29-2012, 10:52 AM
  3. Using VB Code to change cell colour on back of formula
    By Twaddy in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 09-30-2010, 04:29 PM
  4. Formula to change cell colour
    By Chuckie1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-30-2009, 01:19 AM
  5. Change cell colour based on formula result
    By fixednfinal in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 04-29-2005, 05:29 PM

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