PC Review


Reply
Thread Tools Rate Thread

Calculating monthly totals

 
 
=?Utf-8?B?UGllbWFu?=
Guest
Posts: n/a
 
      24th Feb 2006
Does anyone know the best formula for adding figures in a column that
correspond to each month of the year?

I have a sales register with the date of sale and commission on each row but
want to display the total commissions for each month of the current year on
one worksheet and monthly totals for previous year on athother worksheet.

Any ideas would be greatly appreciated.

Thanks
Simon

 
Reply With Quote
 
 
 
 
Arvi Laanemets
Guest
Posts: n/a
 
      25th Feb 2006
Hi

To return summary commissions for January of current year
=SUMPRODUCT(--(MONTH(SaleDate)=1,--(YEAR(SaleDate)=YEAR(TODAY()),Commission)

The same for last year
=SUMPRODUCT(--(MONTH(SaleDate)=1,--(YEAR(SaleDate)=YEAR(TODAY()-1),Commissio
n)

Arvi Laanemets


"Pieman" <(E-Mail Removed)> wrote in message
news:49F46F89-167D-4F49-BD4B-(E-Mail Removed)...
> Does anyone know the best formula for adding figures in a column that
> correspond to each month of the year?
>
> I have a sales register with the date of sale and commission on each row

but
> want to display the total commissions for each month of the current year

on
> one worksheet and monthly totals for previous year on athother worksheet.
>
> Any ideas would be greatly appreciated.
>
> Thanks
> Simon
>



 
Reply With Quote
 
=?Utf-8?B?UGllbWFu?=
Guest
Posts: n/a
 
      25th Feb 2006
Thanks Arvi, does SaleDate have to be replaced by the month required or is
that the column title?

Many thanks
Simon

"Arvi Laanemets" wrote:

> Hi
>
> To return summary commissions for January of current year
> =SUMPRODUCT(--(MONTH(SaleDate)=1,--(YEAR(SaleDate)=YEAR(TODAY()),Commission)
>
> The same for last year
> =SUMPRODUCT(--(MONTH(SaleDate)=1,--(YEAR(SaleDate)=YEAR(TODAY()-1),Commissio
> n)
>
> Arvi Laanemets
>
>
> "Pieman" <(E-Mail Removed)> wrote in message
> news:49F46F89-167D-4F49-BD4B-(E-Mail Removed)...
> > Does anyone know the best formula for adding figures in a column that
> > correspond to each month of the year?
> >
> > I have a sales register with the date of sale and commission on each row

> but
> > want to display the total commissions for each month of the current year

> on
> > one worksheet and monthly totals for previous year on athother worksheet.
> >
> > Any ideas would be greatly appreciated.
> >
> > Thanks
> > Simon
> >

>
>
>

 
Reply With Quote
 
Arvi Laanemets
Guest
Posts: n/a
 
      25th Feb 2006
Hi

SaleDate and Commission are ranges, where sale dates and commission figures
are stored. You can use there range references or named ranges. NB. Both
ranges SaleDates and Commission MUST be of same dimension.

When SalaDate doesn't contain valid format dates, then you have to modify
the formula - how, depends on your data then.


Arvi Laanemets


"Pieman" <(E-Mail Removed)> wrote in message
news:0555337A-34D1-4BB3-96B1-(E-Mail Removed)...
> Thanks Arvi, does SaleDate have to be replaced by the month required or is
> that the column title?
>
> Many thanks
> Simon
>
> "Arvi Laanemets" wrote:
>
> > Hi
> >
> > To return summary commissions for January of current year
> >

=SUMPRODUCT(--(MONTH(SaleDate)=1,--(YEAR(SaleDate)=YEAR(TODAY()),Commission)
> >
> > The same for last year
> >

=SUMPRODUCT(--(MONTH(SaleDate)=1,--(YEAR(SaleDate)=YEAR(TODAY()-1),Commissio
> > n)
> >
> > Arvi Laanemets
> >
> >
> > "Pieman" <(E-Mail Removed)> wrote in message
> > news:49F46F89-167D-4F49-BD4B-(E-Mail Removed)...
> > > Does anyone know the best formula for adding figures in a column that
> > > correspond to each month of the year?
> > >
> > > I have a sales register with the date of sale and commission on each

row
> > but
> > > want to display the total commissions for each month of the current

year
> > on
> > > one worksheet and monthly totals for previous year on athother

worksheet.
> > >
> > > Any ideas would be greatly appreciated.
> > >
> > > Thanks
> > > Simon
> > >

> >
> >
> >



 
Reply With Quote
 
=?Utf-8?B?UGllbWFu?=
Guest
Posts: n/a
 
      25th Feb 2006
Avri, thanks for explaining that.

I have entered the following formula for the current year:
=SUMPRODUCT("--(MONTH(Websites!B5:B31)=01,--(YEAR(Websites!B5:B31)=YEAR(TODAY()),Websites!R5:R31)")
but I just get #VALUE! in the cell where the monthly commission total should
be displayed.

Have you any ideas why this is?

Thanks
Simon

"Arvi Laanemets" wrote:

> Hi
>
> SaleDate and Commission are ranges, where sale dates and commission figures
> are stored. You can use there range references or named ranges. NB. Both
> ranges SaleDates and Commission MUST be of same dimension.
>
> When SalaDate doesn't contain valid format dates, then you have to modify
> the formula - how, depends on your data then.
>
>
> Arvi Laanemets
>
>
> "Pieman" <(E-Mail Removed)> wrote in message
> news:0555337A-34D1-4BB3-96B1-(E-Mail Removed)...
> > Thanks Arvi, does SaleDate have to be replaced by the month required or is
> > that the column title?
> >
> > Many thanks
> > Simon
> >
> > "Arvi Laanemets" wrote:
> >
> > > Hi
> > >
> > > To return summary commissions for January of current year
> > >

> =SUMPRODUCT(--(MONTH(SaleDate)=1,--(YEAR(SaleDate)=YEAR(TODAY()),Commission)
> > >
> > > The same for last year
> > >

> =SUMPRODUCT(--(MONTH(SaleDate)=1,--(YEAR(SaleDate)=YEAR(TODAY()-1),Commissio
> > > n)
> > >
> > > Arvi Laanemets
> > >
> > >
> > > "Pieman" <(E-Mail Removed)> wrote in message
> > > news:49F46F89-167D-4F49-BD4B-(E-Mail Removed)...
> > > > Does anyone know the best formula for adding figures in a column that
> > > > correspond to each month of the year?
> > > >
> > > > I have a sales register with the date of sale and commission on each

> row
> > > but
> > > > want to display the total commissions for each month of the current

> year
> > > on
> > > > one worksheet and monthly totals for previous year on athother

> worksheet.
> > > >
> > > > Any ideas would be greatly appreciated.
> > > >
> > > > Thanks
> > > > Simon
> > > >
> > >
> > >
> > >

>
>
>

 
Reply With Quote
 
Arvi Laanemets
Guest
Posts: n/a
 
      25th Feb 2006
Hi

=SUMPRODUCT(--(MONTH(Websites!B5:B31)=1),--(YEAR(Websites!B5:B31)=YEAR(TODAY
())),Websites!R5:R31)


Arvi Laanemets



"Pieman" <(E-Mail Removed)> wrote in message
newsC9B3D44-B6D9-4F94-B8D8-(E-Mail Removed)...
> Avri, thanks for explaining that.
>
> I have entered the following formula for the current year:
>

=SUMPRODUCT("--(MONTH(Websites!B5:B31)=01,--(YEAR(Websites!B5:B31)=YEAR(TODA
Y()),Websites!R5:R31)")
> but I just get #VALUE! in the cell where the monthly commission total

should
> be displayed.
>
> Have you any ideas why this is?
>
> Thanks
> Simon
>
> "Arvi Laanemets" wrote:
>
> > Hi
> >
> > SaleDate and Commission are ranges, where sale dates and commission

figures
> > are stored. You can use there range references or named ranges. NB. Both
> > ranges SaleDates and Commission MUST be of same dimension.
> >
> > When SalaDate doesn't contain valid format dates, then you have to

modify
> > the formula - how, depends on your data then.
> >
> >
> > Arvi Laanemets
> >
> >
> > "Pieman" <(E-Mail Removed)> wrote in message
> > news:0555337A-34D1-4BB3-96B1-(E-Mail Removed)...
> > > Thanks Arvi, does SaleDate have to be replaced by the month required

or is
> > > that the column title?
> > >
> > > Many thanks
> > > Simon
> > >
> > > "Arvi Laanemets" wrote:
> > >
> > > > Hi
> > > >
> > > > To return summary commissions for January of current year
> > > >

> >

=SUMPRODUCT(--(MONTH(SaleDate)=1,--(YEAR(SaleDate)=YEAR(TODAY()),Commission)
> > > >
> > > > The same for last year
> > > >

> >

=SUMPRODUCT(--(MONTH(SaleDate)=1,--(YEAR(SaleDate)=YEAR(TODAY()-1),Commissio
> > > > n)
> > > >
> > > > Arvi Laanemets
> > > >
> > > >
> > > > "Pieman" <(E-Mail Removed)> wrote in message
> > > > news:49F46F89-167D-4F49-BD4B-(E-Mail Removed)...
> > > > > Does anyone know the best formula for adding figures in a column

that
> > > > > correspond to each month of the year?
> > > > >
> > > > > I have a sales register with the date of sale and commission on

each
> > row
> > > > but
> > > > > want to display the total commissions for each month of the

current
> > year
> > > > on
> > > > > one worksheet and monthly totals for previous year on athother

> > worksheet.
> > > > >
> > > > > Any ideas would be greatly appreciated.
> > > > >
> > > > > Thanks
> > > > > Simon
> > > > >
> > > >
> > > >
> > > >

> >
> >
> >



 
Reply With Quote
 
=?Utf-8?B?UGllbWFu?=
Guest
Posts: n/a
 
      26th Feb 2006
Avri

I have entered this formula:
=SUMPRODUCT(--(MONTH(Websites!B5:B31)=1),--(YEAR(Websites!B5:B31)=YEAR(TODAY())),Websites!R5:R31).
But I still get a popup error message that says: 'The formula you typed
contains an error'.

Thanks
Simon

"Arvi Laanemets" wrote:

> Hi
>
> =SUMPRODUCT(--(MONTH(Websites!B5:B31)=1),--(YEAR(Websites!B5:B31)=YEAR(TODAY
> ())),Websites!R5:R31)
>
>
> Arvi Laanemets
>
>
>
> "Pieman" <(E-Mail Removed)> wrote in message
> newsC9B3D44-B6D9-4F94-B8D8-(E-Mail Removed)...
> > Avri, thanks for explaining that.
> >
> > I have entered the following formula for the current year:
> >

> =SUMPRODUCT("--(MONTH(Websites!B5:B31)=01,--(YEAR(Websites!B5:B31)=YEAR(TODA
> Y()),Websites!R5:R31)")
> > but I just get #VALUE! in the cell where the monthly commission total

> should
> > be displayed.
> >
> > Have you any ideas why this is?
> >
> > Thanks
> > Simon
> >
> > "Arvi Laanemets" wrote:
> >
> > > Hi
> > >
> > > SaleDate and Commission are ranges, where sale dates and commission

> figures
> > > are stored. You can use there range references or named ranges. NB. Both
> > > ranges SaleDates and Commission MUST be of same dimension.
> > >
> > > When SalaDate doesn't contain valid format dates, then you have to

> modify
> > > the formula - how, depends on your data then.
> > >
> > >
> > > Arvi Laanemets
> > >
> > >
> > > "Pieman" <(E-Mail Removed)> wrote in message
> > > news:0555337A-34D1-4BB3-96B1-(E-Mail Removed)...
> > > > Thanks Arvi, does SaleDate have to be replaced by the month required

> or is
> > > > that the column title?
> > > >
> > > > Many thanks
> > > > Simon
> > > >
> > > > "Arvi Laanemets" wrote:
> > > >
> > > > > Hi
> > > > >
> > > > > To return summary commissions for January of current year
> > > > >
> > >

> =SUMPRODUCT(--(MONTH(SaleDate)=1,--(YEAR(SaleDate)=YEAR(TODAY()),Commission)
> > > > >
> > > > > The same for last year
> > > > >
> > >

> =SUMPRODUCT(--(MONTH(SaleDate)=1,--(YEAR(SaleDate)=YEAR(TODAY()-1),Commissio
> > > > > n)
> > > > >
> > > > > Arvi Laanemets
> > > > >
> > > > >
> > > > > "Pieman" <(E-Mail Removed)> wrote in message
> > > > > news:49F46F89-167D-4F49-BD4B-(E-Mail Removed)...
> > > > > > Does anyone know the best formula for adding figures in a column

> that
> > > > > > correspond to each month of the year?
> > > > > >
> > > > > > I have a sales register with the date of sale and commission on

> each
> > > row
> > > > > but
> > > > > > want to display the total commissions for each month of the

> current
> > > year
> > > > > on
> > > > > > one worksheet and monthly totals for previous year on athother
> > > worksheet.
> > > > > >
> > > > > > Any ideas would be greatly appreciated.
> > > > > >
> > > > > > Thanks
> > > > > > Simon
> > > > > >
> > > > >
> > > > >
> > > > >
> > >
> > >
> > >

>
>
>

 
Reply With Quote
 
Arvi Laanemets
Guest
Posts: n/a
 
      26th Feb 2006
Hi

To locate the part of formula, causing the error, try to calculate different
parts of formula

=SUMPRODUCT(--(MONTH(Websites!B5:B31)=1))
=SUMPRODUCT(--(YEAR(Websites!B5:B31)=YEAR(TODAY())))
=SUMPRODUCT(Websites!R5:R31)
=SUMPRODUCT(--(MONTH(Websites!B5:B31)=1),--(YEAR(Websites!B5:B31)=YEAR(TODAY
())))
etc.

Arvi Laanemets


"Pieman" <(E-Mail Removed)> wrote in message
news:8BF771F1-1067-4FFA-BE55-(E-Mail Removed)...
> Avri
>
> I have entered this formula:
>

=SUMPRODUCT(--(MONTH(Websites!B5:B31)=1),--(YEAR(Websites!B5:B31)=YEAR(TODAY
())),Websites!R5:R31).
> But I still get a popup error message that says: 'The formula you typed
> contains an error'.
>
> Thanks
> Simon
>
> "Arvi Laanemets" wrote:
>
> > Hi
> >
> >

=SUMPRODUCT(--(MONTH(Websites!B5:B31)=1),--(YEAR(Websites!B5:B31)=YEAR(TODAY
> > ())),Websites!R5:R31)
> >
> >
> > Arvi Laanemets
> >
> >
> >
> > "Pieman" <(E-Mail Removed)> wrote in message
> > newsC9B3D44-B6D9-4F94-B8D8-(E-Mail Removed)...
> > > Avri, thanks for explaining that.
> > >
> > > I have entered the following formula for the current year:
> > >

> >

=SUMPRODUCT("--(MONTH(Websites!B5:B31)=01,--(YEAR(Websites!B5:B31)=YEAR(TODA
> > Y()),Websites!R5:R31)")
> > > but I just get #VALUE! in the cell where the monthly commission total

> > should
> > > be displayed.
> > >
> > > Have you any ideas why this is?
> > >
> > > Thanks
> > > Simon
> > >
> > > "Arvi Laanemets" wrote:
> > >
> > > > Hi
> > > >
> > > > SaleDate and Commission are ranges, where sale dates and commission

> > figures
> > > > are stored. You can use there range references or named ranges. NB.

Both
> > > > ranges SaleDates and Commission MUST be of same dimension.
> > > >
> > > > When SalaDate doesn't contain valid format dates, then you have to

> > modify
> > > > the formula - how, depends on your data then.
> > > >
> > > >
> > > > Arvi Laanemets
> > > >
> > > >
> > > > "Pieman" <(E-Mail Removed)> wrote in message
> > > > news:0555337A-34D1-4BB3-96B1-(E-Mail Removed)...
> > > > > Thanks Arvi, does SaleDate have to be replaced by the month

required
> > or is
> > > > > that the column title?
> > > > >
> > > > > Many thanks
> > > > > Simon
> > > > >
> > > > > "Arvi Laanemets" wrote:
> > > > >
> > > > > > Hi
> > > > > >
> > > > > > To return summary commissions for January of current year
> > > > > >
> > > >

> >

=SUMPRODUCT(--(MONTH(SaleDate)=1,--(YEAR(SaleDate)=YEAR(TODAY()),Commission)
> > > > > >
> > > > > > The same for last year
> > > > > >
> > > >

> >

=SUMPRODUCT(--(MONTH(SaleDate)=1,--(YEAR(SaleDate)=YEAR(TODAY()-1),Commissio
> > > > > > n)
> > > > > >
> > > > > > Arvi Laanemets
> > > > > >
> > > > > >
> > > > > > "Pieman" <(E-Mail Removed)> wrote in message
> > > > > > news:49F46F89-167D-4F49-BD4B-(E-Mail Removed)...
> > > > > > > Does anyone know the best formula for adding figures in a

column
> > that
> > > > > > > correspond to each month of the year?
> > > > > > >
> > > > > > > I have a sales register with the date of sale and commission

on
> > each
> > > > row
> > > > > > but
> > > > > > > want to display the total commissions for each month of the

> > current
> > > > year
> > > > > > on
> > > > > > > one worksheet and monthly totals for previous year on athother
> > > > worksheet.
> > > > > > >
> > > > > > > Any ideas would be greatly appreciated.
> > > > > > >
> > > > > > > Thanks
> > > > > > > Simon
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > >
> > > >
> > > >

> >
> >
> >



 
Reply With Quote
 
=?Utf-8?B?UGllbWFu?=
Guest
Posts: n/a
 
      26th Feb 2006
Avri

I have tried all the parts of the formula and the only one that causes the
error is:

=SUMPRODUCT(--(MONTH(Websites!B5:B31)=1),--(YEAR(Websites!B5:B31)=YEAR(TODAY())))

All these worked fine:
=SUMPRODUCT(--(MONTH(Websites!B5:B31)=1))
=SUMPRODUCT(--(YEAR(Websites!B5:B31)=YEAR(TODAY())))
=SUMPRODUCT(Websites!R5:R31)

Any idea where the error is located?

Many thanks
Simon

"Arvi Laanemets" wrote:

> Hi
>
> To locate the part of formula, causing the error, try to calculate different
> parts of formula
>
> =SUMPRODUCT(--(MONTH(Websites!B5:B31)=1))
> =SUMPRODUCT(--(YEAR(Websites!B5:B31)=YEAR(TODAY())))
> =SUMPRODUCT(Websites!R5:R31)
> =SUMPRODUCT(--(MONTH(Websites!B5:B31)=1),--(YEAR(Websites!B5:B31)=YEAR(TODAY
> ())))
> etc.
>
> Arvi Laanemets
>
>
> "Pieman" <(E-Mail Removed)> wrote in message
> news:8BF771F1-1067-4FFA-BE55-(E-Mail Removed)...
> > Avri
> >
> > I have entered this formula:
> >

> =SUMPRODUCT(--(MONTH(Websites!B5:B31)=1),--(YEAR(Websites!B5:B31)=YEAR(TODAY
> ())),Websites!R5:R31).
> > But I still get a popup error message that says: 'The formula you typed
> > contains an error'.
> >
> > Thanks
> > Simon
> >
> > "Arvi Laanemets" wrote:
> >
> > > Hi
> > >
> > >

> =SUMPRODUCT(--(MONTH(Websites!B5:B31)=1),--(YEAR(Websites!B5:B31)=YEAR(TODAY
> > > ())),Websites!R5:R31)
> > >
> > >
> > > Arvi Laanemets
> > >
> > >
> > >
> > > "Pieman" <(E-Mail Removed)> wrote in message
> > > newsC9B3D44-B6D9-4F94-B8D8-(E-Mail Removed)...
> > > > Avri, thanks for explaining that.
> > > >
> > > > I have entered the following formula for the current year:
> > > >
> > >

> =SUMPRODUCT("--(MONTH(Websites!B5:B31)=01,--(YEAR(Websites!B5:B31)=YEAR(TODA
> > > Y()),Websites!R5:R31)")
> > > > but I just get #VALUE! in the cell where the monthly commission total
> > > should
> > > > be displayed.
> > > >
> > > > Have you any ideas why this is?
> > > >
> > > > Thanks
> > > > Simon
> > > >
> > > > "Arvi Laanemets" wrote:
> > > >
> > > > > Hi
> > > > >
> > > > > SaleDate and Commission are ranges, where sale dates and commission
> > > figures
> > > > > are stored. You can use there range references or named ranges. NB.

> Both
> > > > > ranges SaleDates and Commission MUST be of same dimension.
> > > > >
> > > > > When SalaDate doesn't contain valid format dates, then you have to
> > > modify
> > > > > the formula - how, depends on your data then.
> > > > >
> > > > >
> > > > > Arvi Laanemets
> > > > >
> > > > >
> > > > > "Pieman" <(E-Mail Removed)> wrote in message
> > > > > news:0555337A-34D1-4BB3-96B1-(E-Mail Removed)...
> > > > > > Thanks Arvi, does SaleDate have to be replaced by the month

> required
> > > or is
> > > > > > that the column title?
> > > > > >
> > > > > > Many thanks
> > > > > > Simon
> > > > > >
> > > > > > "Arvi Laanemets" wrote:
> > > > > >
> > > > > > > Hi
> > > > > > >
> > > > > > > To return summary commissions for January of current year
> > > > > > >
> > > > >
> > >

> =SUMPRODUCT(--(MONTH(SaleDate)=1,--(YEAR(SaleDate)=YEAR(TODAY()),Commission)
> > > > > > >
> > > > > > > The same for last year
> > > > > > >
> > > > >
> > >

> =SUMPRODUCT(--(MONTH(SaleDate)=1,--(YEAR(SaleDate)=YEAR(TODAY()-1),Commissio
> > > > > > > n)
> > > > > > >
> > > > > > > Arvi Laanemets
> > > > > > >
> > > > > > >
> > > > > > > "Pieman" <(E-Mail Removed)> wrote in message
> > > > > > > news:49F46F89-167D-4F49-BD4B-(E-Mail Removed)...
> > > > > > > > Does anyone know the best formula for adding figures in a

> column
> > > that
> > > > > > > > correspond to each month of the year?
> > > > > > > >
> > > > > > > > I have a sales register with the date of sale and commission

> on
> > > each
> > > > > row
> > > > > > > but
> > > > > > > > want to display the total commissions for each month of the
> > > current
> > > > > year
> > > > > > > on
> > > > > > > > one worksheet and monthly totals for previous year on athother
> > > > > worksheet.
> > > > > > > >
> > > > > > > > Any ideas would be greatly appreciated.
> > > > > > > >
> > > > > > > > Thanks
> > > > > > > > Simon
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > >
> > > > >
> > > > >
> > >
> > >
> > >

>
>
>

 
Reply With Quote
 
Arvi Laanemets
Guest
Posts: n/a
 
      26th Feb 2006
Hi

I tried to det the same error with same formula, and all partial formulas
working properly - I get it only, when referred ranges were different
dimensions. Something like
=SUMPRODUCT(--(MONTH(Websites!B5:B31)=1),--(YEAR(Websites!B5:B131)=YEAR(TODA
Y())))

So check, that all referred ranges contain cells from 22 rows, and all of
them are single-column ranges.


Arvi Laanemets


"Pieman" <(E-Mail Removed)> wrote in message
news:B3E262F2-0CE5-4C8D-AEB0-(E-Mail Removed)...
> Avri
>
> I have tried all the parts of the formula and the only one that causes the
> error is:
>
>

=SUMPRODUCT(--(MONTH(Websites!B5:B31)=1),--(YEAR(Websites!B5:B31)=YEAR(TODAY
())))
>
> All these worked fine:
> =SUMPRODUCT(--(MONTH(Websites!B5:B31)=1))
> =SUMPRODUCT(--(YEAR(Websites!B5:B31)=YEAR(TODAY())))
> =SUMPRODUCT(Websites!R5:R31)
>
> Any idea where the error is located?
>
> Many thanks
> Simon
>
> "Arvi Laanemets" wrote:
>
> > Hi
> >
> > To locate the part of formula, causing the error, try to calculate

different
> > parts of formula
> >
> > =SUMPRODUCT(--(MONTH(Websites!B5:B31)=1))
> > =SUMPRODUCT(--(YEAR(Websites!B5:B31)=YEAR(TODAY())))
> > =SUMPRODUCT(Websites!R5:R31)
> >

=SUMPRODUCT(--(MONTH(Websites!B5:B31)=1),--(YEAR(Websites!B5:B31)=YEAR(TODAY
> > ())))
> > etc.
> >
> > Arvi Laanemets
> >
> >
> > "Pieman" <(E-Mail Removed)> wrote in message
> > news:8BF771F1-1067-4FFA-BE55-(E-Mail Removed)...
> > > Avri
> > >
> > > I have entered this formula:
> > >

> >

=SUMPRODUCT(--(MONTH(Websites!B5:B31)=1),--(YEAR(Websites!B5:B31)=YEAR(TODAY
> > ())),Websites!R5:R31).
> > > But I still get a popup error message that says: 'The formula you

typed
> > > contains an error'.
> > >
> > > Thanks
> > > Simon
> > >
> > > "Arvi Laanemets" wrote:
> > >
> > > > Hi
> > > >
> > > >

> >

=SUMPRODUCT(--(MONTH(Websites!B5:B31)=1),--(YEAR(Websites!B5:B31)=YEAR(TODAY
> > > > ())),Websites!R5:R31)
> > > >
> > > >
> > > > Arvi Laanemets
> > > >
> > > >
> > > >
> > > > "Pieman" <(E-Mail Removed)> wrote in message
> > > > newsC9B3D44-B6D9-4F94-B8D8-(E-Mail Removed)...
> > > > > Avri, thanks for explaining that.
> > > > >
> > > > > I have entered the following formula for the current year:
> > > > >
> > > >

> >

=SUMPRODUCT("--(MONTH(Websites!B5:B31)=01,--(YEAR(Websites!B5:B31)=YEAR(TODA
> > > > Y()),Websites!R5:R31)")
> > > > > but I just get #VALUE! in the cell where the monthly commission

total
> > > > should
> > > > > be displayed.
> > > > >
> > > > > Have you any ideas why this is?
> > > > >
> > > > > Thanks
> > > > > Simon
> > > > >
> > > > > "Arvi Laanemets" wrote:
> > > > >
> > > > > > Hi
> > > > > >
> > > > > > SaleDate and Commission are ranges, where sale dates and

commission
> > > > figures
> > > > > > are stored. You can use there range references or named ranges.

NB.
> > Both
> > > > > > ranges SaleDates and Commission MUST be of same dimension.
> > > > > >
> > > > > > When SalaDate doesn't contain valid format dates, then you have

to
> > > > modify
> > > > > > the formula - how, depends on your data then.
> > > > > >
> > > > > >
> > > > > > Arvi Laanemets
> > > > > >
> > > > > >
> > > > > > "Pieman" <(E-Mail Removed)> wrote in message
> > > > > > news:0555337A-34D1-4BB3-96B1-(E-Mail Removed)...
> > > > > > > Thanks Arvi, does SaleDate have to be replaced by the month

> > required
> > > > or is
> > > > > > > that the column title?
> > > > > > >
> > > > > > > Many thanks
> > > > > > > Simon
> > > > > > >
> > > > > > > "Arvi Laanemets" wrote:
> > > > > > >
> > > > > > > > Hi
> > > > > > > >
> > > > > > > > To return summary commissions for January of current year
> > > > > > > >
> > > > > >
> > > >

> >

=SUMPRODUCT(--(MONTH(SaleDate)=1,--(YEAR(SaleDate)=YEAR(TODAY()),Commission)
> > > > > > > >
> > > > > > > > The same for last year
> > > > > > > >
> > > > > >
> > > >

> >

=SUMPRODUCT(--(MONTH(SaleDate)=1,--(YEAR(SaleDate)=YEAR(TODAY()-1),Commissio
> > > > > > > > n)
> > > > > > > >
> > > > > > > > Arvi Laanemets
> > > > > > > >
> > > > > > > >
> > > > > > > > "Pieman" <(E-Mail Removed)> wrote in message
> > > > > > > > news:49F46F89-167D-4F49-BD4B-(E-Mail Removed)...
> > > > > > > > > Does anyone know the best formula for adding figures in a

> > column
> > > > that
> > > > > > > > > correspond to each month of the year?
> > > > > > > > >
> > > > > > > > > I have a sales register with the date of sale and

commission
> > on
> > > > each
> > > > > > row
> > > > > > > > but
> > > > > > > > > want to display the total commissions for each month of

the
> > > > current
> > > > > > year
> > > > > > > > on
> > > > > > > > > one worksheet and monthly totals for previous year on

athother
> > > > > > worksheet.
> > > > > > > > >
> > > > > > > > > Any ideas would be greatly appreciated.
> > > > > > > > >
> > > > > > > > > Thanks
> > > > > > > > > Simon
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > >
> > > >
> > > >

> >
> >
> >



 
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
Monthly Totals AND Running Totals in Query =?Utf-8?B?UmFuZHkgQnJvd24=?= Microsoft Access 8 21st Apr 2007 10:16 PM
Summing Weekly Totals into Monthly Totals =?Utf-8?B?c3RlcGg0NGhhZg==?= Microsoft Excel Worksheet Functions 3 5th Jul 2006 04:51 PM
Calculating monthly totals for current and previous year =?Utf-8?B?UGllbWFu?= Microsoft Excel New Users 1 26th Feb 2006 12:43 PM
Calculating Monthly Sales Totals Paul Fenton Microsoft Access 2 8th Oct 2005 06:12 PM
How do I sum YTD totals based on monthly totals =?Utf-8?B?QnNncmFkMDI=?= Microsoft Excel Misc 3 12th Jul 2005 04:59 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:52 AM.