+ Reply to Thread
Results 1 to 14 of 14

highlight first day of the month on the column chart

  1. #1
    Forum Contributor
    Join Date
    07-13-2015
    Location
    Poland
    MS-Off Ver
    MS Office 365
    Posts
    171

    highlight first day of the month on the column chart

    Hi,

    I have the column chart where on the horizontal axis I have dates.
    Is it possible to highlight in any way (different colour, additional grid, whatever) the first day of each month or 7th day of the week (if I of course add that to my data)?

    chart.PNG

  2. #2
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: highlight first day of the month on the column chart

    Try something like this:

    Please Login or Register  to view this content.
    Capture.JPG
    Attached Files Attached Files
    Last edited by KOKOSEK; 11-02-2021 at 10:11 AM.
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  3. #3
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,903

    Re: highlight first day of the month on the column chart

    An easy way is also to plot those points as a separate series using formulas.
    Rory

  4. #4
    Forum Contributor
    Join Date
    07-13-2015
    Location
    Poland
    MS-Off Ver
    MS Office 365
    Posts
    171

    Re: highlight first day of the month on the column chart

    Excellent!
    Thanks a lot @KOKOSEK !

    @rorya - could you please show me how to do it using formulas?

  5. #5
    Forum Contributor
    Join Date
    07-13-2015
    Location
    Poland
    MS-Off Ver
    MS Office 365
    Posts
    171

    Re: highlight first day of the month on the column chart

    Hello again,

    i am trying to implement this solution to my case and I found that did not tell that I have Pivot Chart instead of Chart.
    In my case there is multicategory axis (date, weeknum) so I have difficulties with implementing above sulution to my case.

    BTW. I realized that probably have never created Chart (not Pivot Chart) with multicategory level so needed to find some instructions on the web how to do it
    Am I right that to do it, I need to have my data (date, weeknum, month, etc.) in adjacent columns couse only that way I am able to indicate data I want it to be my Category?
    Is there possible then to achieve my goal on multicategory Chart built this way?

  6. #6
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: highlight first day of the month on the column chart

    Could you attached sample file. Please check yellow banner at the top of the page.

  7. #7
    Forum Contributor
    Join Date
    07-13-2015
    Location
    Poland
    MS-Off Ver
    MS Office 365
    Posts
    171

    Re: highlight first day of the month on the column chart

    @KOKOSEK, what you have shown before is great but the main question from my site is there any different way to refer to category axis labels (multicategory) then merged string?

    In attached sample I want to have on my chart the date as well as week number. Need to colour the first day of each month.
    I referenced to category label (string) by a litte freaky formula. What if I'd like to show these data in a diffrent look (sheet sample2 - weeknumber above date)? Should I change formula in VBA?
    Or is there any way to allow me reference to each category (date, weeknum) separatelly?
    Attached Files Attached Files

  8. #8
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: highlight first day of the month on the column chart

    For chart1 on sheet Sample1:

    Please Login or Register  to view this content.
    For chart on Sample2 you have to change this line:

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by KOKOSEK; 11-03-2021 at 05:32 AM.

  9. #9
    Forum Contributor
    Join Date
    07-13-2015
    Location
    Poland
    MS-Off Ver
    MS Office 365
    Posts
    171

    Re: highlight first day of the month on the column chart

    Excellent,
    I wonder only why this feauture is not built in excel so the user could refer to the category name instead of part of the string created from all categories. If anybody change order of categories for better view, the macro should be adjusted

    So....
    Going further...
    How would you manage with case when you need to highlight first day of the month but only from days that consists some data?
    I prepared sample3. Would you do this similar?

    The cons of that solution is:
    - necessity to create additional columns in data table,
    - neccesity to show "first day" on my chart below axis (am I able to hide it?),

    What if I'd like to filter my data by additional fields? E.g 'colour' in sample4. My additional column consists additional criterias now.

    What if my database contains data that can be filteres by colour, shape, size, material, etc. Should be always prepared tens of additional columns to specifi the first day of the month for each possible configuration?
    Attached Files Attached Files

  10. #10
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: highlight first day of the month on the column chart

    Try use this on sheet sample4:

    Please Login or Register  to view this content.
    p.s. BTW now highlight is not first day of the month, it is date of first appearance in month.
    Attached Files Attached Files
    Last edited by KOKOSEK; 11-04-2021 at 03:58 AM.

  11. #11
    Forum Contributor
    Join Date
    07-13-2015
    Location
    Poland
    MS-Off Ver
    MS Office 365
    Posts
    171

    Re: highlight first day of the month on the column chart

    Hi KOKOSEK,

    Thanks for this.
    This solution is very similar to mine, but is it better in any terms of? If not, I think I will stay with my one cause adding conditional formatting to my cells (hundreds of rows) may reduce performance of calculations.

    Anyway...
    This still is not the perfect sulution because I cannot see the first day of month when filter more than two colours

  12. #12
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: highlight first day of the month on the column chart

    Quote Originally Posted by zico8 View Post
    This still is not the perfect sulution because I cannot see the first day of month when filter more than two colours
    Do you mean that except first day of appearance of particular colour, you want do highlight ALSO 1st day of month?

  13. #13
    Forum Contributor
    Join Date
    07-13-2015
    Location
    Poland
    MS-Off Ver
    MS Office 365
    Posts
    171

    Re: highlight first day of the month on the column chart

    Nope,
    I would like to highlight the first day of each month of those days that will be on the chart - depending on what filters I apply - e.g. two or three colors at the same time.

  14. #14
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: highlight first day of the month on the column chart

    Quote Originally Posted by zico8 View Post
    I would like to highlight the first day of each month of those days that will be on the chart - depending on what filters I apply - e.g. two or three colors at the same time.
    I understand that you mean 'first day of appearance of particular colour' as 1st day of month is the same for everything.
    Like this:

    Capture.JPG
    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. need to highlight column showing current week (1-4, as per month)
    By neddludd1983 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-22-2020, 06:30 AM
  2. [SOLVED] Highlight cell month based on dates in column years
    By billrogers184 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-30-2019, 09:55 AM
  3. [SOLVED] Highlight entire row if cells in column contain last, this, or next month.
    By asabur6 in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 01-31-2019, 11:40 AM
  4. Column chart, one data column of dates: count of month & year
    By brucemc777 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 08-11-2016, 12:49 PM
  5. [SOLVED] Highlight min & max column on bar chart
    By PDBartlett in forum Excel Charting & Pivots
    Replies: 36
    Last Post: 10-17-2014, 05:08 AM
  6. [SOLVED] Conditional Format - Highlight Month Column Based on Cell value
    By pauldaddyadams in forum Excel General
    Replies: 2
    Last Post: 08-06-2014, 06:36 AM
  7. Macro or VBA code to highlight specific named columns in a column chart
    By glenp99 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-03-2010, 05:12 AM

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