+ Reply to Thread
Results 1 to 12 of 12

color red major column

  1. #1
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    color red major column

    hi to all
    is this possible in the attached chart?

    IF values G>value C column G turns red

    max
    Attached Files Attached Files

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,475

    Re: color red major column

    I don't know if you can just change 1 without VBA. You can change a series if it is a negative value.

    Anyway here is a vba solution

    Please Login or Register  to view this content.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: color red major column

    Is this close enough?
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: color red major column

    Hi daves excel,
    your macro how to apply it to the chart?

  5. #5
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: color red major column

    Dim error

    Please Login or Register  to view this content.
    Last edited by max_max; 12-08-2019 at 08:30 AM.

  6. #6
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,475

    Re: color red major column

    If you need to dim x just "dim x" would work. x is not a range.

    Were you able to check out Glen's solution?

  7. #7
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: color red major column

    The glen solution does not seem right to me.
    Only column G if greater than C must be colored red.

    Your solution, daves if there are more charts it works on all. It should only work on columns that are larger
    Attached Files Attached Files
    Last edited by max_max; 12-08-2019 at 09:27 AM.

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: color red major column

    You didn't say that clearly...

    "Only column G if greater than C must be colored red"

  9. #9
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: color red major column

    See post#7

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: color red major column

    You didn't say that clearly...

    "Only column G if greater than C must be colored red"

    Try it now (adjust values in green shaded row).
    Attached Files Attached Files

  11. #11
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: color red major column

    The colum G it becomes red only if greater.
    And for new rows added?
    Attached Files Attached Files

  12. #12
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: color red major column

    You never mentioned extra rows until now...

    One tiny tweak and then... this?
    Attached Files Attached Files

+ 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] Display top three results based on column, based on major
    By alexllap in forum Excel General
    Replies: 2
    Last Post: 07-13-2017, 05:59 PM
  2. Color the column bars of a chart the same color as the text in the underlying data
    By ajm1991 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-11-2016, 04:55 PM
  3. Replies: 2
    Last Post: 02-04-2013, 02:00 PM
  4. Color if date in column n and stop color at column n
    By dalet in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-19-2009, 01:55 PM
  5. Major help Required
    By khalid79m in forum Excel General
    Replies: 5
    Last Post: 12-30-2006, 09:37 PM
  6. Need major help...
    By spyrule in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-12-2006, 12:52 PM
  7. Need major help
    By Shadis in forum Excel General
    Replies: 0
    Last Post: 07-24-2005, 04:23 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