Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
JustMe602
 
Posts: n/a
Default Simplify syntax of a Sum(IF... Array


{=SUM(IF((LEFT(TEXT($A6,"mm"),2))=((LEFT(TEXT('Wee kly Total -
2005'!$B$4:$B$123,"mm"),2))),'Weekly Total - 2005'!E$4:E$123,"-"))}


Can this be simplified ....


--
JustMe602
------------------------------------------------------------------------
JustMe602's Profile: http://www.excelforum.com/member.php...o&userid=27854
View this thread: http://www.excelforum.com/showthread...hreadid=474003

  #2   Report Post  
Myrna Larson
 
Posts: n/a
Default

I've omitted the worksheet name, but have you tried something like this?

=SUMPRODUCT((MONTH($B$4:$B$123)=MONTH($A6))*E$4:$E $123)

Also, a Pivot Table may help. You can group dates by month, month and year,
etc.


On Thu, 6 Oct 2005 20:30:09 -0500, JustMe602
wrote:


{=SUM(IF((LEFT(TEXT($A6,"mm"),2))=((LEFT(TEXT('We ekly Total -
2005'!$B$4:$B$123,"mm"),2))),'Weekly Total - 2005'!E$4:E$123,"-"))}


Can this be simplified ....

  #3   Report Post  
RagDyer
 
Posts: n/a
Default

One way, still keeping it as an *array* formula:

=SUM(IF(TEXT($A6,"mm")=TEXT('Weekly Total -
2005'!$B$4:$B$123,"mm"),'Weekly Total - 2005'!E$4:E$123,"-"))

If you could live with a zero instead of the dash ( - ), when no data meets
the criteria, you could try this *regular*, *non-array* formula:

=SUMPRODUCT((TEXT($A6,"mm")=TEXT('Weekly Total -
2005'!$B$4:$B$123,"mm"))*('Weekly Total - 2005'!E$4:E$123))


"JustMe602" wrote
in message ...

{=SUM(IF((LEFT(TEXT($A6,"mm"),2))=((LEFT(TEXT('Wee kly Total -
2005'!$B$4:$B$123,"mm"),2))),'Weekly Total - 2005'!E$4:E$123,"-"))}


Can this be simplified ....


--
JustMe602
------------------------------------------------------------------------
JustMe602's Profile:

http://www.excelforum.com/member.php...o&userid=27854
View this thread: http://www.excelforum.com/showthread...hreadid=474003


  #4   Report Post  
RagDyer
 
Posts: n/a
Default

Actually, all the formulas return zero in the absence of a match, so, use
the Sumproduct as a more efficient approach.
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"RagDyer" wrote in message
...
One way, still keeping it as an *array* formula:

=SUM(IF(TEXT($A6,"mm")=TEXT('Weekly Total -
2005'!$B$4:$B$123,"mm"),'Weekly Total - 2005'!E$4:E$123,"-"))

If you could live with a zero instead of the dash ( - ), when no data

meets
the criteria, you could try this *regular*, *non-array* formula:

=SUMPRODUCT((TEXT($A6,"mm")=TEXT('Weekly Total -
2005'!$B$4:$B$123,"mm"))*('Weekly Total - 2005'!E$4:E$123))


"JustMe602" wrote
in message ...

{=SUM(IF((LEFT(TEXT($A6,"mm"),2))=((LEFT(TEXT('Wee kly Total -
2005'!$B$4:$B$123,"mm"),2))),'Weekly Total - 2005'!E$4:E$123,"-"))}


Can this be simplified ....


--
JustMe602
------------------------------------------------------------------------
JustMe602's Profile:

http://www.excelforum.com/member.php...o&userid=27854
View this thread:

http://www.excelforum.com/showthread...hreadid=474003



  #5   Report Post  
Biff
 
Posts: n/a
Default

If you could live with a zero instead of the dash ( - ), when no data meets
the criteria


The use of the dash is superfluous.

Where the logical test is FALSE, the dashes are just TEXT elements in the
summed array:

=SUM({100;22;"-";50;"-"})

Since SUM ignores text, no harm done and if all elements of the array were
text, SUM = 0.

Biff

"RagDyer" wrote in message
...
One way, still keeping it as an *array* formula:

=SUM(IF(TEXT($A6,"mm")=TEXT('Weekly Total -
2005'!$B$4:$B$123,"mm"),'Weekly Total - 2005'!E$4:E$123,"-"))

If you could live with a zero instead of the dash ( - ), when no data
meets
the criteria, you could try this *regular*, *non-array* formula:

=SUMPRODUCT((TEXT($A6,"mm")=TEXT('Weekly Total -
2005'!$B$4:$B$123,"mm"))*('Weekly Total - 2005'!E$4:E$123))


"JustMe602" wrote
in message ...

{=SUM(IF((LEFT(TEXT($A6,"mm"),2))=((LEFT(TEXT('Wee kly Total -
2005'!$B$4:$B$123,"mm"),2))),'Weekly Total - 2005'!E$4:E$123,"-"))}


Can this be simplified ....


--
JustMe602
------------------------------------------------------------------------
JustMe602's Profile:

http://www.excelforum.com/member.php...o&userid=27854
View this thread:
http://www.excelforum.com/showthread...hreadid=474003




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
sumif based on vlookup array Brian Winkler Excel Worksheet Functions 6 October 16th 05 01:52 PM
Array Formula w/ Multiple SumIf Criteria Andy Excel Worksheet Functions 3 July 13th 05 08:56 PM
use sumif with array pdberger Excel Worksheet Functions 3 June 22nd 05 09:12 PM
syntax to refer to a range as an array? david cassain Excel Worksheet Functions 12 May 26th 05 11:28 PM
SUM(IF( Array to avoid #NUM! values Elijah Excel Worksheet Functions 7 November 21st 04 02:17 PM


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