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 / New Users / February 2008

Tip: Looking for answers? Try searching our database.

Excel 2003   - SUMIF or other Solution

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Craig Brandt - 28 Feb 2008 22:21 GMT
Hi Guys:
Here's my dilemma:

I have a flat file (example follows):

Orders

          A              B            C

1     Client     Product     Quantity

2     Jim          Green        23

3     Sam         Blue          76

4     Jim           Blue          13

5     Jim           Green        54

.

.

.

I would like to create a matrix that looks like this:

Totals

        A              B             C           D

1                    Green       Blue       Red

2      Jim             77           13

3      Sam                           76

4      Jane

Is there a single formula that I can place is "Totals B2" that can give me
the desired results? The first thing that came to mind is SUMIF, but I haven
't figured out how to make it work.

Any assistance would be greatly appreciated,

Craig
Nick Hodge - 28 Feb 2008 22:27 GMT
Craig

Go to Data>Pivot Table... and make one of those. Add the Client Column as a
row field, the product as a column field and the Quantity as the 'Value'.

I think that'll give you what you want, without formula

Signature

HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
nick_hodgeTAKETHISOUT@zen.co.ukANDTHIS
web: www.excelusergroup.org
web: www.nickhodge.co.uk

> Hi Guys:
> Here's my dilemma:
[quoted text clipped - 43 lines]
>
> Craig
Roger Govier - 29 Feb 2008 07:50 GMT
Hi Craig

As Nick has said, Pivot Table is the easiest and quickest way to go.
If you did want a formula solution, then assuming your output matrix was in
the range G1:J4 it would be
=SUMPRODUCT(($A$2:$A$5=$G2)*($B$2:$B$5=H$1)*$C$2:$C$5)
placed in cell G2 and copied across and down as required

Signature

Regards
Roger Govier

> Hi Guys:
> Here's my dilemma:
[quoted text clipped - 43 lines]
>
> Craig
Craig Brandt - 29 Feb 2008 14:49 GMT
Roger & Nick:

I had considered Pivot Tables but am not prepared to create them under VBA
control. My comfort level with pivot tables is not quite there.
I had to chew on the SUMPRODUCT solution for awhile, but now understand why
it works and will incorporate this solution into the worksheet.

Thank you both for your suggestions,
Craig

> Hi Craig
>
[quoted text clipped - 51 lines]
> >
> > Craig

Rate this thread:






 
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



©2008 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.