Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default sum certain cells in a column based on criteria from another colum

I have a huge spread sheet that I'd like to automate. My current delima is
how to calculate a dollar amount in one cell with information from column J
based on the criteria, same row, but in column N. I've tried the sumproduct
information but I'm entering it in wrong ... I've read the questions here
and I know this should be a relatively simply formula but I can not get my
brain wrapped around it. Any help would be appreciated.

Thanks

Donna
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default sum certain cells in a column based on criteria from another colum

If you want a sum based on one condition then SUMIF is the function to use:

If column J = "X" sum column N:

=SUMIF(J:J,"X",N:N)

You would only need to use SUMPRODUCT if there is more than a single
condition involved:

If column J = "X" and column K = 100 sum column N:

=SUMPRODUCT(--(J1:J100="X"),--(K1:K100=100),N1:N100)

Note that with SUMPRODUCT you can't use entire columns as range references
(unless you're using Excel 2007).

Biff

"rainbowraven" wrote in message
...
I have a huge spread sheet that I'd like to automate. My current delima is
how to calculate a dollar amount in one cell with information from column
J
based on the criteria, same row, but in column N. I've tried the
sumproduct
information but I'm entering it in wrong ... I've read the questions here
and I know this should be a relatively simply formula but I can not get my
brain wrapped around it. Any help would be appreciated.

Thanks

Donna



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default sum certain cells in a column based on criteria from another colum

If you want a sum based on one condition then SUMIF is the function to use

Under *most* circumstances.

There are some situations where a single condition will require SUMPRODUCT:

1234.....10
201.......20
1...........33
666.......17
55.........20

Sum column B where column A starts with a 1:

=SUMPRODUCT(--(LEFT(A1:A5)="1"),B1:B5)

Biff

"T. Valko" wrote in message
...
If you want a sum based on one condition then SUMIF is the function to
use:

If column J = "X" sum column N:

=SUMIF(J:J,"X",N:N)

You would only need to use SUMPRODUCT if there is more than a single
condition involved:

If column J = "X" and column K = 100 sum column N:

=SUMPRODUCT(--(J1:J100="X"),--(K1:K100=100),N1:N100)

Note that with SUMPRODUCT you can't use entire columns as range references
(unless you're using Excel 2007).

Biff

"rainbowraven" wrote in message
...
I have a huge spread sheet that I'd like to automate. My current delima
is
how to calculate a dollar amount in one cell with information from column
J
based on the criteria, same row, but in column N. I've tried the
sumproduct
information but I'm entering it in wrong ... I've read the questions
here
and I know this should be a relatively simply formula but I can not get
my
brain wrapped around it. Any help would be appreciated.

Thanks

Donna





  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Breaking it down a little bit further

I thought of the sumif function but here is what I can not get my brain
wrapped around

Column J = dollar amounts, of all shapes and sizes
Column N = a identifier of what kind of account that money is in, A, B, C,
or D for the different types of accounts.

What I'm wanting to do is in another cell elsewhere in the spreadsheet, pull
all the A's from column N and add the dollar amounts together for a sum in
that cell,
Below it another cell for the B's sum and C's combined,
and then another for D's

I could do a sort manually, that's what they have been doing before, but I'd
like to try to figure out a formula that will search out those identifiers
and sum up their corresponding $ amounts.

clear as mud?

"rainbowraven" wrote:

I have a huge spread sheet that I'd like to automate. My current delima is
how to calculate a dollar amount in one cell with information from column J
based on the criteria, same row, but in column N. I've tried the sumproduct
information but I'm entering it in wrong ... I've read the questions here
and I know this should be a relatively simply formula but I can not get my
brain wrapped around it. Any help would be appreciated.

Thanks

Donna

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Breaking it down a little bit further

SUMIF will do what you want:

A1 = A
A2 = B
A3 = C
A4 = D

Entered in B1 and copied down to B4:

=SUMIF(N:N,A1,J:J)

Biff

"rainbowraven" wrote in message
...
I thought of the sumif function but here is what I can not get my brain
wrapped around

Column J = dollar amounts, of all shapes and sizes
Column N = a identifier of what kind of account that money is in, A, B, C,
or D for the different types of accounts.

What I'm wanting to do is in another cell elsewhere in the spreadsheet,
pull
all the A's from column N and add the dollar amounts together for a sum in
that cell,
Below it another cell for the B's sum and C's combined,
and then another for D's

I could do a sort manually, that's what they have been doing before, but
I'd
like to try to figure out a formula that will search out those identifiers
and sum up their corresponding $ amounts.

clear as mud?

"rainbowraven" wrote:

I have a huge spread sheet that I'd like to automate. My current delima
is
how to calculate a dollar amount in one cell with information from column
J
based on the criteria, same row, but in column N. I've tried the
sumproduct
information but I'm entering it in wrong ... I've read the questions
here
and I know this should be a relatively simply formula but I can not get
my
brain wrapped around it. Any help would be appreciated.

Thanks

Donna





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Breaking it down a little bit further

nope, that isn't working. :( ... the A, B, C or D's in Column N vary
depending on what kind of account retention. What I'm trying to do is
calculate a running total of all the C $amounts from column J in J3, the B
amounts in J2 and the D amounts in cell J6. Does that help?

Column J Column N

$7458965.15 D
$42215.09 A
$1897.98 D
$29426.12 Blank
$87452.96 B
$19872.32 C
etc.


"T. Valko" wrote:

SUMIF will do what you want:

A1 = A
A2 = B
A3 = C
A4 = D

Entered in B1 and copied down to B4:

=SUMIF(N:N,A1,J:J)

Biff

"rainbowraven" wrote in message
...
I thought of the sumif function but here is what I can not get my brain
wrapped around

Column J = dollar amounts, of all shapes and sizes
Column N = a identifier of what kind of account that money is in, A, B, C,
or D for the different types of accounts.

What I'm wanting to do is in another cell elsewhere in the spreadsheet,
pull
all the A's from column N and add the dollar amounts together for a sum in
that cell,
Below it another cell for the B's sum and C's combined,
and then another for D's

I could do a sort manually, that's what they have been doing before, but
I'd
like to try to figure out a formula that will search out those identifiers
and sum up their corresponding $ amounts.

clear as mud?

"rainbowraven" wrote:

I have a huge spread sheet that I'd like to automate. My current delima
is
how to calculate a dollar amount in one cell with information from column
J
based on the criteria, same row, but in column N. I've tried the
sumproduct
information but I'm entering it in wrong ... I've read the questions
here
and I know this should be a relatively simply formula but I can not get
my
brain wrapped around it. Any help would be appreciated.

Thanks

Donna




  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Breaking it down a little bit further

Hmmm....

Based on your sample, if you enter this formula:

=SUMIF(N:N,"C",J:J)

The result is 19872.32

If that's not the result you want then I don't understand what you want.

Biff

"rainbowraven" wrote in message
...
nope, that isn't working. :( ... the A, B, C or D's in Column N vary
depending on what kind of account retention. What I'm trying to do is
calculate a running total of all the C $amounts from column J in J3, the B
amounts in J2 and the D amounts in cell J6. Does that help?

Column J Column N

$7458965.15 D
$42215.09 A
$1897.98 D
$29426.12 Blank
$87452.96 B
$19872.32 C
etc.


"T. Valko" wrote:

SUMIF will do what you want:

A1 = A
A2 = B
A3 = C
A4 = D

Entered in B1 and copied down to B4:

=SUMIF(N:N,A1,J:J)

Biff

"rainbowraven" wrote in message
...
I thought of the sumif function but here is what I can not get my brain
wrapped around

Column J = dollar amounts, of all shapes and sizes
Column N = a identifier of what kind of account that money is in, A, B,
C,
or D for the different types of accounts.

What I'm wanting to do is in another cell elsewhere in the spreadsheet,
pull
all the A's from column N and add the dollar amounts together for a sum
in
that cell,
Below it another cell for the B's sum and C's combined,
and then another for D's

I could do a sort manually, that's what they have been doing before,
but
I'd
like to try to figure out a formula that will search out those
identifiers
and sum up their corresponding $ amounts.

clear as mud?

"rainbowraven" wrote:

I have a huge spread sheet that I'd like to automate. My current
delima
is
how to calculate a dollar amount in one cell with information from
column
J
based on the criteria, same row, but in column N. I've tried the
sumproduct
information but I'm entering it in wrong ... I've read the questions
here
and I know this should be a relatively simply formula but I can not
get
my
brain wrapped around it. Any help would be appreciated.

Thanks

Donna






  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Breaking it down a little bit further

OMG! thank you Biff!!

"T. Valko" wrote:

Hmmm....

Based on your sample, if you enter this formula:

=SUMIF(N:N,"C",J:J)

The result is 19872.32

If that's not the result you want then I don't understand what you want.

Biff

"rainbowraven" wrote in message
...
nope, that isn't working. :( ... the A, B, C or D's in Column N vary
depending on what kind of account retention. What I'm trying to do is
calculate a running total of all the C $amounts from column J in J3, the B
amounts in J2 and the D amounts in cell J6. Does that help?

Column J Column N

$7458965.15 D
$42215.09 A
$1897.98 D
$29426.12 Blank
$87452.96 B
$19872.32 C
etc.


"T. Valko" wrote:

SUMIF will do what you want:

A1 = A
A2 = B
A3 = C
A4 = D

Entered in B1 and copied down to B4:

=SUMIF(N:N,A1,J:J)

Biff

"rainbowraven" wrote in message
...
I thought of the sumif function but here is what I can not get my brain
wrapped around

Column J = dollar amounts, of all shapes and sizes
Column N = a identifier of what kind of account that money is in, A, B,
C,
or D for the different types of accounts.

What I'm wanting to do is in another cell elsewhere in the spreadsheet,
pull
all the A's from column N and add the dollar amounts together for a sum
in
that cell,
Below it another cell for the B's sum and C's combined,
and then another for D's

I could do a sort manually, that's what they have been doing before,
but
I'd
like to try to figure out a formula that will search out those
identifiers
and sum up their corresponding $ amounts.

clear as mud?

"rainbowraven" wrote:

I have a huge spread sheet that I'd like to automate. My current
delima
is
how to calculate a dollar amount in one cell with information from
column
J
based on the criteria, same row, but in column N. I've tried the
sumproduct
information but I'm entering it in wrong ... I've read the questions
here
and I know this should be a relatively simply formula but I can not
get
my
brain wrapped around it. Any help would be appreciated.

Thanks

Donna






  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Breaking it down a little bit further

I hope that means you got this to work! Thanks for the feedback!

Biff

"rainbowraven" wrote in message
...
OMG! thank you Biff!!

"T. Valko" wrote:

Hmmm....

Based on your sample, if you enter this formula:

=SUMIF(N:N,"C",J:J)

The result is 19872.32

If that's not the result you want then I don't understand what you want.

Biff

"rainbowraven" wrote in message
...
nope, that isn't working. :( ... the A, B, C or D's in Column N vary
depending on what kind of account retention. What I'm trying to do is
calculate a running total of all the C $amounts from column J in J3,
the B
amounts in J2 and the D amounts in cell J6. Does that help?

Column J Column N

$7458965.15 D
$42215.09 A
$1897.98 D
$29426.12 Blank
$87452.96 B
$19872.32 C
etc.


"T. Valko" wrote:

SUMIF will do what you want:

A1 = A
A2 = B
A3 = C
A4 = D

Entered in B1 and copied down to B4:

=SUMIF(N:N,A1,J:J)

Biff

"rainbowraven" wrote in
message
...
I thought of the sumif function but here is what I can not get my
brain
wrapped around

Column J = dollar amounts, of all shapes and sizes
Column N = a identifier of what kind of account that money is in, A,
B,
C,
or D for the different types of accounts.

What I'm wanting to do is in another cell elsewhere in the
spreadsheet,
pull
all the A's from column N and add the dollar amounts together for a
sum
in
that cell,
Below it another cell for the B's sum and C's combined,
and then another for D's

I could do a sort manually, that's what they have been doing before,
but
I'd
like to try to figure out a formula that will search out those
identifiers
and sum up their corresponding $ amounts.

clear as mud?

"rainbowraven" wrote:

I have a huge spread sheet that I'd like to automate. My current
delima
is
how to calculate a dollar amount in one cell with information from
column
J
based on the criteria, same row, but in column N. I've tried the
sumproduct
information but I'm entering it in wrong ... I've read the
questions
here
and I know this should be a relatively simply formula but I can not
get
my
brain wrapped around it. Any help would be appreciated.

Thanks

Donna








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
Count no. of nonblank cells in one column based on criteria of ano Beach Lover Excel Discussion (Misc queries) 9 February 19th 07 03:39 PM
Count Unique records based on the Criteria in another colum Rajat Excel Worksheet Functions 1 December 1st 06 12:46 AM
Count Unique records based on the Criteria in another colum Rajat Excel Worksheet Functions 0 November 30th 06 03:43 AM
Count Unique records based on the Criteria in another colum Ron Coderre Excel Worksheet Functions 0 November 29th 06 06:28 PM
Locate max value of one column based on criteria in another colum JDay01 Excel Worksheet Functions 2 September 1st 05 06:47 PM


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