PC Review


Reply
Thread Tools Rate Thread

Count number of days that fall on a weekend or in a time range?

 
 
Gregg Hill
Guest
Posts: n/a
 
      24th Aug 2004
Hello!

I am trying to reconcile my cell phone bill. I have copied and pasted it
into Excel 2003. I want to find all entries that fall on Saturday or Sunday,
cut/paste that portion into another area of the sheet, then sum the number
of minutes used on those days.

I also want to find all entries that fall between 9:00PM and 6:00AM in the
remainder of the bill and sum those entries.

Any suggestions?

Thank you for helping!

Gregg Hill


 
Reply With Quote
 
 
 
 
Frank Kabel
Guest
Posts: n/a
 
      24th Aug 2004
Hi
lets assume the following:
- column A: your dates as Excel date format (check this with
=ISNUMBER(A1) -> should return TRUE)
- column B: the starting time as real Excel time
- column C: the minutes (as integers)

Try the following formula
=SUMPRODUCT(--(WEEKDAY(A1:A100)<3),C1:C1000)

For the second question I would assume the following:
=SUMPRODUCT(--(WEEKDAY(A1:A100)>=3),--((B1:B100>=21/24)+(B1:B100<=6/24)
),C1:C1000)




--
Regards
Frank Kabel
Frankfurt, Germany


Gregg Hill wrote:
> Hello!
>
> I am trying to reconcile my cell phone bill. I have copied and pasted
> it into Excel 2003. I want to find all entries that fall on Saturday
> or Sunday, cut/paste that portion into another area of the sheet,
> then sum the number of minutes used on those days.
>
> I also want to find all entries that fall between 9:00PM and 6:00AM
> in the remainder of the bill and sum those entries.
>
> Any suggestions?
>
> Thank you for helping!
>
> Gregg Hill


 
Reply With Quote
 
Gregg Hill
Guest
Posts: n/a
 
      25th Aug 2004
Frank,

When I get some more sleep, I'll give that a shot.

Thank you!

Gregg Hill


"Frank Kabel" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi
> lets assume the following:
> - column A: your dates as Excel date format (check this with
> =ISNUMBER(A1) -> should return TRUE)
> - column B: the starting time as real Excel time
> - column C: the minutes (as integers)
>
> Try the following formula
> =SUMPRODUCT(--(WEEKDAY(A1:A100)<3),C1:C1000)
>
> For the second question I would assume the following:
> =SUMPRODUCT(--(WEEKDAY(A1:A100)>=3),--((B1:B100>=21/24)+(B1:B100<=6/24)
> ),C1:C1000)
>
>
>
>
> --
> Regards
> Frank Kabel
> Frankfurt, Germany
>
>
> Gregg Hill wrote:
> > Hello!
> >
> > I am trying to reconcile my cell phone bill. I have copied and pasted
> > it into Excel 2003. I want to find all entries that fall on Saturday
> > or Sunday, cut/paste that portion into another area of the sheet,
> > then sum the number of minutes used on those days.
> >
> > I also want to find all entries that fall between 9:00PM and 6:00AM
> > in the remainder of the bill and sum those entries.
> >
> > Any suggestions?
> >
> > Thank you for helping!
> >
> > Gregg Hill

>



 
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
How do I count number of days from a range of dates & some repite. Juan Roubaud Microsoft Excel Misc 2 2nd Dec 2009 04:13 PM
if "x" days is more fall on weekend return following monday jermsalerms Microsoft Excel Worksheet Functions 3 7th Jul 2006 12:47 AM
Count number of cells that fall within a range of dates mmay321 Microsoft Excel Discussion 3 8th Aug 2005 10:29 PM
Formula to count number of days in range which are less than today =?Utf-8?B?em9vbWluZw==?= Microsoft Excel Worksheet Functions 2 21st Jun 2005 04:01 PM
How to count the number of values that fall within a range Steve Matlock Microsoft Excel Discussion 2 22nd Jan 2004 07:44 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:20 AM.