Forum Discussion
tomjohn93
Oct 03, 2023Copper Contributor
Help with an excel formula involving days of the week
Hello, The Problem I am looking at ways to save time at my job and one of the ways I came up with was using formulas in my spreadsheets instead of inputting all the data manually. The Resolution? ...
- Oct 03, 2023
tomjohn93 -Please check this !
=IF(TEXT(A1,"dddd")="Sunday",A1,A1-(WEEKDAY(A1)-1)) =IF(TEXT(A1,"dddd")="Saturday",A1,A1+(7-WEEKDAY(A1)))
Patrick2788
Oct 03, 2023Silver Contributor
revised
- tomjohn93Oct 03, 2023Copper ContributorHi Patrick,
Thanks for your response, however I tried it and it only works when the day you enter is a Sunday as it outputs back the next Sunday and Saturday,, however if, for example I entered the 11th October (Wednesday) I would want to then get back the 8th October (Sunday) and 14th October (Saturday) but Instead I get back 14th October and then the 15th October which is the next Sunday.- Patrick2788Oct 03, 2023Silver ContributorI see. I don't believe you made that clear in your post but I'm glad you have a solution.
- tomjohn93Oct 03, 2023Copper ContributorSorry I should have been clearer