Jul 10 2021 09:51 PM
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.
Jul 10 2021 11:05 PM
@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.
Jul 11 2021 12:37 AM - edited Jul 11 2021 12:39 AM
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?
Jul 11 2021 01:29 AM
@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?
Jul 11 2021 02:19 AM
@Riny_van_Eekelen No, that's fine. Let it be just 10. You can see there's a column days that's the difference of start and end date. I just want to check the days in the horizontal line increases one by one on date parameter. Say start date is 07/01/2021, so the chart increases to one in the horizontal line, then for 07/01/2021, it'll again progress to 2. Finally when it'll come to date 7/10/2021, then we'll see the line depicts on the horizontal line 10 (No more to go). So here, date will be tracked each time checking the excel file, I believe.
Jul 11 2021 06:22 AM
@AT-2017 Is your problem solved now or do you still need something else? If not solved, I'm afraid I've lost you and just don't understand what you are asking for.
Jul 11 2021 11:36 PM - edited Jul 12 2021 02:14 AM
@Riny_van_Eekelen please see this sample and just check the id with 1002 as well Date in the right. When the date will change, the bar chart will increase one by one. Though no functionality is required to change the date, just on daily-basis (After 24 hours) the bar will be increased.
Jul 12 2021 02:54 AM