#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 33
Default Nesting

I've got a table of data...

Loan number, tran code, acct, amt.

I need to sum the amounts for the loan number that equal a certain tran code
and acct number. For example, sum acct #11900 for tran codes 88 and 6 for a
certain loan number. The table has several transactions for one loan number.

Can someone help?? My problem is looking up the loan number before summing
the information I need.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Nesting

Do it like this:

=SUMPRODUCT((A1:A100=loan_num)*((B1:B100=88)+
(B1:B100=6))*(C1:C100=11900)*(D1:D100))

where loan_num is the loan number you are interested in. Essentially,
sum amount in column D where Loan Number = loan_num AND Account =
11900 AND Tran code is either 88 or 6.

Adjust the ranges to suit the extent of your data.

Hope this helps.

Pete

On Apr 24, 5:23*pm, LWilson wrote:
I've got a table of data...

Loan number, tran code, acct, amt.

I need to sum the amounts for the loan number that equal a certain tran code
and acct number. For example, sum acct #11900 for tran codes 88 and 6 for a
certain loan number. *The table has several transactions for one loan number.

Can someone help?? *My problem is looking up the loan number before summing
the information I need.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 33
Default Nesting

My table of data is in one worksheet and the sumproduct formula is in
another. I need to be able to look up the loan number as well. When I used
this formula, it gave me a #Name. Here's my formula...

=SUMPRODUCT(download!A:A='Apr-08'!A7)*((download!H:H=88)+(download!H:H=6))*(down load!D:D=11900)*(download!F:F)

"Pete_UK" wrote:

Do it like this:

=SUMPRODUCT((A1:A100=loan_num)*((B1:B100=88)+
(B1:B100=6))*(C1:C100=11900)*(D1:D100))

where loan_num is the loan number you are interested in. Essentially,
sum amount in column D where Loan Number = loan_num AND Account =
11900 AND Tran code is either 88 or 6.

Adjust the ranges to suit the extent of your data.

Hope this helps.

Pete

On Apr 24, 5:23 pm, LWilson wrote:
I've got a table of data...

Loan number, tran code, acct, amt.

I need to sum the amounts for the loan number that equal a certain tran code
and acct number. For example, sum acct #11900 for tran codes 88 and 6 for a
certain loan number. The table has several transactions for one loan number.

Can someone help?? My problem is looking up the loan number before summing
the information I need.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Nesting

If you are using XL2003 or earlier you can't use full-column
references in Sumproduct (or other array formulae), so you will have
to make your ranges something like A1:A1000 instead.

You have also missed a bracket off the end and at the very beginning.

Hope this helps.

Pete

On Apr 24, 5:51*pm, LWilson wrote:
My table of data is in one worksheet and the sumproduct formula is in
another. *I need to be able to look up the loan number as well. *When I used
this formula, it gave me a #Name. Here's my formula...

=SUMPRODUCT(download!A:A='Apr-08'!A7)*((download!H:H=88)+(download!H:H=6))**(dow nload!D:D=11900)*(download!F:F)



"Pete_UK" wrote:
Do it like this:


=SUMPRODUCT((A1:A100=loan_num)*((B1:B100=88)+
(B1:B100=6))*(C1:C100=11900)*(D1:D100))


where loan_num is the loan number you are interested in. Essentially,
sum amount in column D where Loan Number = loan_num AND Account =
11900 AND Tran code is either 88 or 6.


Adjust the ranges to suit the extent of your data.


Hope this helps.


Pete


On Apr 24, 5:23 pm, LWilson wrote:
I've got a table of data...


Loan number, tran code, acct, amt.


I need to sum the amounts for the loan number that equal a certain tran code
and acct number. For example, sum acct #11900 for tran codes 88 and 6 for a
certain loan number. *The table has several transactions for one loan number.


Can someone help?? *My problem is looking up the loan number before summing
the information I need.- Hide quoted text -


- Show quoted text -


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 33
Default Nesting

Now I feel really dumb. I just discovered I have excel 2000. I used the
range instead of the column and got a 0 for the answer. In one example, my
answer should be 5039.89. I think the problem lies in the fact that I have
two worksheets and it's having to pull the data from one and populate in the
other?? Just not sure. I don't have much experience, obviously, with
sumproduct. Would a nested sumif work or would that be too many parameters.
I have 3 conditions to meet. loan number, trans code, account.

If acct # is 4000000, and the trans code is an 88 and/or 6 and it's in
account 11900, then give me the sum of (amounts for trans code 88 and 6).

