Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Excel formula question

I have a datadump into Excel once a month and the number of rows changes
every month. In the datadump are a number of columns. What I am trying to do
is to sum the data in column I based on criteria in column C, which is easy
enough to do using SUMIFS, however what I would like to do is to be able to
set the start row and end row manually. Ie the user dumps the data into
Excel, looks for the row number where the data starts, and the same for
where it ends and then input these two number into a block that the SUMIFS
function would pick up.

So for instance, the data data starts in row 2 and ends in row 48 so the
arrays in the SUMIFS function would be C2:C48 and I2:I48. I would then input
into the Start cell "2" and the End cell "48". What function would I use and
what is the syntax?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default Excel formula question

There are several function you can use, OFFSET, INDIRECT but the best one to
use
would be INDEX because it is not volatile

=SUMIF(INDEX(C:C,F1):INDEX(C:C,F2),"abc",I:I)

where F1 is start row and F2 end row



--


Regards,


Peo Sjoblom


"Murray" wrote in message
...
I have a datadump into Excel once a month and the number of rows changes
every month. In the datadump are a number of columns. What I am trying to
do is to sum the data in column I based on criteria in column C, which is
easy enough to do using SUMIFS, however what I would like to do is to be
able to set the start row and end row manually. Ie the user dumps the data
into Excel, looks for the row number where the data starts, and the same
for where it ends and then input these two number into a block that the
SUMIFS function would pick up.

So for instance, the data data starts in row 2 and ends in row 48 so the
arrays in the SUMIFS function would be C2:C48 and I2:I48. I would then
input into the Start cell "2" and the End cell "48". What function would I
use and what is the syntax?



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 772
Default Excel formula question

Look into the Indirect function, it allows you to put addresses in a cell
that a formula will use, for example if you put C2 in cell A1 and C90 in cell
A2 and this formula in another cell
=SUM(INDIRECT(A1):INDIRECT(A2))
it will sum C2:C90

If you point all of your formulas at A1 and A2 then all you will need to
change is the start cell and end cell.
Hope that makes more sense than it sounds.
--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"Murray" wrote:

I have a datadump into Excel once a month and the number of rows changes
every month. In the datadump are a number of columns. What I am trying to do
is to sum the data in column I based on criteria in column C, which is easy
enough to do using SUMIFS, however what I would like to do is to be able to
set the start row and end row manually. Ie the user dumps the data into
Excel, looks for the row number where the data starts, and the same for
where it ends and then input these two number into a block that the SUMIFS
function would pick up.

So for instance, the data data starts in row 2 and ends in row 48 so the
arrays in the SUMIFS function would be C2:C48 and I2:I48. I would then input
into the Start cell "2" and the End cell "48". What function would I use and
what is the syntax?

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
Formula Question for Excel Formula applied to whole spreadsheet? Excel Discussion (Misc queries) 2 September 19th 07 03:42 PM
Excel Formula Question Sum Limit and marking Excel Worksheet Functions 2 June 26th 06 08:55 PM
Excel formula Question Lucas Excel Discussion (Misc queries) 3 June 6th 06 08:43 PM
Excel formula question bb Excel Discussion (Misc queries) 3 April 20th 06 03:11 AM
Excel formula help/question Jodi Excel Discussion (Misc queries) 5 June 15th 05 03:54 AM


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