Dates Keep changing in Excel Charts

T

Tom

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?
 
T

Tom

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!!
 
Top