PC Review


Reply
Thread Tools Rate Thread

Date formula not picking up 1st of the month (weekday)

 
 
=?Utf-8?B?QW5n?=
Guest
Posts: n/a
 
      5th Sep 2007
Hi, we have a very complex sales forecast spreadsheet whereby we need to
calculate the number of orders and quotes (between two dates) from the
information entered by the sales people, they enter the quote or order date
and the formula calculates based upon this date. We find this works for all
other dates in the month except it will not count the 1st! Any ideas guys,
we don't want to be fudging the dates.


Formula used: =COUNTIF('Live
Forecast'!$AK$6:$AK$6882,"<=39202")-COUNTIF('Live
Forecast'!$AK$6:$AK$6886,"<=39173") (This is for APRIL).
Office/Excel Ver. 2003.





 
Reply With Quote
 
 
 
 
=?Utf-8?B?RHVrZSBDYXJleQ==?=
Guest
Posts: n/a
 
      5th Sep 2007
You are subtracting the number of days that are less than OR EQUAL TO April 1

Change the second COUNTIF from "<=" to "<"

"Ang" wrote:

> Hi, we have a very complex sales forecast spreadsheet whereby we need to
> calculate the number of orders and quotes (between two dates) from the
> information entered by the sales people, they enter the quote or order date
> and the formula calculates based upon this date. We find this works for all
> other dates in the month except it will not count the 1st! Any ideas guys,
> we don't want to be fudging the dates.
>
>
> Formula used: =COUNTIF('Live
> Forecast'!$AK$6:$AK$6882,"<=39202")-COUNTIF('Live
> Forecast'!$AK$6:$AK$6886,"<=39173") (This is for APRIL).
> Office/Excel Ver. 2003.
>
>
>
>
>

 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      5th Sep 2007
Maybe...
=COUNTIF('Live Forecast'!$AK$6:$AK$6882,"<=39202")
-COUNTIF('Live Forecast'!$AK$6:$AK$6886,"<39173")

(dropped the = sign on the second =countif().)

Personally, I find this easier to read:
=COUNTIF('Live Forecast'!$AK$6:$AK$6882,"<="&date(2007,4,30))
-COUNTIF('Live Forecast'!$AK$6:$AK$6886,"<"&date(2007,4,1))





Ang wrote:
>
> Hi, we have a very complex sales forecast spreadsheet whereby we need to
> calculate the number of orders and quotes (between two dates) from the
> information entered by the sales people, they enter the quote or order date
> and the formula calculates based upon this date. We find this works for all
> other dates in the month except it will not count the 1st! Any ideas guys,
> we don't want to be fudging the dates.
>
> Formula used: =COUNTIF('Live
> Forecast'!$AK$6:$AK$6882,"<=39202")-COUNTIF('Live
> Forecast'!$AK$6:$AK$6886,"<=39173") (This is for APRIL).
> Office/Excel Ver. 2003.


--

Dave Peterson
 
Reply With Quote
 
=?Utf-8?B?QW5n?=
Guest
Posts: n/a
 
      5th Sep 2007
Thanks guys, i will give this a go.
I knew it would be simple!


"Dave Peterson" wrote:

> Maybe...
> =COUNTIF('Live Forecast'!$AK$6:$AK$6882,"<=39202")
> -COUNTIF('Live Forecast'!$AK$6:$AK$6886,"<39173")
>
> (dropped the = sign on the second =countif().)
>
> Personally, I find this easier to read:
> =COUNTIF('Live Forecast'!$AK$6:$AK$6882,"<="&date(2007,4,30))
> -COUNTIF('Live Forecast'!$AK$6:$AK$6886,"<"&date(2007,4,1))
>
>
>
>
>
> Ang wrote:
> >
> > Hi, we have a very complex sales forecast spreadsheet whereby we need to
> > calculate the number of orders and quotes (between two dates) from the
> > information entered by the sales people, they enter the quote or order date
> > and the formula calculates based upon this date. We find this works for all
> > other dates in the month except it will not count the 1st! Any ideas guys,
> > we don't want to be fudging the dates.
> >
> > Formula used: =COUNTIF('Live
> > Forecast'!$AK$6:$AK$6882,"<=39202")-COUNTIF('Live
> > Forecast'!$AK$6:$AK$6886,"<=39173") (This is for APRIL).
> > Office/Excel Ver. 2003.

>
> --
>
> Dave Peterson
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Date and Weekday Formula J.W. Aldridge Microsoft Excel Discussion 2 17th Jul 2007 08:22 PM
find date of last weekday of a month =?Utf-8?B?VFVOR0FOQSBLVVJNQSBSQUpV?= Microsoft Excel Misc 9 28th Oct 2006 02:51 PM
nth weekday of the the month date problem =?Utf-8?B?VGhyYXNobWFu?= Microsoft Excel Programming 1 25th Jul 2006 08:09 PM
Excel Date Sort Format: Weekday, Month Day, Year mrsinnister Microsoft Excel Discussion 4 23rd Mar 2006 08:10 PM
Last WeekDay of Month Bryan Hughes Microsoft Access Queries 1 2nd Dec 2003 10:53 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:18 PM.