+ Reply to Thread
Results 1 to 29 of 29

[SOLVED] How do I change the font color of an entire row auto when a specific is added?

  1. #1
    Registered User
    Join Date
    08-14-2013
    Location
    FL, US
    MS-Off Ver
    Excel 2007
    Posts
    15

    [SOLVED] How do I change the font color of an entire row auto when a specific is added?

    I want to be able to change the font color(red) of an entire row on Sheet1 automatically, if a specific entry is added in a particular column. I know I will need to have a list of all of the items I want identified. I am hoping to put this list on Sheet2. Is that possible or will the list need to be on Sheet1? Either way, how can I accomplish this?

    For example:
    I have a spreadsheet that contains information about housing. If I am inputing data and enter "Orange County", I want the font color of that row changed. Can I make a list of counties that I want to avoid on Sheet2 and build that list as I go?

    I hope this is clear enough. Thanks in advance.

    {{SOLVED}}
    Last edited by Admobeer; 09-02-2013 at 04:52 AM. Reason: {{SOLVED}}

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: How do I change the font color of an entrie row automatically when a specific is added

    Are you familiar with conditional formatting?
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Registered User
    Join Date
    08-14-2013
    Location
    FL, US
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: How do I change the font color of an entrie row automatically when a specific is added

    Sorry, no. I have never used that function but if that's the route I need to go I will take a crash course this evening.

  4. #4
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: How do I change the font color of an entrie row automatically when a specific is added

    Well that is exactly what you need, although if you wanted to prevent certain things from being allowed in certain cells you can use data validation and a list.

    Google both of those and you should find an answer, otherwise post a sample data workbook and we can help you further.

  5. #5
    Registered User
    Join Date
    08-14-2013
    Location
    FL, US
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: How do I change the font color of an entrie row automatically when a specific is added

    Thanks Mike,

    Conditional Formatting has solved my problem for visually identifying when a specific item is entered. But, can I make it do the whole row? Also, a big one for me is that my list be on another sheet. Is this possible within excel, to pull the info from sheet2 instead of the info being a part of the active spreadsheet?

  6. #6
    Registered User
    Join Date
    08-14-2013
    Location
    FL, US
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: How do I change the font color of an entrie row automatically when a specific is added

    I spoke to soon. No matter what I type turns red.

  7. #7
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: How do I change the font color of an entrie row automatically when a specific is added

    Yes you can use lists from other sheets.

    Post the sample data set as explaining the solution is more work than doing it and letting you look at the answer.

  8. #8
    Registered User
    Join Date
    08-14-2013
    Location
    FL, US
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: How do I change the font color of an entrie row automatically when a specific is added

    Sheet1
    Address City County Sub-Division
    11 CAMELLA LN TAMPA Hillsborough
    94 SEDGEFIELD ST BRANDON Hillsborough
    13 CREEK EDGE DR RIVERVIEW Hillsborough
    51 DUNHAM STATION DR TAMPA Hillsborough


    Sheet2
    Sub-Division
    Stoney Brooke
    Highlands Phase V
    Traditions at Edgewood


    So, If I am entering data into Sheet1, D2 {the blank cell under Sub-Division] and I type Stoney Brooke, I want Sheet1,Row2 FONT to turn red. If I type Marshmallow in that same place, I don't want it to do anything. I want whatever is in my column on Sheet2, Column A (excluding the header)to dictate if Sheet1 will have a red Font row.

    I hope that's a little more clear.

    {That looks terrible}
    Last edited by Admobeer; 08-20-2013 at 07:41 PM. Reason: formatting

  9. #9
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: How do I change the font color of an entrie row automatically when a specific is added

    Nope, ATTACH A WORKBOOK not data in text in this forum. I dont have the patience to digest it on the forum but I DOOOO like playing with IN EXCEL.

    I also wouldnt bother with the conditional formatting, but I would use data validation to not allow things to be entered without being on the "approved" list.

    Either way you can make it work but Im not typing any more.

  10. #10
    Registered User
    Join Date
    08-14-2013
    Location
    FL, US
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: How do I change the font color of an entrie row automatically when a specific is added

    Please excuse my noob-ness to the forum. Redflag_Sub.xlsx

    What I'm trying for is to make the row red if an item from my redflag list is entered into the subdivision column. If it's not on the list then I don't want it to do anything.

    Thank you for your patience.
    Last edited by Admobeer; 08-21-2013 at 09:08 AM.

  11. #11
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: How do I change the font color of an entrie row automatically when a specific is added

    You need to remove the blanks in Subdivision as shown:

    Redflag_Sub-updated.xlsx

    EDIT: and your conditional formating is shown here,

    Sorry I have a busy day and didnt explicitly type that out
    Last edited by mikeTRON; 08-21-2013 at 11:55 AM. Reason: to clarify that solution is also posted

  12. #12
    Registered User
    Join Date
    08-14-2013
    Location
    FL, US
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: How do I change the font color of an entrie row automatically when a specific is added

    >F5, >Special, >Blanks, [Delete]

    OK? So, they are now deleted.

  13. #13
    Registered User
    Join Date
    08-14-2013
    Location
    FL, US
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: How do I change the font color of an entrie row automatically when a specific is added

    ..or..

    Sub Remove_blank_rows()

    Selection.SpecialCells(xlCellTypeBlanks).Select
    Selection.Delete Shift:=xlUp

    End Sub

  14. #14
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: How do I change the font color of an entrie row automatically when a specific is added

    LOL, yes I am familiar with how to delete things in excel

    I deleted them and added the conditional formatting in the excel file above,I was jut letting you know you had to do it in order to use the simple logic.

  15. #15
    Registered User
    Join Date
    08-14-2013
    Location
    FL, US
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: How do I change the font color of an entrie row automatically when a specific is added

    Please excuse my ignorance, but it looks to me like you deleted the blank rows on Sheet2 and copied the list to ColumnD in Sheet1. My problem is that if ColumnD is blank and an entry is made that matches an item on the list from ColumnA on Sheet2 then I want the Font on that row on Sheet1 to change to Red.

    And please excuse my smart-a55 side.

  16. #16
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: How do I change the font color of an entrie row automatically when a specific is added

    The formulas are there to make it work, it seems I am still missing your point which is why it is ideal to mock up a before and After with flat data and flat outcome.

    Change the formula to work with the appropriate column, sorry I have meetings to go to.

  17. #17
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: How do I change the font color of an entrie row automatically when a specific is added

    The formula is in the Conditional Formatting, Manage Rules. This one formula covers the whole range from that you have. I have extended the range down to row 200 and added Data Validation so that Subdivisions not in the list will not be allowed. When a valid entry is made, the row will turn red.

    The Conditional Formatting formula can be shortened to:

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


    In the file that I uploaded, change the $A$194 to $a$200 (I made a slip when selecting the range)
    Attached Files Attached Files
    Last edited by newdoverman; 08-21-2013 at 03:59 PM.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  18. #18
    Registered User
    Join Date
    08-14-2013
    Location
    FL, US
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: How do I change the font color of an entrie row automatically when a specific is added

    Thanks Newdoverman but I want everything to be allowed. I just need my Subdivision list to be noticed and brought to everyone's attention when one of the items is entered into my Property Sheet. Also, with CF, doesn't the reference info have to be on the same sheet?

  19. #19
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: How do I change the font color of an entrie row automatically when a specific is added

    Why do you keep asking us if the reference needs to be on the same sheet when you could and should test it out yourself in excel?

    You will need some logic to aggregate your list from the subdivision tab to remove all the 0s in order to create a clean CF list to appy the rules.

  20. #20
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: How do I change the font color of an entrie row automatically when a specific is added

    The CF doesn't have to be on the same worksheet.

    To clear the Data Validation, select column D, click on the Data Tab, when prompted to extend the selection select NO then click CLEAR ALL.

  21. #21
    Registered User
    Join Date
    08-14-2013
    Location
    FL, US
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: How do I change the font color of an entrie row automatically when a specific is added

    To explain:

    Newdoverman, when I opened your upload there was not a rule added that I could “manage”. So, I selected Column D, created a new rule and pasted your formula exactly as is into [Format values where this formula is true:] and changed the format to red. Nothing happened.

    So, I went back and looked at the CF rules mgr. and selected edit. This is what was there
    [="MATCH($D2,Subdivision!$A$2:$A$200,0)"] without the brackets.

    I removed the quotation marks (because I didn’t know what else to do) and hit OK.
    I rcv’d the message “You cannot use references to other worksheets or workbooks for Conditional Formatting criteria”.

    I moved my column to the same sheet and changed the reference in the formula to [="MATCH($D2,$G$2:$G$200,0)"], nothing happens. I removed the quotation marks, leaving my test data in place, hit OK and the entry above my target item turns red.

    Also, I am not prompted by anything when I select the Data Tab.
    Attached Files Attached Files
    Last edited by Admobeer; 08-23-2013 at 10:04 AM.

  22. #22
    Forum Contributor Dave H9's Avatar
    Join Date
    03-10-2011
    Location
    Manchester, England
    MS-Off Ver
    Excel 2007
    Posts
    418

    Re: How do I change the font color of an entrie row automatically when a specific is added

    Got to be honest I didn't think you could reference external data for a conditional format.

    I have attached what I think you are after, albeit with the subdivision list on the same sheet and with no validation.

    HTH

    Dave H
    Attached Files Attached Files
    - Mark your post [SOLVED] if it has been answered satisfactorily, by editing your original post using advanced mode.
    - Thank those that provided useful help, its nice and its very well appreciated...use the star on the lower left of the post

  23. #23
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: How do I change the font color of an entrie row automatically when a specific is added

    I have no idea what you are doing. Perhaps, the active cell that you had selected was not in column D. I downloaded the file that I uploaded to you and it works perfectly. Here is the file again with the Data Validation removed. There is no problem at all with the list being on another worksheet within the workbook.
    Attached Files Attached Files
    Last edited by newdoverman; 08-23-2013 at 10:42 AM.

  24. #24
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: How do I change the font color of an entrie row automatically when a specific is added

    Quote Originally Posted by newdoverman View Post
    I have no idea what you are doing. I downloaded the file that I uploaded to you and it works perfectly. Here is the file again with the Data Validation removed.
    I opened your file previously and it was working as designed. What version of Excel are you using Admobeer?

  25. #25
    Registered User
    Join Date
    08-14-2013
    Location
    FL, US
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: How do I change the font color of an entrie row automatically when a specific is added

    I'm using 2007. So far, Dave H9's suggestion seams to be what will work best for me. Newdoverman, I still don't see any rules in the Redflag_Sub(3) that you uploaded and I have yet to be able to pull anything off a non-active worksheet.

    I'm still not able to make the whole row red but I will continue to work on it. I'm guessing that I would just add another rule.

  26. #26
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: How do I change the font color of an entrie row automatically when a specific is added

    It must be a version conflict between Excel 2007 and Excel 2010 that I use because I downloaded the file I sent to you and I can't make it fail and the rule is listed under Conditional Formatting, Manage Rules.

  27. #27
    Forum Contributor Dave H9's Avatar
    Join Date
    03-10-2011
    Location
    Manchester, England
    MS-Off Ver
    Excel 2007
    Posts
    418

    Re: How do I change the font color of an entrie row automatically when a specific is added

    Admobeer,

    Try the attached using vba which will allow the subdivision on an different worksheet. You need to enable macros and note that it is case sensitive.

    Hope that sorts it

    Dave H
    Attached Files Attached Files

  28. #28
    Registered User
    Join Date
    08-14-2013
    Location
    FL, US
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: How do I change the font color of an entrie row automatically when a specific is added

    Newdoverman, I opened your file in Excel2010 and it worked liked you said. I was prompted to enable editing but I do not receive this in 2007. I can't find anything in my settings that should restrict it.

    Thanks for your help guys.

  29. #29
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: How do I change the font color of an entire row automatically when a specific is added

    That is the way Excel 2010 works. You have to enable editing in order to edit.

    There must be a conflict in how the two versions of Excel use Conditional Formatting.
    Last edited by newdoverman; 08-29-2013 at 03:00 PM.

+ 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. Replies: 3
    Last Post: 07-08-2010, 06:48 PM
  2. [SOLVED] Can Excel automatically change the font color of an expired date?
    By tstorie in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-17-2006, 11:55 AM
  3. [SOLVED] How do I get the font color to change automatically depending on
    By gtcarlsbad in forum Excel General
    Replies: 2
    Last Post: 01-31-2005, 11:06 PM
  4. Font to change color automatically based on value in cell.
    By mtwelsh72 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-23-2005, 03:06 PM
  5. Replies: 1
    Last Post: 01-04-2005, 12:06 AM

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