Return the Thursday Date before an Input Date Q

J

John

I am looking to return a date in Column B that is the Thursday before the
date in Column A. For example

A1 = 23/6/04
Thus B1 should = 17/6/04

It seems very easy, but I can't just use A1-4 because the date in A1 might
be anything (of 7 days) going forward

Thanks
 
N

Norman Harker

Hi John!

One way:
=A1-CHOOSE(WEEKDAY(A1,2),4,5,6,0,1,2,3)

It returns the same day if A1 is a Thursday
 
B

Bob Phillips

If perchance you want the previous Thursday if it is a Thursday, use

=A1-CHOOSE(WEEKDAY(A1,2),4,5,6,7,1,2,3)

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 
S

Soo Cheon Jheong

John,

=A1-WEEKDAY(A1+2)


--
Regards,
Soo Cheon Jheong
Seoul, Korea
_ _
^¢¯^
--
 
B

Bob Phillips

That returns Saturdays not Thursdays.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 
D

Daniel.M

Bob,

That returns Saturdays not Thursdays.

???

You lucky guy : always having very long week-ends. :)

Perhaps you really had one too long, tough <bg>

Regards,

Daniel M.
 
B

Bob Phillips

Don't know what I tried as I have scrubbed it now, but you are right.
Apologies to Soo Cheon Jheong.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 
S

Soo Cheon Jheong

Bob,

That returns Thursdays not Saturdays for me (ExcelXP; Korean Version)


--
Regards,
Soo Cheon Jheong
Seoul, Korea
_ _
^¢¯^
 
B

Bob Phillips

Yes, it was my mistake, and I have already acknowledged it (see the thread).
No idea what I did, but I must have mis-tarnscribed it.

Bob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top