PC Review


Reply
Thread Tools Rate Thread

Determine qty charged per month

 
 
rrstudio2@icqmail.com
Guest
Posts: n/a
 
      18th Jul 2007
Lets say I have a table like

User StartDate EndDate Qty
John 5/1/07 5/10/07 10
Amy 5/14/07 5/20/07 5
Bob 5/25/07 6/10/07 17
Henry 6/1/07 6/5/07 4

I am trying to figure each user got per month, so I originally thought
it would be easy and I could use a pivot tablet to group the start
dates by month and then sum the qty. The problem is with people like
Bob is that the time frame spans two months, so I would want 7 counted
for May and 10 counted for June. I was trying to come up with a
formula to do this but I don't think that would work after trying a
few things since there isn't a way you could put the 7 in one cell for
may and the 10 in another cell for june. Any ideas on how to do this
with formulas, pivot table, or VBA?

Thanks,
Andrew V. Romero

 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      18th Jul 2007
In F2: =ROUND(D2*DAY(C2)/(C2-B+1),2)
E2: D2-E2

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Lets say I have a table like
>
> User StartDate EndDate Qty
> John 5/1/07 5/10/07 10
> Amy 5/14/07 5/20/07 5
> Bob 5/25/07 6/10/07 17
> Henry 6/1/07 6/5/07 4
>
> I am trying to figure each user got per month, so I originally thought
> it would be easy and I could use a pivot tablet to group the start
> dates by month and then sum the qty. The problem is with people like
> Bob is that the time frame spans two months, so I would want 7 counted
> for May and 10 counted for June. I was trying to come up with a
> formula to do this but I don't think that would work after trying a
> few things since there isn't a way you could put the 7 in one cell for
> may and the 10 in another cell for june. Any ideas on how to do this
> with formulas, pivot table, or VBA?
>
> Thanks,
> Andrew V. Romero
>



 
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 determine the last business day of the month? Paul Fenton Microsoft Access 5 25th May 2007 07:24 PM
Determine date based on day of month (i.e. 2nd Tuesday of the month) csb Microsoft Excel Discussion 4 9th Aug 2006 02:51 PM
Determine Last working day of Month =?Utf-8?B?TmlnZWw=?= Microsoft Excel Programming 5 25th Jul 2006 07:50 PM
How to determine what week of the month. =?Utf-8?B?R0VPUkdJQQ==?= Microsoft Access Queries 1 27th Jul 2005 03:47 PM
determine nr of days in a month Linda Microsoft Access 2 19th Apr 2004 10:17 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:45 AM.