Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Dale
 
Posts: n/a
Default Help with a Formula

I have a worksheet with two columns of data, (Earnings, and Category). I
need help in using the SUMIF function or SUMPRODUCT to calculate the
total from column A for a group of specific catergories. (i.e. category
1 or 2 or 3). I need to be able to total the earnings for all records
that are in category 1, 2 or 3 and not in catergory 4 or 6. Using the
below example, I would expect the result to be $48.

Column B Column C
Earnings Category
$10
1
$11 2
$12 1
$15 3
$9
4
$10 6


Thanks for the help

  #3   Report Post  
Dale
 
Posts: n/a
Default

Thanks for the quick response, however, I must be doing something wrong,
I keep getting the error #Name? Any Ideas?

Don Guillett wrote:

try
=sumproduct((rngb={1,2,3})*rngA)



  #4   Report Post  
Max
 
Posts: n/a
Default

What Don Guillett gave should work ..
=sumproduct((rngb={1,2,3})*rngA)


I keep getting the error #Name?


Think you didn't adapt "rngb" and "rngA" in Don's formula to suit ..

Maybe try this translation:

Put in say, D2: =SUMPRODUCT((C2:C100={1,2,3})*B2:B100)

Adapt the ranges: C2:C100, B2:B100
to suit
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"Dale" wrote in message
...
Thanks for the quick response, however, I must be doing something wrong,
I keep getting the error #Name? Any Ideas?

Don Guillett wrote:

try
=sumproduct((rngb={1,2,3})*rngA)



  #5   Report Post  
Dale
 
Posts: n/a
Default

Thanks Don and Max

Your solutions worked perfectly after I adapted the range. I
misinterpreted the initial formula that Don gave me. Thanks again

Max wrote:

What Don Guillett gave should work ..

=sumproduct((rngb={1,2,3})*rngA)


I keep getting the error #Name?


Think you didn't adapt "rngb" and "rngA" in Don's formula to suit ..

Maybe try this translation:

Put in say, D2: =SUMPRODUCT((C2:C100={1,2,3})*B2:B100)

Adapt the ranges: C2:C100, B2:B100
to suit
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"Dale" wrote in message
...

Thanks for the quick response, however, I must be doing something wrong,
I keep getting the error #Name? Any Ideas?

Don Guillett wrote:


try
=sumproduct((rngb={1,2,3})*rngA)






  #6   Report Post  
Max
 
Posts: n/a
Default

Glad to hear that !
Thanks for the feedback
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"Dale" wrote in message
...
Thanks Don and Max

Your solutions worked perfectly after I adapted the range. I
misinterpreted the initial formula that Don gave me. Thanks again



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
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM
revert formula insertion to old method Don't be a pain in the ass Setting up and Configuration of Excel 0 January 24th 05 01:49 PM
Relative Indirect Formula Referencing? Damian Excel Worksheet Functions 1 January 7th 05 04:16 AM
Help with macro formula and variable Huge project Excel Worksheet Functions 0 December 28th 04 01:27 AM
Cell doesn't show formula result - it shows formula (CTRL + ' doe. o0o0o0o Excel Worksheet Functions 6 November 19th 04 03:13 PM


All times are GMT +1. The time now is 11:13 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"