Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Want to do sum by Acct Subacct

I have an excel sheet wehre I have the followign coloums e.g below. I
wanted to get some kind of furmula or function that would let me do a sum
by every unique Acct\Subacct Combo

Acct Subacct DebitAmount CreditAmount
100 800 1000
100 800 4000
100 800 9000
100 1250 1400
100 1250 1600
100 1250 3000


So basically my sum would be

Acct Sub DebitAmount CrediAmount
100 800 5000 9000
100 1250 3000 3000

As there are thousands of lines I cant manually do this. I would apprecaite
if someone cas assist

Thanks in advance
Sandy

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Want to do sum by Acct Subacct

Hi Sandy,

you could use SUMPRODUCT.

If your data is in A2:D7 (headers are in row 1) and your sums start in
row 10, then use this formula in C10:

=SUMPRODUCT(--($A$2:$A$7=$A10), --($B$2:$B$10=$B10), --($C$2:$C$10)) to
calculate the Debit Amount.

Copy the formula to D10 and you have the credit amount.

HTH,
Dominik.



Sandy schrieb:
I have an excel sheet wehre I have the followign coloums e.g below. I
wanted to get some kind of furmula or function that would let me do a sum
by every unique Acct\Subacct Combo

Acct Subacct DebitAmount CreditAmount
100 800 1000
100 800 4000
100 800 9000
100 1250 1400
100 1250 1600
100 1250 3000


So basically my sum would be

Acct Sub DebitAmount CrediAmount
100 800 5000 9000
100 1250 3000 3000

As there are thousands of lines I cant manually do this. I would
apprecaite if someone cas assist

Thanks in advance
Sandy

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Want to do sum by Acct Subacct

Dominik

Thanks very much

What I want to do is calculate based on whenever there is a cahnge in the
unique account\subaccouot combination.So there might be for certain
Account\subaccounts 15 lines and for others just 4 lines etc.

As there are going to be thousands of lines I want to just put a formula and
roll ito down.

sp per e.g below

I would total for acct 100 sub 800 and then when the sub changes or the acct
changes then I would begin totalling again.

Thanks

S Commar

"Dominik Petri" wrote in message
...
Hi Sandy,

you could use SUMPRODUCT.

If your data is in A2:D7 (headers are in row 1) and your sums start in row
10, then use this formula in C10:

=SUMPRODUCT(--($A$2:$A$7=$A10), --($B$2:$B$10=$B10), --($C$2:$C$10)) to
calculate the Debit Amount.

Copy the formula to D10 and you have the credit amount.

HTH,
Dominik.



Sandy schrieb:
I have an excel sheet wehre I have the followign coloums e.g below. I
wanted to get some kind of furmula or function that would let me do a sum
by every unique Acct\Subacct Combo

Acct Subacct DebitAmount CreditAmount
100 800 1000
100 800 4000
100 800 9000
100 1250 1400
100 1250 1600
100 1250 3000


So basically my sum would be

Acct Sub DebitAmount CrediAmount
100 800 5000 9000
100 1250 3000 3000

As there are thousands of lines I cant manually do this. I would
apprecaite if someone cas assist

Thanks in advance
Sandy


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Want to do sum by Acct Subacct

Hi Sandy,

I don't know if I understand you correctly, but I suppose your problem
is this:

- You have thousands of lines with data
- each line has (e.g. in columns A and B) the Acct and Subacct numbers
and (e.g. in columns C and D) debit and/or credt amounts
- You want to sum the debit and credit amounts for each Acct-Subacct
combination.


If this is correct, then first create a list of all unique Acct-Subacct
combinations. You could do this using Excel's Advanced Filter.

You'll then have these combinations e.g. in the range F1 to G500
(assuming you have 500 different combinations).

Assuming you have 10.000 rows with data (and the first row contains the
column headers), put this formula in H1:
=SUMPRODUCT(--($A$2:$A$10000=$F1), --($B$2:$B$10000=$G1), --(C$2:C$10000))

Now you can copy this formula from H1 to I1 and copy both formulas down
to row 500.

Is this what you want?

Regards,
Dominik.



Sandy schrieb:
Dominik

Thanks very much

What I want to do is calculate based on whenever there is a cahnge in
the unique account\subaccouot combination.So there might be for certain
Account\subaccounts 15 lines and for others just 4 lines etc.

As there are going to be thousands of lines I want to just put a formula
and roll ito down.

sp per e.g below

I would total for acct 100 sub 800 and then when the sub changes or the
acct changes then I would begin totalling again.

Thanks

S Commar

"Dominik Petri" wrote in message
...
Hi Sandy,

you could use SUMPRODUCT.

If your data is in A2:D7 (headers are in row 1) and your sums start in
row 10, then use this formula in C10:

