#1   Report Post  
Ted Metro
 
Posts: n/a
Default sumif statement

I have a big table of sales numbers broken out by month and by product across
the top, with customers on the left. So it looks something like this
starting at A1

column A B C D E
F G
Jan-04 Feb-04
Mar-04
widgets gidgets widgets gidgets
widgets gidgets
Customer A 6 4 5 3
8 3
Customer B 1 11 6 9
10 2

So I want a column at the end that will display the total by product.
So for Customer-A for widgets it would be B3+D3+F3, and for gidgets C3+E3+G3.

I tried a sumif and it worked for customer A, but not for customer B.
My sumif was -- =sumif($B$2:$G$2,"=widgets",$B3:$G3)

What is the formula I need so that I can build it and then copy it down?


  #2   Report Post  
JulieD
 
Posts: n/a
Default

Hi Ted

as far as i can tell your formula should work .. i used your formula and
mine (as below) and both returned the same results:
=SUMIF($B$2:$G$2,"widgets",B3:G3)

could there be another problem - calculation set to manual (tools / options
/ calculation tab)??
Cheers
JulieD



"Ted Metro" wrote in message
...
I have a big table of sales numbers broken out by month and by product
across
the top, with customers on the left. So it looks something like this
starting at A1

column A B C D E
F G
Jan-04 Feb-04
Mar-04
widgets gidgets widgets gidgets
widgets gidgets
Customer A 6 4 5 3
8 3
Customer B 1 11 6 9
10 2

So I want a column at the end that will display the total by product.
So for Customer-A for widgets it would be B3+D3+F3, and for gidgets
C3+E3+G3.

I tried a sumif and it worked for customer A, but not for customer B.
My sumif was -- =sumif($B$2:$G$2,"=widgets",$B3:$G3)

What is the formula I need so that I can build it and then copy it down?




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use SUMIF to return sums between two values located in cells ScottBerger Excel Worksheet Functions 2 April 23rd 23 09:05 PM
7+ nested if statement? Turi Excel Worksheet Functions 3 December 20th 04 07:55 PM
help with "criterea" in the sumif function [email protected] Excel Worksheet Functions 3 December 17th 04 06:27 PM
Statement lintan Excel Worksheet Functions 1 December 2nd 04 11:31 PM
SUM(IF( Array to avoid #NUM! values Elijah Excel Worksheet Functions 7 November 21st 04 02:17 PM


All times are GMT +1. The time now is 01:29 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"