LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Sumif and changing array

if it has three sections of 15 lines, what do you want it to use?

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"csimont" wrote in message
...
Bob:
thanks for your response! It works better than what I had tried. One

problem:
How do I specify that the data in column L might have sections made up of
varying row numbers that need to be subtotaled. One worksheet might have
three sections made up of 15 rows, 200 rows, and 27 rows respectively. The
next worksheet might have two sections made up of 500 lines and 3 lines
respectively. The sumif formula works except for the designation for the
second range:

=SUMIF($A:$A,$J1,L:L) The L:L picks up all the data in column L despite

the
breaks in the worksheet.

"csimont" wrote:

I would love some help!!!!
I am trying to write a macro that would sumif data in column 12 based on
criteria in column 1 but with a different number of rows in different
worksheets. Within each worksheet, the data in column 1 would be grouped
(i.e. by fiscal year) and the macro for the sumif would subtotal each

group.

Year Clients
FY2007 5
FY2006 15
FY2005 25
FY2007 12
FY2006 28
FY2005 7

Macro would give back:
FY2007 17
FY2006 43
FY2005 32

The next worksheet would have a the same data but more or less rows to
calculate.
This is what I have so far:
ActiveCell.FormulaR1C1 =
"=SUMIF(R8C1:OFFSET(R3793C1,0,0),RC10,R8C:OFFSET(R 3793C,0,0))"

Thanks!



 
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
Macros for sumif and changing range csimont Excel Discussion (Misc queries) 2 January 27th 06 08:30 PM
SUMIF Question CLR Excel Discussion (Misc queries) 13 September 20th 05 01:08 AM


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