Showing weeks and days from today's date

MKB

New Member
Joined
Sep 22, 2006
Messages
46
Hi everyone,

Basically I have a list of dates. I have used

=CELL-TODAY()

and then making the cells General format to show the number of days till that date. However I was getting negative days - I didn't really want this, I wanted simply 0 - to show that it was already released (the data pertains to release dates). I then used this:

General;"0"

This works fine. I then wanted a weeks column, so I divided the days column by 7. Again, this works but some have a large amount of decimal places.

Is there any way to do the following:

Get fields showing a "0" to display text such as "Now available", and get the Weeks column to show something like "xx Weeks xx Days"?

Thanks for any help :)
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Good evening MKB

How about this :

=IF((A1-TODAY())<1,"Now available",INT((A1-TODAY())/7)&" weeks and "&MOD((A1-TODAY()),7)&" days")

The formula assumes that A1 contains a date.

HTH

DominicB
 
Upvote 0
What a fast reply!

That works a treat, thanks very much for the help Dominic.
 
Upvote 0

Forum statistics

Threads
1,213,538
Messages
6,114,218
Members
448,554
Latest member
Gleisner2

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top