=SUMPRODUCT(--($A$2:$A$7=$A10), --($B$2:$B$10=$B10), --($C$2:$C$10))
to calculate the Debit Amount.

Copy the formula to D10 and you have the credit amount.

HTH,
Dominik.



Sandy schrieb:
I have an excel sheet wehre I have the followign coloums e.g below.
I wanted to get some kind of furmula or function that would let me do
a sum
by every unique Acct\Subacct Combo

Acct Subacct DebitAmount CreditAmount
100 800 1000
100 800 4000
100 800 9000
100 1250 1400
100 1250 1600
100 1250 3000


So basically my sum would be

Acct Sub DebitAmount CrediAmount
100 800 5000 9000
100 1250 3000 3000

As there are thousands of lines I cant manually do this. I would
apprecaite if someone cas assist

Thanks in advance
Sandy


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Want to do sum by Acct Subacct

Dominik

Thanks
That's exactly what I want . Somehow I am not able to Advanced Filter. I get
an error when I try and copy the unique list to a new area on the grid. The
error I get references invalid field. Can you please guide me on this
process of Adavnced filtering.

.. THanks a lot

"Dominik Petri" wrote in message
...
Hi Sandy,

I don't know if I understand you correctly, but I suppose your problem is
this:

- You have thousands of lines with data
- each line has (e.g. in columns A and B) the Acct and Subacct numbers and
(e.g. in columns C and D) debit and/or credt amounts
- You want to sum the debit and credit amounts for each Acct-Subacct
combination.


If this is correct, then first create a list of all unique Acct-Subacct
combinations. You could do this using Excel's Advanced Filter.

You'll then have these combinations e.g. in the range F1 to G500 (assuming
you have 500 different combinations).

Assuming you have 10.000 rows with data (and the first row contains the
column headers), put this formula in H1:
=SUMPRODUCT(--($A$2:$A$10000=$F1), --($B$2:$B$10000=$G1), --(C$2:C$10000))

Now you can copy this formula from H1 to I1 and copy both formulas down to
row 500.

Is this what you want?

Regards,
Dominik.



Sandy schrieb:
Dominik

Thanks very much

What I want to do is calculate based on whenever there is a cahnge in the
unique account\subaccouot combination.So there might be for certain
Account\subaccounts 15 lines and for others just 4 lines etc.

As there are going to be thousands of lines I want to just put a formula
and roll ito down.

sp per e.g below

I would total for acct 100 sub 800 and then when the sub changes or the
acct changes then I would begin totalling again.

Thanks

S Commar

"Dominik Petri" wrote in message
...
Hi Sandy,

you could use SUMPRODUCT.

If your data is in A2:D7 (headers are in row 1) and your sums start in
row 10, then use this formula in C10:

=SUMPRODUCT(--($A$2:$A$7=$A10), --($B$2:$B$10=$B10), --($C$2:$C$10)) to
calculate the Debit Amount.

Copy the formula to D10 and you have the credit amount.

HTH,
Dominik.



Sandy schrieb:
I have an excel sheet wehre I have the followign coloums e.g below. I
wanted to get some kind of furmula or function that would let me do a
sum
by every unique Acct\Subacct Combo

Acct Subacct DebitAmount CreditAmount
100 800 1000
100 800 4000
100 800 9000
100 1250 1400
100 1250 1600
100 1250 3000


So basically my sum would be

Acct Sub DebitAmount CrediAmount
100 800 5000 9000
100 1250 3000 3000

As there are thousands of lines I cant manually do this. I would
apprecaite if someone cas assist

Thanks in advance
Sandy




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Want to do sum by Acct Subacct

Sandy,

glad that the formula works for you. Concerning Excel's Advanced Filter,
you find a very good and in-depth explanation he
http://www.contextures.com/xladvfilter01.html

Hope this helps...

Dominik.


Sandy schrieb:
Dominik

Thanks
That's exactly what I want . Somehow I am not able to Advanced Filter. I
get an error when I try and copy the unique list to a new area on the
grid. The error I get references invalid field. Can you please guide me
on this process of Adavnced filtering.

. THanks a lot

"Dominik Petri" wrote in message
...
Hi Sandy,

I don't know if I understand you correctly, but I suppose your problem
is this:

- You have thousands of lines with data
- each line has (e.g. in columns A and B) the Acct and Subacct numbers
and (e.g. in columns C and D) debit and/or credt amounts
- You want to sum the debit and credit amounts for each Acct-Subacct
combination.


If this is correct, then first create a list of all unique
Acct-Subacct combinations. You could do this using Excel's Advanced
Filter.

You'll then have these combinations e.g. in the range F1 to G500
(assuming you have 500 different combinations).

