Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default nested conditional subtotals


I have some work that i'm trying to sort and then subtotal like info.
Column A Column B Column C
acct # $$ subtotal

I get a check with one amount that applies to over 100 accounts with some
duplicates. The accounts are listed randomly on a list. I need to sort out
the account numbers and apply payments. So I am putting the account numbers
and $$ into a spreadsheet, then sorting column A which groups like accounts.
What i'm looking for is this. If I have 4 accounts say row 2,3,4,5 -i'd like
C2 to say..if A2 does not equal A3 then B2 else $0.00.
But how do i tell it to check A4,A5,A6 ... I really just want a subtotal on
C5 line.
I hope that makes sense. Thank You! Ray Brewer.


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 207
Default nested conditional subtotals

If I understood the question....in C2 try entering the following.

=IF(COUNTIF(A:A,A2)1,0,B2)

Does that help?


"RayB" wrote in message
...

I have some work that i'm trying to sort and then subtotal like info.
Column A Column B Column C
acct # $$ subtotal

I get a check with one amount that applies to over 100 accounts with some
duplicates. The accounts are listed randomly on a list. I need to sort
out
the account numbers and apply payments. So I am putting the account
numbers
and $$ into a spreadsheet, then sorting column A which groups like
accounts.
What i'm looking for is this. If I have 4 accounts say row 2,3,4,5 -i'd
like
C2 to say..if A2 does not equal A3 then B2 else $0.00.
But how do i tell it to check A4,A5,A6 ... I really just want a subtotal
on
C5 line.
I hope that makes sense. Thank You! Ray Brewer.




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default nested conditional subtotals

Ray,

Please don't multi-post (post the same question multiple times to different groups) - it is OK to
Cross-post (Select multiple groups at the same time, but with a single post) - it just duplicates
efforts.

My reply in the Misc group...
**************************************
In C2, enter the formula

=IF(A2<A3,SUM($B$2:B2)-SUM($C$1:C1),"")

and copy down, or use Excel's SUBTOTAL functionality: Data / Subtotals... subtotal on changes in
column A, summing column B.
**************************************
HTH,
Bernie
MS Excel MVP


"RayB" wrote in message
...

I have some work that i'm trying to sort and then subtotal like info.
Column A Column B Column C
acct # $$ subtotal

I get a check with one amount that applies to over 100 accounts with some
duplicates. The accounts are listed randomly on a list. I need to sort out
the account numbers and apply payments. So I am putting the account numbers
and $$ into a spreadsheet, then sorting column A which groups like accounts.
What i'm looking for is this. If I have 4 accounts say row 2,3,4,5 -i'd like
C2 to say..if A2 does not equal A3 then B2 else $0.00.
But how do i tell it to check A4,A5,A6 ... I really just want a subtotal on
C5 line.
I hope that makes sense. Thank You! Ray Brewer.




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
Subtotals problem: Excel 2003 (not, AFAIK, the nested subtotals bug) AndyCotgreave Excel Discussion (Misc queries) 3 October 24th 07 11:32 AM
Original subtotals should not be within nested subtotals in excel Mirage Excel Worksheet Functions 1 June 6th 07 01:37 AM
Subtotals: Nested subtotals below higher subtotal RobN Excel Discussion (Misc queries) 1 July 20th 06 09:04 PM
Problem with nested subtotals, placing secondary subtotals BELOW . Dawn Cameron Excel Discussion (Misc queries) 1 June 3rd 05 10:13 PM
why are nested subtotals coming out below outer subtotals? Hendy Excel Worksheet Functions 2 January 18th 05 08:09 PM


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