Next Firday Date Calculation in VBA

C

Celtic_Avenger

Hi again.

In a spreadsheet I am creating I require it to show to dates.

The first is very simple as it is todays date:

Today()

The second I cant work out.

I need the second date to show the next friday after the Today date
except if Today's date is a friday when it should show that.

Can anyone give me a hand with the formula or code for this?

Thanks

Celtic_Avenger
:confused: :confused: :confused: :confused: :confused
 
T

Tom Wood

For a formula solution assuming the date or interest is in A2
=IF(WEEKDAY(A2)=7,A2+6,A2+6-WEEKDAY(A2))
Tom Wood
 

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