Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default sumifs question

=(SUMIFS('[Budget Spreadsheet with subaccount.xls]Data'!$F:$F,'[Budget
Spreadsheet with subaccount.xls]Data'!$G:$G,$B9,'[Budget Spreadsheet with
subaccount.xls]Data'!$A:$A,$A$1,'[Budget Spreadsheet with
subaccount.xls]Data'!$E:$E,"<="&'data input'!$A$1))

This SUMIFS function does exactly what it is supposed to do, assuming that
the user just wants data for a single fund located @ $A$1. However, now I
want to be able to pull data for multiple funds, which means there will have
to be some looping. I'm thinking of using the 'data input' sheet for user
input, but I'm not sure how to pull this off. Can someone give me a shove in
the right direction?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,049
Default sumifs question

the SUMIFS function simply allows multiple AND conditions AFAIK, but what
you need a logical OR

ie give me the sum IF fund =this OR fund = that

i'd use addition, which isn't too onerous

for example
{=SUM( (A1:A100="X")*(B1:B100) ) }
would return the sum of column B where column A had X

{=SUM( (A1:A100="X")*(B1:B100) + (A1:A100="Y")*(B1:B100) ) }
would return the sum of column B where column A had X or Y





"Jenny Barker" wrote in message
...
=(SUMIFS('[Budget Spreadsheet with subaccount.xls]Data'!$F:$F,'[Budget
Spreadsheet with subaccount.xls]Data'!$G:$G,$B9,'[Budget Spreadsheet with
subaccount.xls]Data'!$A:$A,$A$1,'[Budget Spreadsheet with
subaccount.xls]Data'!$E:$E,"<="&'data input'!$A$1))

This SUMIFS function does exactly what it is supposed to do, assuming that
the user just wants data for a single fund located @ $A$1. However, now I
want to be able to pull data for multiple funds, which means there will
have
to be some looping. I'm thinking of using the 'data input' sheet for user
input, but I'm not sure how to pull this off. Can someone give me a shove
in
the right direction?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default sumifs question

I'm not sure "or" is what I'm looking for. I want to do the sumifs
calculation for the value in $A$1, and add it to the sumifs for the value in
$A$2 if there is a value in $A$2, then $A$3, etc., until the loop reaches an
empty cell.

"Patrick Molloy" wrote:

the SUMIFS function simply allows multiple AND conditions AFAIK, but what
you need a logical OR

ie give me the sum IF fund =this OR fund = that

i'd use addition, which isn't too onerous

for example
{=SUM( (A1:A100="X")*(B1:B100) ) }
would return the sum of column B where column A had X

{=SUM( (A1:A100="X")*(B1:B100) + (A1:A100="Y")*(B1:B100) ) }
would return the sum of column B where column A had X or Y





"Jenny Barker" wrote in message
...
=(SUMIFS('[Budget Spreadsheet with subaccount.xls]Data'!$F:$F,'[Budget
Spreadsheet with subaccount.xls]Data'!$G:$G,$B9,'[Budget Spreadsheet with
subaccount.xls]Data'!$A:$A,$A$1,'[Budget Spreadsheet with
subaccount.xls]Data'!$E:$E,"<="&'data input'!$A$1))

This SUMIFS function does exactly what it is supposed to do, assuming that
the user just wants data for a single fund located @ $A$1. However, now I
want to be able to pull data for multiple funds, which means there will
have
to be some looping. I'm thinking of using the 'data input' sheet for user
input, but I'm not sure how to pull this off. Can someone give me a shove
in
the right direction?


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
SUMIFS question Eric Garcia Excel Worksheet Functions 3 May 7th 10 07:01 PM
How do I use sumifs - wantfit Excel Worksheet Functions 1 April 22nd 10 09:37 PM
Sumifs (I think) Jeff Excel Worksheet Functions 5 November 19th 09 06:15 PM
simple sumIfs question Cresta Excel Programming 1 April 3rd 08 12:12 PM
Excel CountIfs() and SumIfs() question Harlan Grove Excel Worksheet Functions 1 September 18th 07 12:12 AM


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