Forum Discussion

AT-2017's avatar
AT-2017
Copper Contributor
Jul 11, 2021

Dynamic Chart Depiction On Excel

I've a chart in excel that shows a person's start and end date. Depending upon day difference, it displays the data as follows:

 

It shows person id in the left and the bar depicts the total days. For the day difference, I used this formula:

=(C2 - B2) + 1 

Simple enough! But now I've a requirement where I've to show fixed days in the horizontal line, say days up to 60 and if a person has total days of 10 calculating its start and end dates, the chart should depict accordingly. As an example, a person has total 10 days from 07/01/2021 to 07/10/2021, then the chart should increment the bar chart one by one based on date. Say 07/01/2021 is day 1, 07/02/2021 day 2 and so on. The bar chart will raise based on the days counted each day. I am not sure if this can be done using chart or any other tool in excel? Would expect your valuable suggestion in this regard - Thanks.

 

 

 

7 Replies

  • Riny_van_Eekelen's avatar
    Riny_van_Eekelen
    Platinum Contributor

    AT-2017 Perhaps you mean that the horizontal axis should always show 0 to 60 days. Then, in Excel for the desktop you can over-ride the maximum bound of the axis and set it to 60. To do that, right-click on the horizontal axis, choose Format Axis and change the setting. It will then look like this.

    Now, you also tagged your post "Excel on Mobile". I believe you can't do it there. So you would have to set up the chart on the desktop version first. If it is possible in the mobile version, I just haven't found it. And that's probably because I hardly ever use that platform.

    • AT-2017's avatar
      AT-2017
      Copper Contributor

      Thanks for the idea and really appreciate it. But what about this - As an example, a person has total 10 days from 07/01/2021 to 07/10/2021, then the chart should increment the bar chart one by one based on date. Say 07/01/2021 is day 1, 07/02/2021 day 2 and so on. The bar chart will raise based on the days counted each day (From previous post, probably when someone opens an excel file each day)? Is there any easy way to make it work?

      • Riny_van_Eekelen's avatar
        Riny_van_Eekelen
        Platinum Contributor

        AT-2017 When you say "each day", do yo mean you want a label on the horizontal axis for every day, i.e. 1,2,3,4 etc. all the way to 60? Or perhaps gridlines for every day and labels every 10th?

         

Resources