Assuming you have 10.000 rows with data (and the first row contains
the column headers), put this formula in H1:
=SUMPRODUCT(--($A$2:$A$10000=$F1), --($B$2:$B$10000=$G1),
--(C$2:C$10000))

Now you can copy this formula from H1 to I1 and copy both formulas
down to row 500.

Is this what you want?

Regards,
Dominik.



Sandy schrieb:
Dominik

Thanks very much

What I want to do is calculate based on whenever there is a cahnge in
the unique account\subaccouot combination.So there might be for
certain Account\subaccounts 15 lines and for others just 4 lines etc.

As there are going to be thousands of lines I want to just put a
formula and roll ito down.

sp per e.g below

I would total for acct 100 sub 800 and then when the sub changes or
the acct changes then I would begin totalling again.

Thanks

S Commar

"Dominik Petri" wrote in message
...
Hi Sandy,

you could use SUMPRODUCT.

If your data is in A2:D7 (headers are in row 1) and your sums start
in row 10, then use this formula in C10:

=SUMPRODUCT(--($A$2:$A$7=$A10), --($B$2:$B$10=$B10), --($C$2:$C$10))
to calculate the Debit Amount.

Copy the formula to D10 and you have the credit amount.

HTH,
Dominik.



Sandy schrieb:
I have an excel sheet wehre I have the followign coloums e.g
below. I wanted to get some kind of furmula or function that would
let me do a sum
by every unique Acct\Subacct Combo

Acct Subacct DebitAmount CreditAmount
100 800 1000
100 800 4000
100 800 9000
100 1250 1400
100 1250 1600
100 1250 3000


So basically my sum would be

Acct Sub DebitAmount CrediAmount
100 800 5000 9000
100 1250 3000 3000

As there are thousands of lines I cant manually do this. I would
apprecaite if someone cas assist

Thanks in advance
Sandy

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Want to do sum by Acct Subacct

Dominik

Can I bother you with one more assistance item.

I had to add one more item in Coloum C for Project so now I have

Acct Subacct Project DebitAmt CreditAmt

I have used the Advanced filter so that now in Coloum F G H have the
distinct
Acct Subacct Project combinations.

I was trying to extrapolate the formula you had provided
H1:
=SUMPRODUCT(--($A$2:$A$10000=$F1), --($B$2:$B$10000=$G1), --(C$2:C$10000))
to capture the one more variable in Coloum C (for Project ) but to no avail.

Can I bother you to please guide me that once I have the distinct
Acct Subacct Project combinations in Coloum F G H- how can I get the sum sum
the debit and credit amounts for each Acct-Subacct-Project combination.

Thank you so much for all your help. Its been a lifesaver.

Sandy




"Sandy" wrote in message
...
Dominik

Thanks
That's exactly what I want . Somehow I am not able to Advanced Filter. I
get an error when I try and copy the unique list to a new area on the
grid. The error I get references invalid field. Can you please guide me on
this process of Adavnced filtering.

. THanks a lot

"Dominik Petri" wrote in message
...
Hi Sandy,

I don't know if I understand you correctly, but I suppose your problem is
this:

- You have thousands of lines with data
- each line has (e.g. in columns A and B) the Acct and Subacct numbers
and (e.g. in columns C and D) debit and/or credt amounts
- You want to sum the debit and credit amounts for each Acct-Subacct
combination.


If this is correct, then first create a list of all unique Acct-Subacct
combinations. You could do this using Excel's Advanced Filter.

You'll then have these combinations e.g. in the range F1 to G500
(assuming you have 500 different combinations).

Assuming you have 10.000 rows with data (and the first row contains the
column headers), put this formula in H1:
=SUMPRODUCT(--($A$2:$A$10000=$F1), --($B$2:$B$10000=$G1), --(C$2:C$10000))

Now you can copy this formula from H1 to I1 and copy both formulas down
to row 500.

Is this what you want?

Regards,
Dominik.



Sandy schrieb:
Dominik

Thanks very much

What I want to do is calculate based on whenever there is a cahnge in
the unique account\subaccouot combination.So there might be for certain
Account\subaccounts 15 lines and for others just 4 lines etc.

As there are going to be thousands of lines I want to just put a formula
and roll ito down.

sp per e.g below

I would total for acct 100 sub 800 and then when the sub changes or the
acct changes then I would begin totalling again.

Thanks

S Commar

"Dominik Petri" wrote in message
...
Hi Sandy,

you could use SUMPRODUCT.

If your data is in A2:D7 (headers are in row 1) and your sums start in
row 10, then use this formula in C10:

=SUMPRODUCT(--($A$2:$A$7=$A10), --($B$2:$B$10=$B10), --($C$2:$C$10)) to
calculate the Debit Amount.

Copy the formula to D10 and you have the credit amount.

HTH,
Dominik.



