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

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

DominicB

Well-known Member
Joined
Oct 3, 2005
Messages
1,569
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
 

MKB

New Member
Joined
Sep 22, 2006
Messages
46
What a fast reply!

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

Forum statistics

Threads
1,136,305
Messages
5,674,984
Members
419,541
Latest member
freddyboots

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
Top