You're very kind to help.

"Pete_UK" wrote:

If you are using XL2003 or earlier you can't use full-column
references in Sumproduct (or other array formulae), so you will have
to make your ranges something like A1:A1000 instead.

You have also missed a bracket off the end and at the very beginning.

Hope this helps.

Pete

On Apr 24, 5:51 pm, LWilson wrote:
My table of data is in one worksheet and the sumproduct formula is in
another. I need to be able to look up the loan number as well. When I used
this formula, it gave me a #Name. Here's my formula...

=SUMPRODUCT(download!A:A='Apr-08'!A7)*((download!H:H=88)+(download!H:H=6))*Â*(do wnload!D:D=11900)*(download!F:F)



"Pete_UK" wrote:
Do it like this:


=SUMPRODUCT((A1:A100=loan_num)*((B1:B100=88)+
(B1:B100=6))*(C1:C100=11900)*(D1:D100))


where loan_num is the loan number you are interested in. Essentially,
sum amount in column D where Loan Number = loan_num AND Account =
11900 AND Tran code is either 88 or 6.


Adjust the ranges to suit the extent of your data.


Hope this helps.


Pete


On Apr 24, 5:23 pm, LWilson wrote:
I've got a table of data...


Loan number, tran code, acct, amt.


I need to sum the amounts for the loan number that equal a certain tran code
and acct number. For example, sum acct #11900 for tran codes 88 and 6 for a
certain loan number. The table has several transactions for one loan number.


Can someone help?? My problem is looking up the loan number before summing
the information I need.- Hide quoted text -


- Show quoted text -





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Nesting

You won't be able to use SUMIF because you have more than one
condition.

Just Copy/Paste your formula to the newsgroups so we can see where it
might be going wrong.

Pete

On Apr 24, 10:01*pm, LWilson
wrote:
Now I feel really dumb. *I just discovered I have excel 2000. *I used the
range instead of the column and got a 0 for the answer. In one example, my
answer should be 5039.89. *I think the problem lies in the fact that I have
two worksheets and it's having to pull the data from one and populate in the
other?? Just not sure. *I don't have much experience, obviously, with
sumproduct. *Would a nested sumif work or would that be too many parameters.
I have 3 conditions to meet. loan number, trans code, account. *

If acct # is 4000000, and the trans code is an 88 and/or 6 and it's in
account 11900, then give me the sum of (amounts for trans code 88 and 6). *

You're very kind to help.



"Pete_UK" wrote:
If you are using XL2003 or earlier you can't use full-column
references in Sumproduct (or other array formulae), so you will have
to make your ranges something like A1:A1000 instead.


You have also missed a bracket off the end and at the very beginning.


Hope this helps.


Pete


On Apr 24, 5:51 pm, LWilson wrote:
My table of data is in one worksheet and the sumproduct formula is in
another. *I need to be able to look up the loan number as well. *When I used
this formula, it gave me a #Name. Here's my formula...


=SUMPRODUCT(download!A:A='Apr-08'!A7)*((download!H:H=88)+(download!H:H=6))***(do wnload!D:D=11900)*(download!F:F)


"Pete_UK" wrote:
Do it like this:


=SUMPRODUCT((A1:A100=loan_num)*((B1:B100=88)+
(B1:B100=6))*(C1:C100=11900)*(D1:D100))


where loan_num is the loan number you are interested in. Essentially,
sum amount in column D where Loan Number = loan_num AND Account =
11900 AND Tran code is either 88 or 6.


Adjust the ranges to suit the extent of your data.


Hope this helps.


Pete


On Apr 24, 5:23 pm, LWilson wrote:
I've got a table of data...


Loan number, tran code, acct, amt.


I need to sum the amounts for the loan number that equal a certain tran code
and acct number. For example, sum acct #11900 for tran codes 88 and 6 for a
certain loan number. *The table has several transactions for one loan number.


Can someone help?? *My problem is looking up the loan number before summing
the information I need.- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -


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
Nesting Donna Excel Worksheet Functions 8 April 3rd 08 08:05 PM
OR Nesting? Karel Excel Discussion (Misc queries) 2 March 27th 08 03:52 AM
NESTING FORMULA Tonya Excel Worksheet Functions 1 August 29th 06 09:21 PM
IF - Nesting... almost got it - need a bit of help AngelaG Excel Worksheet Functions 1 August 22nd 05 10:30 PM
nesting sum if and BMSpell Excel Worksheet Functions 2 January 20th 05 05:10 PM


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