Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default I can't think of a short title for this

Ok this is what I have. I have a list of accounts: 100-2, 100-3, 200-2,
200-4,
400-2, 400-3, 400-4, etc. all in one column. Then I have the balances for
each of these accounts in another column. What I am trying to do (with no
success thus far) is create a formula that takes all the accounts that end in
"2" and add them together, all the accounts that end in "3" and add them
together etc. I figured that I would need a formula for each check digit but
I cannot figure out how to get it to work. I have used SUM, IF, CHOOSE, in
all kinds of variations. I am stuck. Is this something I can actually do?
If it is, who wants to be my saviour today? :-)
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,069
Default I can't think of a short title for this

You might need a helper column
Column A is the account numbers 100-1, 100-2 etc
Column b is =right(a1,1)
column c is the balances
To add all the accounts ending in 1 use =SUMIF(B1:B5,1,C1:C5), changing the
range as required and the '1' to the number of the account you need.

Hope this helps
--
John
MOS Master Instructor Office 2000, 2002 & 2003
Please reply & rate any replies you get

Ice Hockey rules (especially the Wightlink Raiders)


"amour24" wrote:

Ok this is what I have. I have a list of accounts: 100-2, 100-3, 200-2,
200-4,
400-2, 400-3, 400-4, etc. all in one column. Then I have the balances for
each of these accounts in another column. What I am trying to do (with no
success thus far) is create a formula that takes all the accounts that end in
"2" and add them together, all the accounts that end in "3" and add them
together etc. I figured that I would need a formula for each check digit but
I cannot figure out how to get it to work. I have used SUM, IF, CHOOSE, in
all kinds of variations. I am stuck. Is this something I can actually do?
If it is, who wants to be my saviour today? :-)

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,081
Default I can't think of a short title for this

Let's say all of you accounts are in col A, in rows 2-100, and the values are
in column B

Try

=sumproduct(--(right(a2:a100,1)="2"),b2:b100)


"amour24" wrote:

Ok this is what I have. I have a list of accounts: 100-2, 100-3, 200-2,
200-4,
400-2, 400-3, 400-4, etc. all in one column. Then I have the balances for
each of these accounts in another column. What I am trying to do (with no
success thus far) is create a formula that takes all the accounts that end in
"2" and add them together, all the accounts that end in "3" and add them
together etc. I figured that I would need a formula for each check digit but
I cannot figure out how to get it to work. I have used SUM, IF, CHOOSE, in
all kinds of variations. I am stuck. Is this something I can actually do?
If it is, who wants to be my saviour today? :-)

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
short key tom ossieur Excel Discussion (Misc queries) 2 July 25th 06 10:59 AM
Named range=Column title,comumn title in cellB6 use B6in equation Graham Excel Discussion (Misc queries) 2 July 21st 06 10:03 AM
Show full path title in title bar? Nor New Users to Excel 4 November 4th 05 06:00 PM
Pasting Objects into Chart title and Axis title Sam Charts and Charting in Excel 1 June 6th 05 08:50 PM
short cut key vishu Excel Discussion (Misc queries) 1 May 19th 05 08:31 AM


All times are GMT +1. The time now is 04:39 PM.

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"