ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Dates Keep changing in Excel Charts (https://www.excelbanter.com/excel-discussion-misc-queries/75909-dates-keep-changing-excel-charts.html)

Tom

Dates Keep changing in Excel Charts
 
OK I need a solution Without using macros (long story). I have a chart
for which I want the x axis to show dates, the maximum to be yesterday
(today()-1), stretching back 30 days but only showing weekdays,
Obviously this will update daily. Can anyone help with this?


Tom

Dates Keep changing in Excel Charts
 
hold your horses: say you have yesterday's date in cell a31, the
formula is:
=IF(WEEKDAY((A31-1),2)=7,A31-3,IF(WEEKDAY((A31-1),2)=6,A31-2,A31-1))
job done
thanks, helps to verbalise your issues!!



All times are GMT +1. The time now is 10:31 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com