#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 103
Default Date Formula

Hi

I am trying to work out a formula that will tell me the number of days
between two dates. For example, if I have a column that contains one set of
dates and another column that contains a set of dates - is there a formula I
can use to see the number of days difference between the two dates. I need
to be able to see whether a customer is 30 60 or 90 days overdue with payment.

Hope that is clear

Many thanks

--
Kind regards

Ann Shaw
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 896
Default Date Formula

in C1

=IF(B1-A1<=30,"<=30 days overdue",IF(AND(B1-A130,B1-
A1<=60),"30<overdue<=60",IF(AND(B1-A160,B1-
A1<=90),"60<overdue<=90","90 days overdue"))))

copy down, then apply autofilter
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 103
Default Date Formula

I am putting in the formula exactly as suggested but keep getting #VALUE! in
the cell. I have checked it many times and it is the correct formula.


--
Kind regards

Ann Shaw


"Jarek Kujawa" wrote:

in C1

=IF(B1-A1<=30,"<=30 days overdue",IF(AND(B1-A130,B1-
A1<=60),"30<overdue<=60",IF(AND(B1-A160,B1-
A1<=90),"60<overdue<=90","90 days overdue"))))

copy down, then apply autofilter

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,345
Default Date Formula

It sounds like the *dates* you have are really text representations of dates
not real dates. Try pretending to reformat one of the cells to General and
it should show a value like 39493 in the Format cells dialog box. If it
still shows the date then it means that it is text.

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"Annie" wrote in message
...
I am putting in the formula exactly as suggested but keep getting #VALUE!
in
the cell. I have checked it many times and it is the correct formula.


--
Kind regards

Ann Shaw


"Jarek Kujawa" wrote:

in C1

=IF(B1-A1<=30,"<=30 days overdue",IF(AND(B1-A130,B1-
A1<=60),"30<overdue<=60",IF(AND(B1-A160,B1-
A1<=90),"60<overdue<=90","90 days overdue"))))

copy down, then apply autofilter






  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 103
Default Date Formula

Thanks Jarek

I got it to work!!


--
Kind regards

Ann Shaw


"Jarek Kujawa" wrote:

in C1

=IF(B1-A1<=30,"<=30 days overdue",IF(AND(B1-A130,B1-
A1<=60),"30<overdue<=60",IF(AND(B1-A160,B1-
A1<=90),"60<overdue<=90","90 days overdue"))))

copy down, then apply autofilter

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 103
Default Date Formula

Thanks Sandy Mann but I did have date format in - I had made an error in the
parentheses - it's now working fine.
--
Kind regards

Ann Shaw


"Sandy Mann" wrote:

It sounds like the *dates* you have are really text representations of dates
not real dates. Try pretending to reformat one of the cells to General and
it should show a value like 39493 in the Format cells dialog box. If it
still shows the date then it means that it is text.

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"Annie" wrote in message
...
I am putting in the formula exactly as suggested but keep getting #VALUE!
in
the cell. I have checked it many times and it is the correct formula.


--
Kind regards

Ann Shaw


"Jarek Kujawa" wrote:

in C1

=IF(B1-A1<=30,"<=30 days overdue",IF(AND(B1-A130,B1-
A1<=60),"30<overdue<=60",IF(AND(B1-A160,B1-
A1<=90),"60<overdue<=90","90 days overdue"))))

copy down, then apply autofilter





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Create a formula in a date range to locate a specific date - ecel util Excel Discussion (Misc queries) 0 February 19th 07 03:03 PM
Excel Formula to calulate number of days passed from date to date K. Mack Excel Discussion (Misc queries) 8 January 4th 07 11:27 PM
Formula for determining if two date columns fall within specific date range Igottabeme Excel Worksheet Functions 2 April 21st 06 02:50 AM
Formula for determining if two date columns fall within specific date range Igottabeme Excel Discussion (Misc queries) 1 April 20th 06 10:03 PM
formula to calculate future date from date in cell plus days Chicesq Excel Worksheet Functions 8 November 3rd 05 12:25 PM


All times are GMT +1. The time now is 08:46 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"