Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Question
 
Posts: n/a
Default SUMIF with multiple criteria, by columns

I have seen the answers to similar questions which suggest the use of
SUMPRODUCT. I have also seen mention that this works for exact and equal
ranges, but i need to do this for columns, because i will be continuously
adding to the ranges.

My columns are named ranges (month, fce1A, SpEE). Here is the sumif
statement.

=SUMIF(AND(month = "Mar 2006", fce1A = true),true,SpEE)
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Question
 
Posts: n/a
Default SUMIF with multiple criteria, by columns

Added to the above.

I have tried the following:
=SUMIF(fce1A, TRUE, SpEE)
it seems to work as does...
=SUMIF(month, "Mar 2006", SpEE)

Any thoughts?
Perhaps I should just write a custom function? I've actually tried that but
it's not working properly yet.

"Question" wrote:

I have seen the answers to similar questions which suggest the use of
SUMPRODUCT. I have also seen mention that this works for exact and equal
ranges, but i need to do this for columns, because i will be continuously
adding to the ranges.

My columns are named ranges (month, fce1A, SpEE). Here is the sumif
statement.

=SUMIF(AND(month = "Mar 2006", fce1A = true),true,SpEE)

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default SUMIF with multiple criteria, by columns

You can't use sumif for this, you would need sumproduct. I find it hard to
believe that you would need 65536 rows in your calculation but even if
that's the case you can use
1:65535 for your named ranges and then use

=SUMPRODUCT(--(month=3),--(fce1a=TRUE),SpEE)

or

=SUMPRODUCT(--(month="Mar 2006"),--(fce1a=TRUE),SpEE)

if your months are text



--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com



"Question" wrote in message
...
Added to the above.

I have tried the following:
=SUMIF(fce1A, TRUE, SpEE)
it seems to work as does...
=SUMIF(month, "Mar 2006", SpEE)

Any thoughts?
Perhaps I should just write a custom function? I've actually tried that
but
it's not working properly yet.

"Question" wrote:

I have seen the answers to similar questions which suggest the use of
SUMPRODUCT. I have also seen mention that this works for exact and equal
ranges, but i need to do this for columns, because i will be continuously
adding to the ranges.

My columns are named ranges (month, fce1A, SpEE). Here is the sumif
statement.

=SUMIF(AND(month = "Mar 2006", fce1A = true),true,SpEE)



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ken Wright
 
Posts: n/a
Default SUMIF with multiple criteria, by columns

Use SUMPRODUCT with a dynamic range that will increase as you add data.

Debra Dalgleish has an example here for making a Pivot table source dynamic,
but the principle is the same:-

http://www.contextures.com/xlPivot01.html

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

------------------------------*------------------------------*----------------
It's easier to beg forgiveness than ask permission :-)
------------------------------*------------------------------*----------------


"Question" wrote in message
...
Added to the above.

I have tried the following:
=SUMIF(fce1A, TRUE, SpEE)
it seems to work as does...
=SUMIF(month, "Mar 2006", SpEE)

Any thoughts?
Perhaps I should just write a custom function? I've actually tried that
but
it's not working properly yet.

"Question" wrote:

I have seen the answers to similar questions which suggest the use of
SUMPRODUCT. I have also seen mention that this works for exact and equal
ranges, but i need to do this for columns, because i will be continuously
adding to the ranges.

My columns are named ranges (month, fce1A, SpEE). Here is the sumif
statement.

=SUMIF(AND(month = "Mar 2006", fce1A = true),true,SpEE)



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 Criteria for COUNTIF and SUMIF nils_odendaal Excel Worksheet Functions 1 November 16th 05 08:38 AM
Multiple Criteria in a SUMIF formula JCARROLL Excel Discussion (Misc queries) 1 July 20th 05 09:17 PM
SUMIF, multiple criteria Lauren753 Excel Discussion (Misc queries) 1 June 20th 05 08:28 PM
SUMIF over multiple columns psmith4497 Excel Worksheet Functions 3 June 17th 05 06:40 PM
SumIf Function using multiple criteria Jamie A Miller Excel Worksheet Functions 1 February 4th 05 05:14 PM


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