LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 300
Default Array Formula Question

I have a column of formulas that I'd like to change under macro control.
One would be an array formula, and the other a simple SUMIF. I'd prefer not
to use a pivot table.

The more complicated case is finding what ranges dates fall within, and
summing the values associated with those dates. This was my try at it. The
macro runs and puts in the formula, but it doesn't work:

Range("D14").FormulaArray = "=SUM(IF(AND(Dates!B13<=LossYearColumn,LossYearCol umn<=Dates!C13),ExcludedColumn))"

This would then then have a variant going down for another 12 cells.
Preferrably done without a loop.

For the simple SUMIF case this works fine:

Range("D14:D26").FormulaR1C1 = "=IF(R[0]C[-3]="""",0,SUMIF(LossYearColumn,R[0]C[-3],ExcludedColumn))"

Thanks, Don <donwiss at panix.com.
 
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
Array Formula Syntax question... Steve P[_2_] Excel Discussion (Misc queries) 3 November 6th 09 04:44 PM
Array Formula Question IPerlovsky Excel Worksheet Functions 6 March 10th 07 05:04 AM
Array, Formula, Constant, IF Statement Question???? SayWhatAuto Excel Discussion (Misc queries) 4 January 1st 07 09:36 PM
Formula/Array question with dates Renee Excel Worksheet Functions 1 November 24th 05 01:52 AM
SUM array formula question Dan Excel Worksheet Functions 6 November 8th 04 05:49 AM


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