LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default Conditional Sum of 1 < Columns

You're welcome, and thank you for the feed-back.
--

Regards,

RD
-----------------------------------------------------------------------------------------------
Please keep all correspondence within the Group, so all may benefit !
-----------------------------------------------------------------------------------------------

"Ben Johnson" wrote in message
...
Perfect...thanks!!!!

"RagDyer" wrote:

Say your datalist was A1 to D50,
with headers in Row 1, and data in A2:D50.

Assign E1 as the cell where you enter the style number you're looking to
total.

Then, try this:

=SUMPRODUCT((A2:A50=E1)*B2:D50)
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"Ben Johnson" wrote in message
...
Thanks so much for your help Jim.

I modified my formula to include the same number of columns in my
criteria
range as my sum-range, example:

SUMIF(A2:C3,"0001",B2:D3)

I'm not actually looking for criteria in column B or C as all my style
numbers are in column A.

I hoped that expanding the criteria range, even unnecessarily, would
expand
the sum range...unfortunately I'm still getting the same result as
before,
first column only...

Did I not understand your advice correctly?

As a side note, I actually have about 10,000 rows and 100 columns so I'm
not
able to individually add the columns via VLOOKLUP, hence the SUMIF
idea...

Thanks again!


"Jim Rech" wrote:

The criteria range and the sum range in SUMIF are assumed to have the
same
number of rows and columns. Since your criteria range (A2:A3) has one
column only one column of the sum range is summed.

--
Jim
"Ben Johnson" <Ben wrote in message
...
| Hi all,
|
| I would like to sum more than one column on a given row that matches
my
| critera.
|
| My data is set up with sales information by style/store like this:
| A B C D
| 1 STYLE# STORE 1 STORE 2 STORE 3
| 2 0001 13 11 8
| 3 0002 5 7 4
|
| I'd like to find the Total Sales (Store 1 + Store 2 + Store 3) for a
given
| Style #
|
| I've tried entering indicating more than one column in the sum range:
|
| SUMIF(A2:A3,"0001",B2:C3)
|
| From my reading of Excel help it seems like this should work but it
is
only
| adding numbers in the first column of my range; am I doing something
wrong?
|
| I can't change the file that I'm pulling the data from, so adding a
total
| column and then pointing to that wouldn't work.
|
| I could add an intermediate file with the totals for each style and
point
to
| that but I feel like there has to be a better way...
|
| Any ideas would be appreciated.
|
| Thanks!!!








 
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
Columns and Conditional Formattin Brent Excel Worksheet Functions 2 November 13th 07 12:52 PM
conditional formatting for key-value columns kang New Users to Excel 8 August 27th 07 05:35 PM
Conditional sum matching two columns and a row ~L Excel Worksheet Functions 9 September 26th 06 07:28 PM
Conditional Formatting 4 Columns David Excel Discussion (Misc queries) 14 April 12th 06 10:42 AM
Conditional sum of columns randys Excel Discussion (Misc queries) 2 September 15th 05 01:34 PM


All times are GMT +1. The time now is 05:44 PM.

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

About Us

"It's about Microsoft Excel"