Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 



Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > Microsoft Support > Microsoft Office support
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Microsoft Office support MS Office support forum

Reply
 
LinkBack Thread Tools
Old 10-19-2008, 05:23 PM   #1 (permalink)
Registered User
 
Join Date: Jan 2008
Location: Harpers Ferry, WV
Posts: 400
OS: OS X 10.4.x


Min of SumProduct

Can't seem to figure this one out.

I have dates in column A and values in column C. What I want, is to find the minimum value in C for each month of the year.

I have the SumProduct working properly and it does correctly count the number of times each month occurs, but, I can't seem to figure out how to get the minimum value. Like this:

Code:
Column A	Column C
01/20/2005	1947.50
02/20/2005	1947.50
03/21/2005	1981.00
04/20/2005	1981.00
05/19/2005	1122.00
06/20/2005	1122.00
07/20/2005	1096.50
08/20/2005	1096.50
09/19/2005	1034.00
10/20/2005	1034.00
11/17/2005	965.50
12/20/2005	965.50
01/19/2006	1800.00
02/20/2006	1800.00
03/21/2006	1575.50
04/20/2006	1575.50
05/19/2006	1188.00
06/20/2006	1188.00
07/21/2006	1293.50
08/20/2006	1293.50
09/20/2006	1339.50
10/20/2006	1339.50
11/20/2006	1369.50
12/20/2006	1369.50
01/18/2007	1527.00
02/20/2007	1527.00
03/23/2007	2309.50
04/20/2007	2309.50
05/21/2007	1053.00
06/20/2007	1053.00
07/25/2007	2641.00
08/20/2007	1142.00
09/19/2007	1318.00
10/18/2007	1302.00
11/23/2007	1465.00
12/19/2007	1581.00
01/22/2008	1702.00
02/20/2008	1779.00
03/26/2008	2536.00
04/21/2008	1286.00
05/19/2008	830.00
The SumProduct(Month(RANGE)=1) correctly comes up with 4 (there are 4 entries for January). What I need to do now is have it give me 1527 which is the minimum for all of the January's (it was in 2007).

I'd like to keep this to a formula rather than VB if possible. Any ideas?
ShosMeister is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Important Information
Join the #1 Tech Support Forum Today - It's Totally Free!

TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free.

Join TechSupportforum.com Today - Click Here

Old 10-20-2008, 01:55 AM   #2 (permalink)
Registered User
 
ratcat73's Avatar
 
Join Date: Oct 2008
Location: Australia
Posts: 51
OS: Vista Home Basic


Send a message via MSN to ratcat73
Re: Min of SumProduct

G'day

I don't have a sumproduct, but I have an array formula

Code:
=INDEX($A$1:$A$40,MATCH(MIN(IF(MONTH($A$1:$A$40)=   1,$C$1:$C$40)),$C$1:$C$40,0))
Must be entered with Ctrl+Shift+Enter to get { } around the formula.

And where I have the number one in blue in the code. Your welcome to put that has a cell reference if you wish to change the month your looking up.

Remember to adjust your range to suit your data range

HTH
ratcat73 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-20-2008, 03:04 AM   #3 (permalink)
Registered User
 
ratcat73's Avatar
 
Join Date: Oct 2008
Location: Australia
Posts: 51
OS: Vista Home Basic


Send a message via MSN to ratcat73
Re: Min of SumProduct

Hello again,

Sorry I got carried away.

I display in my first post is the formula that will return the date of the smallest amount
Code:
=INDEX($A$1:$A$40,MATCH(MIN(IF(MONTH($A$1:$A$40)=    1,$C$1:$C$40)),$C$1:$C$40,0))
This is the one that will return the amount

Code:
=MIN(IF(MONTH($A$1:$A$40)=    1,$C$1:$C$40))
Must be entered with Ctrl+Shift+Enter to get { } around the formula.

And where I have the number one in blue in the code. Your welcome to put that has a cell reference if you wish to change the month your looking up.

Remember to adjust your range to suit your data range

HTH[/quote]
ratcat73 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-20-2008, 05:57 AM   #4 (permalink)
Registered User
 
Join Date: Jan 2008
Location: Harpers Ferry, WV
Posts: 400
OS: OS X 10.4.x


Re: Min of SumProduct

Rat, AWESOME!!! Works perfectly. I guess I was making it too difficult trying to use the SumProduct.

Cheers Mate!
ShosMeister is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools

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 Off
Pingbacks are Off
Refbacks are Off




All times are GMT -7. The time now is 10:33 PM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85