Sandy schrieb:
I have an excel sheet wehre I have the followign coloums e.g below. I
wanted to get some kind of furmula or function that would let me do a
sum
by every unique Acct\Subacct Combo

Acct Subacct DebitAmount CreditAmount
100 800 1000
100 800 4000
100 800 9000
100 1250 1400
100 1250 1600
100 1250 3000


So basically my sum would be

Acct Sub DebitAmount CrediAmount
100 800 5000 9000
100 1250 3000 3000

As there are thousands of lines I cant manually do this. I would
apprecaite if someone cas assist

Thanks in advance
Sandy

  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Want to do sum by Acct Subacct

Dominik

Can I bother you with one more assistance item.

I had to add one more item in Coloum C for Project so now I have

Acct Subacct Project DebitAmt CreditAmt

I have used the Advanced filter so that now in Coloum F G H have the
distinct
Acct Subacct Project combinations.

I was trying to extrapolate the formula you had provided
H1:
=SUMPRODUCT(--($A$2:$A$10000=$F1), --($B$2:$B$10000=$G1), --(C$2:C$10000))
to capture the one more variable in Coloum C (for Project ) but to no avail.

Can I bother you to please guide me that once I have the distinct
Acct Subacct Project combinations in Coloum F G H- how can I get the sum sum
the debit and credit amounts for each Acct-Subacct-Project combination.

Thank you so much for all your help. Its been a lifesaver.

Sandy




"Sandy" wrote in message
...
Dominik

Thanks
That's exactly what I want . Somehow I am not able to Advanced Filter. I
get an error when I try and copy the unique list to a new area on the
grid. The error I get references invalid field. Can you please guide me on
this process of Adavnced filtering.

. THanks a lot

"Dominik Petri" wrote in message
...
Hi Sandy,

I don't know if I understand you correctly, but I suppose your problem is
this:

- You have thousands of lines with data
- each line has (e.g. in columns A and B) the Acct and Subacct numbers
and (e.g. in columns C and D) debit and/or credt amounts
- You want to sum the debit and credit amounts for each Acct-Subacct
combination.


If this is correct, then first create a list of all unique Acct-Subacct
combinations. You could do this using Excel's Advanced Filter.

You'll then have these combinations e.g. in the range F1 to G500
(assuming you have 500 different combinations).

Assuming you have 10.000 rows with data (and the first row contains the
column headers), put this formula in H1:
=SUMPRODUCT(--($A$2:$A$10000=$F1), --($B$2:$B$10000=$G1), --(C$2:C$10000))

Now you can copy this formula from H1 to I1 and copy both formulas down
to row 500.

Is this what you want?

Regards,
Dominik.



Sandy schrieb:
Dominik

Thanks very much

What I want to do is calculate based on whenever there is a cahnge in
the unique account\subaccouot combination.So there might be for certain
Account\subaccounts 15 lines and for others just 4 lines etc.

As there are going to be thousands of lines I want to just put a formula
and roll ito down.

sp per e.g below

I would total for acct 100 sub 800 and then when the sub changes or the
acct changes then I would begin totalling again.

Thanks

S Commar

"Dominik Petri" wrote in message
...
Hi Sandy,

you could use SUMPRODUCT.

If your data is in A2:D7 (headers are in row 1) and your sums start in
row 10, then use this formula in C10:

=SUMPRODUCT(--($A$2:$A$7=$A10), --($B$2:$B$10=$B10), --($C$2:$C$10)) to
calculate the Debit Amount.

Copy the formula to D10 and you have the credit amount.

HTH,
Dominik.



Sandy schrieb:
I have an excel sheet wehre I have the followign coloums e.g below. I
wanted to get some kind of furmula or function that would let me do a
sum
by every unique Acct\Subacct Combo

Acct Subacct DebitAmount CreditAmount
100 800 1000
100 800 4000
100 800 9000
100 1250 1400
100 1250 1600
100 1250 3000


So basically my sum would be

Acct Sub DebitAmount CrediAmount
100 800 5000 9000
100 1250 3000 3000

As there are thousands of lines I cant manually do this. I would
apprecaite if someone cas assist

Thanks in advance
Sandy

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
Running Total, Opening & Closing Acct Balance in Cash Book rushdhih Excel Worksheet Functions 1 February 2nd 10 05:31 PM
Verify if Acct # that is on wksheet is on another Donna New Users to Excel 4 January 16th 09 07:40 PM
import stock prices from discount broker acct barbara Excel Worksheet Functions 2 September 15th 07 07:50 PM
How can I convert Excel .csv to .qif for download into bank acct? Martha Holmes Excel Worksheet Functions 2 December 7th 06 02:43 PM
Finding Office and Last Code Used on Acct Based on Multiple Critie Robert Excel Discussion (Misc queries) 3 December 6th 06 11:23 AM


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