Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Using SUMIF/IF statements for multiple conditions

Hi,
I'm trying to get a list of balances for different account numbers for
different currencies. Some accounts have different currencies however and so
they need to satisfy the conditions of being both a certain currency and a
certain account number. This is the latest I've got so far, although there
have been different versions as I've tried almost everything:

=SUMIF(('2007'!C4:C2000,'2007'!K4:K2000),("currenc y",'account
#'),'2007'!E4:E2000)

I have tried using nested IF statements also without any luck. Can anyone
help me?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bj bj is offline
external usenet poster
 
Posts: 1,397
Default Using SUMIF/IF statements for multiple conditions

sumproduct would probably do what you want
I do not know what your setup is but
=sumproduct)--(account-number-range = account number),--(currency-range =
currency),value range)
the arrays must be the same size and you cannot use A:A to reference a full
column. A1:A64000 would be OK.


"mishmash" wrote:

Hi,
I'm trying to get a list of balances for different account numbers for
different currencies. Some accounts have different currencies however and so
they need to satisfy the conditions of being both a certain currency and a
certain account number. This is the latest I've got so far, although there
have been different versions as I've tried almost everything:

=SUMIF(('2007'!C4:C2000,'2007'!K4:K2000),("currenc y",'account
#'),'2007'!E4:E2000)

I have tried using nested IF statements also without any luck. Can anyone
help me?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Using SUMIF/IF statements for multiple conditions

You can do like this :

supose in range A11:C16 you have :

Currency Acount Value
3 1 7
3 2 15
1 1 14
2 2 23
3 1 21

The formula to get the sum of values with currency=3 and Acount=1 will
be

=SUM(IF((A12:A16=3)*(B12:B16=2);C12:C16;""))

This is a array formula so when entering the formula you must do Ctrl
Shift Enter

Regards

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Using SUMIF/IF statements for multiple conditions

This was really helpful. Many thanks

" wrote:

You can do like this :

supose in range A11:C16 you have :

Currency Acount Value
3 1 7
3 2 15
1 1 14
2 2 23
3 1 21

The formula to get the sum of values with currency=3 and Acount=1 will
be

=SUM(IF((A12:A16=3)*(B12:B16=2);C12:C16;""))

This is a array formula so when entering the formula you must do Ctrl
Shift Enter

Regards


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 698
Default Using SUMIF/IF statements for multiple conditions

Try this:

=SUMPRODUCT((E7:E350="ARCOM")*(--T7:T350=1))

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"mishmash" wrote:

Hi,
I'm trying to get a list of balances for different account numbers for
different currencies. Some accounts have different currencies however and so
they need to satisfy the conditions of being both a certain currency and a
certain account number. This is the latest I've got so far, although there
have been different versions as I've tried almost everything:

=SUMIF(('2007'!C4:C2000,'2007'!K4:K2000),("currenc y",'account
#'),'2007'!E4:E2000)

I have tried using nested IF statements also without any luck. Can anyone
help me?



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 698
Default Using SUMIF/IF statements for multiple conditions

Apologies....This has nothing do to with your post.


***********
Regards,
Ron

XL2002, WinXP


"Ron Coderre" wrote:

Try this:

=SUMPRODUCT((E7:E350="ARCOM")*(--T7:T350=1))

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"mishmash" wrote:

Hi,
I'm trying to get a list of balances for different account numbers for
different currencies. Some accounts have different currencies however and so
they need to satisfy the conditions of being both a certain currency and a
certain account number. This is the latest I've got so far, although there
have been different versions as I've tried almost everything:

=SUMIF(('2007'!C4:C2000,'2007'!K4:K2000),("currenc y",'account
#'),'2007'!E4:E2000)

I have tried using nested IF statements also without any luck. Can anyone
help me?

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
Multiple if statements with multiple conditions egarcia Excel Discussion (Misc queries) 4 January 29th 07 10:46 PM
Multiple if statements in a sumif function TPDigg Excel Worksheet Functions 4 November 15th 06 08:06 PM
sumif with multiple conditions Slax Excel Worksheet Functions 5 April 12th 06 10:27 PM
sumif with multiple conditions Ray Excel Worksheet Functions 8 September 23rd 05 12:20 AM
Combining IF and multiple SUMIF statements, if A>0 & B is between Lee Excel Worksheet Functions 1 January 3rd 05 06:46 PM


All times are GMT +1. The time now is 05:22 AM.

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"