Link to home
Start Free TrialLog in
Avatar of Rhala
Rhala

asked on

Date and Days in Excel

dear All,

i have a cell in excel sheet and i need to use it to count the days remaining for this date in another cell compare with the date of the computer (today), example:

25/March/2015 ... remaining days .... 6 days

Please help
Avatar of Professor J
Professor J

put in A1 3/25/2015 and put in B1  =Today()  and then put in C1  =A1-B1
Avatar of Rhala

ASKER

I tried this but it didn't work

also,  i don't need to include B1 cell, i have many different cells in the sheet which i need to count the days from, is there a way??
Try this formula in a cell in your Worksheet:

=ABS(DAYS360(A1,NOW()))

You will need to adjust the 'A1' reference to the cell where your date value exist. This should give you the number of days from TODAY'S computer date.
I wouldn't use DAYS360 function to count days - as the name implies that function assumes a 360 day year (and 30 day month) so it can give incorrect counts when the dates cross different months.

Prof JimJam has given you the correct method, I think - just a simple subtraction. You say that didn't work, in what way? Make sure you format the result cell as number or general, e.g. with future date in A2 use this formula in B2

=A2-TODAY()

format B2 as general

Will the dates all be in the future? What result do you want if they are in the past?

regards, barry
Avatar of Rhala

ASKER

Hi,

i tried both and it's not working, kindly check the below:
User generated image
User generated image
User generated image
If you get #VALUE! error that probably means that your "dates" are not recognised as dates by Excel - do your regional settings demand that the date is entered as m/d/yyyy? If you enter B5 as 9/21/2015 does that work?

Note that 29/2/2015 in B6 isn't a valid date whatever your regional settings, February 2015 only has 28 days

regards, barry
Avatar of Rhala

ASKER

didn't work, kindly check the below:
User generated image
Please read carefully what has Barry wrote .
Your region setting is not day month year but
It is month then day and then year

For example if you want to put 25 March 2015
You must enter in cell 3/25/2015
ASKER CERTIFIED SOLUTION
Avatar of barry houdini
barry houdini
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial