Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Ian Ian is offline
external usenet poster
 
Posts: 109
Default Nested IF / SUMIF statements

I'm trying to determine a sum via a number of SUMIF's, and am failing badly !

To explain, I have 4 columns with data in - Names, Town, Month, Sales. I
need to show the total Sales number where the Names and Town and Month are
the same.

eg
=sumif(a:a="Smith",sumif(b:b="London",sumif(c:c="J an",(d:d))))

--
Many thanks

Ian
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Nested IF / SUMIF statements

You can only use SUMIF with one criterion - if you have more then you can
use SUMPRODUCT, like this:

=SUMPRODUCT((A1:A100="Smith")*(B1:B100="London")*( C1:C100="Jan"),D1:D100)

All the ranges must be the same length, but you can't use full-column ranges
(unless you have XL2007). If you have proper dates in column C then you will
have to use something like:

(TEXT(C1:C100,"mmm")="Jan")

and you might also have to take account of the year, depending on how your
file is set up.

Hope this helps.

Pete

"Ian" wrote in message
...
I'm trying to determine a sum via a number of SUMIF's, and am failing
badly !

To explain, I have 4 columns with data in - Names, Town, Month, Sales. I
need to show the total Sales number where the Names and Town and Month are
the same.

eg
=sumif(a:a="Smith",sumif(b:b="London",sumif(c:c="J an",(d:d))))

--
Many thanks

Ian



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 51
Default Nested IF / SUMIF statements


You can use the sumif in an array, use the formula below but hold in
ctrl+shift when you press enter.

=SUM(IF(A34:A39="Smith",IF(B34:B39="London",IF(C34 :C39="Jan",(D34:D39)))))


"Ian" wrote:

I'm trying to determine a sum via a number of SUMIF's, and am failing badly !

To explain, I have 4 columns with data in - Names, Town, Month, Sales. I
need to show the total Sales number where the Names and Town and Month are
the same.

eg
=sumif(a:a="Smith",sumif(b:b="London",sumif(c:c="J an",(d:d))))

--
Many thanks

Ian

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
Nested if statements JICDB Excel Worksheet Functions 2 November 20th 07 06:48 PM
nested if statements tjb Excel Worksheet Functions 1 March 28th 07 01:09 AM
nested if statements Teethless mama Excel Worksheet Functions 0 March 28th 07 12:23 AM
nested if statements Jeremy Excel Worksheet Functions 2 September 14th 06 08:08 PM
Nested IF statements maacmaac Excel Discussion (Misc queries) 0 January 23rd 06 09:22 PM


All times are GMT +1. The time now is 01:03 AM.

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"