Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / November 2005

Tip: Looking for answers? Try searching our database.

sumif

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
hellZg8 - 19 Nov 2005 13:51 GMT
I need to keep track of maintenance on certain machines and how much it costs.
Would like to be able to show how much was spent on each machine in a given
month or qtr.

any Ideas

Tks
Bob Phillips - 19 Nov 2005 14:12 GMT
=SUMPRODUCT((A1:A100="machine")*(YEAR(B1:B100)=2005)*(MONTH(B1:B100)={1,2,3}
)*C1:C100)

Signature

HTH

RP
(remove nothere from the email address if mailing direct)

> I need to keep track of maintenance on certain machines and how much it costs.
> Would like to be able to show how much was spent on each machine in a given
[quoted text clipped - 3 lines]
>
> Tks
hellZg8 - 19 Nov 2005 14:56 GMT
Tks for the quick response.
The spreadsheet I'm using is set up like a database.I have 2 columns for
Date. The first only shows the month, the second shows the actual date the
main. was done.
The first column is the one I need (I think).

Here's my question
For the month of January for Machine #1 what was the total cost of
maintenance?

so for every Month in column1 that = January and for every machine #1 =
column 2
sum up all cost .

I'm not sure if it should be treated as an array (I've tried both ways same
result)

Tks

> =SUMPRODUCT((A1:A100="machine")*(YEAR(B1:B100)=2005)*(MONTH(B1:B100)={1,2,3}
> )*C1:C100)
[quoted text clipped - 8 lines]
> >
> > Tks
Bob Phillips - 19 Nov 2005 15:16 GMT
The problem with having just a separate month column is that there can be
data for say Jan 2005 and Jan 2006, so I added a test for the year.

This should still get you the cost for Jan 2005

=SUMPRODUCT(($A$1:$A$100="Machine
#1")*(YEAR($C$1:$C$100)=2005)*(MONTH($C$1:$C$100)=1)*$D$1:$D$100)

and this will get the first quarter

=SUMPRODUCT(($A$1:$A$100="Machine
#1")*(YEAR($C$1:$C$100)=2005)*(MONTH($C$1:$C$100)={1,2,3})*$D$1:$D$100)

where column A holds the machine data, C holds the date, and D the amount.
Just change to suit

Signature

HTH

RP
(remove nothere from the email address if mailing direct)

> Tks for the quick response.
> The spreadsheet I'm using is set up like a database.I have 2 columns for
[quoted text clipped - 27 lines]
> > >
> > > Tks
hellZg8 - 19 Nov 2005 15:57 GMT
this is the formula I have right know (in a seperate workbook)
=SUMPRODUCT((YEAR(A1:A10)=2005*(MONTH(A1:A10)=11)*(C1:C10="H-540")*E1:E10))
this gives me a $0.00 total when I should be at a  $3500.00 total
The format for first column I had the month in was general , I tried typing
in the number for the month and the name same result.
I switch the format to Month-Day-Year

Ctrl+Shift+Enter ?? after didn't work either

> The problem with having just a separate month column is that there can be
> data for say Jan 2005 and Jan 2006, so I added a test for the year.
[quoted text clipped - 45 lines]
> > > >
> > > > Tks
Dave Peterson - 19 Nov 2005 16:09 GMT
Watch those parentheses!

=SUMPRODUCT((YEAR(A1:A10)=2005)*(MONTH(A1:A10)=11)*(C1:C10="H-540")*E1:E10))
you had:
=SUMPRODUCT((YEAR(A1:A10)=2005*(MONTH(A1:A10)=11)*(C1:C10="H-540")*E1:E10))

One of these things is not like the other <vbg>.

And one more way:

=SUMPRODUCT(--(TEXT(A1:A10,"yyyymm")="200511"),--(C1:C10="H-540"),(E1:E10))

=sumproduct() likes to work with numbers.  The -- stuff converts true's to 1's
and false's to 0's.

> this is the formula I have right know (in a seperate workbook)
> =SUMPRODUCT((YEAR(A1:A10)=2005*(MONTH(A1:A10)=11)*(C1:C10="H-540")*E1:E10))
[quoted text clipped - 68 lines]
> > > > >
> > > > > Tks

Signature

Dave Peterson

hellZg8 - 20 Nov 2005 03:42 GMT
Tks Dave greatly appreciate it.this does work now
Thank you again to all

> Watch those parentheses!
>
[quoted text clipped - 83 lines]
> > > > > >
> > > > > > Tks
Don Guillett - 19 Nov 2005 14:12 GMT
assuming
dates machine cost
=sumproduct((month(a2:a22)=3)*(b2:b22="machine1")*c2:c22)

Signature

Don Guillett
SalesAid Software
donaldb@281.com

>I need to keep track of maintenance on certain machines and how much it
>costs.
[quoted text clipped - 5 lines]
>
> Tks
Ken Wright - 20 Nov 2005 10:44 GMT
Take a look at Pivot tables and you will see how easy this stuff is.

http://www.geocities.com/jonpeltier/Excel/Pivots/pivotstart.htm

Signature

Regards
          Ken.......................    Microsoft MVP - Excel
             Sys Spec - Win XP Pro /  XL 97/00/02/03

------------------------------­------------------------------­----------------
It's easier to beg forgiveness than ask permission :-)
------------------------------­------------------------------­----------------

>I need to keep track of maintenance on certain machines and how much it
>costs.
[quoted text clipped - 5 lines]
>
> Tks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.