[mso] Re: Excel - List formula




                                                
Ray, 

Thanks for you help, but as you will see my data is somewhat different to
that which your formula would work with.

This is what I have eneded up with, and thought that some of our other
readers may benefit from the topic covered.

                                                
nbr of Invoices (Array):
{=COUNT(IF((YEAR(Invoice)=YEAR(E11)) * (MONTH(Invoice)=MONTH(E11)),Amount))}
Monthly Total (Array):
{=SUM(IF((YEAR(Invoice)=YEAR(E11)) * (MONTH(Invoice)=MONTH(E11)),Amount))}

                                
Dynamic Name Ranges created using the formula syntax:
=OFFSET(DataSheetName!$A$11,0,0,COUNTA(DataSheetName!$A:$A)-1,1)


Titles Invoice etc are in row 10.
Below is the test data.
I hope that the transmission retains the layout, it did on a test message to
myself.


                                                        "Total Invoices"
"Total Amount"
                                                                1038
66,763.51 

A               B               C                       D       E
F       G       
Invoice Amount  Description                     Period  Nbr     Total
01-Jul-99        237.33         Yr2000 Diaries          Jul-99  31
1361.59
01-Jul-99        190.35         ISP Annual Fee          Aug-99  35
2827.16
01-Jul-99        6.47   CSI Internet            Sep-99  39      4363.14
05-Jul-99        35.69  Petrol G28                      Oct-99  53
3209.24
11-Jul-99        26.41  Macro magic                     Nov-99  37
2167.03
13-Jul-99        15.48  Mobile:0780111          Dec-99  36      2627.31
13-Jul-99        27.34  Mobile:0581111          Jan-00  32      2004.99
13-Jul-99        37.00  Office:01895 11         Feb-00  30      2849.10
13-Jul-99        5.08   CSI Internet            Mar-00  45      2350.12


Regards

Norman Pearce 
IT Training Manager
Ealing Hospital

Developing the foundations for your success


-----Original Message-----
From: Ray Blake [mailto:ray@xxxxxxxxx] 
Sent: 26 October 2005 15:37
To: mso@xxxxxxxxxxxxx
Subject: [mso] Re: Excel - List formula

Nope, works perfectly with years as well. What I forgot to say was to
replace my named range ("Months") with yours ("Invoice"). Try it - I
promise it will work over years.

Ray

------------------------------------
GR Business Process Solutions
Ray Blake
Head of Software Design
ray@xxxxxxxxx
Braedon
Newell Road
Hemel Hempstead
Herts HP3 9PD
tel: 01442 396518
fax: 01442 389353
mobile: 07834 226601
www.grbps.com
------------------------------------

-----Original Message-----
From: mso-bounce@xxxxxxxxxxxxx [mailto:mso-bounce@xxxxxxxxxxxxx] On
Behalf Of Pearce, Norman
Sent: 26 October 2005 15:39
To: 'mso@xxxxxxxxxxxxx'
Subject: [mso] Re: Excel - List formula

Cheers Ray

I can see that will work on a single year basis, but this particular
situation is a 5yr project. So need to check both Year & Month.

Thanks anyway for your response

Regards

Norman Pearce 
IT Training Manager
Ealing Hospital


-----Original Message-----
From: Ray Blake [mailto:ray@xxxxxxxxx] 
Sent: 26 October 2005 15:11
To: mso@xxxxxxxxxxxxx
Subject: [mso] Re: Excel - List formula

Norman, 

I do something similar to track my own invoices. In cell I2, try this:

        =COUNTIF(Months,">"&I2)-COUNTIF(Months,">"&I3)

Ray 



*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or
MicrosoftOffice@xxxxxxxxxxxxxxxx

To send mail to the group, simply address it to mso@xxxxxxxxxxxxx

To Unsubscribe from this group, send an email to 
mso-request@xxxxxxxxxxxxx with the word "unsubscribe" (without the quotes)
in the subject line.

Or, visit the group's homepage and use the dropdown menu.  This will also
allow you to change your email settings to digest or vacation (no mail).
http://www.freelists.org/webpage/mso

To be able to use the files section for sharing files with the group, send a
request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation
with instructions.  Once you are a member of the files group, you can go
here to upload/download files:

http://www.smartgroups.com/vault/msofiles
*************************************************************
*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or 
MicrosoftOffice@xxxxxxxxxxxxxxxx

To send mail to the group, simply address it to mso@xxxxxxxxxxxxx

To Unsubscribe from this group, send an email to 
mso-request@xxxxxxxxxxxxx with the word "unsubscribe" (without the quotes) in 
the subject line.

Or, visit the group's homepage and use the dropdown menu.  This will also allow 
you to change your email settings to digest or vacation (no mail).
http://www.freelists.org/webpage/mso

To be able to use the files section for sharing files with the group, send a 
request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation with 
instructions.  Once you are a member of the files group, you can go here to 
upload/download files:
http://www.smartgroups.com/vault/msofiles
*************************************************************

Other related posts: