Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Vass
 
Posts: n/a
Default Calculate sales in the week by day ?

I have a worksheet thats created from a data import from an accounts package
I'd like to sum the values of sales for this week only starting Monday
and the SUM result would grow to Friday before returning to zero next monday
morning
the worksheet has multiple entries for each day, in date format dd/mm/yyyy
at the moment.

I'm managing to count number of sales for the month per sales rep, with the
formula below
but seem to struggle for current week only reporting, (plus I need SUM of
Sales as well as the COUNT)
{=COUNT(IF((data!FU$2:FU$6474="salesrep1")*(MONTH( data!M$2:M$6473)=$F$1)*(YEAR(data!M$2:M$6451)=$F$3 ),data!E$2:E$6473))}

Fixed items - F1 has the month number and F3 has the year, F2 has the
current Day, E2 has the current date.
Any assistance appreciated
Thanks

--
Vass


--
Vass
................................................
Now: (currently shopping)
Then: A100, MBX80, XL125, CB400, FZR600, CBR600Fv, CBR1100xx-x, YZF-R1


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Calculate sales in the week by day ?

Your formula should wotk with SUM instead of COUNT, but this also should
work

=SUMPRODUCT(--(data!FU$2:FU$6474="salesrep1"),--(MONTH(data!M$2:M$6473)=$F$1
),--(YEAR(data!M$2:M$6451)=$F$3),data!E$2:E$6473))}


--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Vass" wrote in message
...
I have a worksheet thats created from a data import from an accounts

package
I'd like to sum the values of sales for this week only starting Monday
and the SUM result would grow to Friday before returning to zero next

monday
morning
the worksheet has multiple entries for each day, in date format dd/mm/yyyy
at the moment.

I'm managing to count number of sales for the month per sales rep, with

the
formula below
but seem to struggle for current week only reporting, (plus I need SUM of
Sales as well as the COUNT)

{=COUNT(IF((data!FU$2:FU$6474="salesrep1")*(MONTH( data!M$2:M$6473)=$F$1)*(YE
AR(data!M$2:M$6451)=$F$3),data!E$2:E$6473))}

Fixed items - F1 has the month number and F3 has the year, F2 has the
current Day, E2 has the current date.
Any assistance appreciated
Thanks

--
Vass


--
Vass
...............................................
Now: (currently shopping)
Then: A100, MBX80, XL125, CB400, FZR600, CBR600Fv, CBR1100xx-x, YZF-R1




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Vass
 
Posts: n/a
Default Calculate sales in the week by day ?




"Bob Phillips" wrote in message
...
Your formula should wotk with SUM instead of COUNT, but this also should
work

=SUMPRODUCT(--(data!FU$2:FU$6474="salesrep1"),--(MONTH(data!M$2:M$6473)=$F$1
),--(YEAR(data!M$2:M$6451)=$F$3),data!E$2:E$6473))}



this will do the weeks sales then Bob?

thanks
--
Vass


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Calculate sales in the week by day ?

Sorry, missed that bit

=SUMPRODUCT(--(Data!F$2:F$6474="salesrep1"),--(Data!M$2:M$6474=TODAY()-WEEK
DAY(TODAY())+2),
--(Data!M$2:M$6474<TODAY()-WEEKDAY(TODAY())+2+7))

and

=SUMPRODUCT(--(Data!F$2:F$6474="salesrep1"),--(Data!M$2:M$6474=TODAY()-WEEK
DAY(TODAY())+2),
--(Data!M$2:M$6474<TODAY()-WEEKDAY(TODAY())+2+7),Data!E$2:E$6474)

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Vass" wrote in message
...



"Bob Phillips" wrote in message
...
Your formula should wotk with SUM instead of COUNT, but this also should
work


=SUMPRODUCT(--(data!FU$2:FU$6474="salesrep1"),--(MONTH(data!M$2:M$6473)=$F$1
),--(YEAR(data!M$2:M$6451)=$F$3),data!E$2:E$6473))}



this will do the weeks sales then Bob?

thanks
--
Vass




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Vass
 
Posts: n/a
Default Calculate sales in the week by day ?




"Bob Phillips" wrote in message
...
Sorry, missed that bit


Many thanks
--
Vass




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Vass
 
Posts: n/a
Default Calculate sales in the week by day ?




"Bob Phillips" wrote in message
...
Sorry, missed that bit



Bob, it doesn't like looking at my date and year at F1 and F3
I'm using Month(E2) pulling from a cell with +today() in it

so the cells F1 and F3 have '3' and '2006' in them

any ideas ?
thanks
--
Vass


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Vass
 
Posts: n/a
Default Calculate sales in the week by day ?




"Vass" wrote in message
...
"Bob Phillips" wrote in message
...
Sorry, missed that bit



Bob, it doesn't like looking at my date and year at F1 and F3
I'm using Month(E2) pulling from a cell with +today() in it

so the cells F1 and F3 have '3' and '2006' in them

any ideas ?


Scrap that, its working fine now, thanks Bob
--
Vass


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
Macro to copy cells to rows below [email protected] Excel Discussion (Misc queries) 1 January 20th 06 06:59 PM
Macro to insert copied cells [email protected] Excel Discussion (Misc queries) 17 January 18th 06 10:40 AM
HELP! Single cell formula to calculate weeks cover of stock on forward sales. [email protected] Excel Worksheet Functions 2 January 13th 06 10:24 AM
Calculate Total Sales from a Database John Excel Worksheet Functions 0 November 3rd 05 12:26 PM


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

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

About Us

"It's about Microsoft Excel"