Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
ann ann is offline
external usenet poster
 
Posts: 210
Default sum if formula help requested

i'm trying to figure out how to make this formula work. if the account id is
"123" then sum colum "a" and "b" for all numbers in the account. example:
acct debit credit
123 -200
123 +200

so i'm trying to get the formula to read if its account 123 the sum should
be "0"
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,311
Default sum if formula help requested

I'm assuming your Account #s are in column A, debits are in column B and
credits are in column C. With that in mind, you might try this:

=SUMIF(A1:A6,123,B1:B4)+SUMIF(A1:A6,123,C1:C4)

HTH,
Paul

"Ann" wrote in message
...
i'm trying to figure out how to make this formula work. if the account id
is
"123" then sum colum "a" and "b" for all numbers in the account. example:
acct debit credit
123 -200
123 +200

so i'm trying to get the formula to read if its account 123 the sum should
be "0"



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default sum if formula help requested

Another way

=SUMPRODUCT((A1:A4=123)*(B1:C4))


--
Regards,

Peo Sjoblom


"PCLIVE" wrote in message
...
I'm assuming your Account #s are in column A, debits are in column B and
credits are in column C. With that in mind, you might try this:

=SUMIF(A1:A6,123,B1:B4)+SUMIF(A1:A6,123,C1:C4)

HTH,
Paul

"Ann" wrote in message
...
i'm trying to figure out how to make this formula work. if the account
id is
"123" then sum colum "a" and "b" for all numbers in the account.
example:
acct debit credit
123 -200
123 +200

so i'm trying to get the formula to read if its account 123 the sum
should
be "0"





  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default sum if formula help requested

=SUMPRODUCT(--(A1:A2=123),(B1:B2+C1:C2))

"PCLIVE" wrote:

I'm assuming your Account #s are in column A, debits are in column B and
credits are in column C. With that in mind, you might try this:

=SUMIF(A1:A6,123,B1:B4)+SUMIF(A1:A6,123,C1:C4)

HTH,
Paul

"Ann" wrote in message
...
i'm trying to figure out how to make this formula work. if the account id
is
"123" then sum colum "a" and "b" for all numbers in the account. example:
acct debit credit
123 -200
123 +200

so i'm trying to get the formula to read if its account 123 the sum should
be "0"




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
ann ann is offline
external usenet poster
 
Posts: 210
Default sum if formula help requested

thanks, i'll try it out!!

"Toppers" wrote:

=SUMPRODUCT(--(A1:A2=123),(B1:B2+C1:C2))

"PCLIVE" wrote:

I'm assuming your Account #s are in column A, debits are in column B and
credits are in column C. With that in mind, you might try this:

=SUMIF(A1:A6,123,B1:B4)+SUMIF(A1:A6,123,C1:C4)

HTH,
Paul

"Ann" wrote in message
...
i'm trying to figure out how to make this formula work. if the account id
is
"123" then sum colum "a" and "b" for all numbers in the account. example:
acct debit credit
123 -200
123 +200

so i'm trying to get the formula to read if its account 123 the sum should
be "0"






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
Financial function requested, please Jack Sheet Excel Worksheet Functions 2 January 5th 07 01:54 PM
A challenge, Serious help requested dps9460 New Users to Excel 11 June 3rd 06 09:46 PM
Help Requested on Formula Rich Rosier Excel Worksheet Functions 4 April 2nd 06 09:07 PM
VB syntax help requested anny Excel Worksheet Functions 2 January 27th 06 03:16 AM
Help requested (quite long!) Lee Davison Excel Discussion (Misc queries) 7 April 13th 05 02:23 PM


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