LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22
Default Summing data based on certain cells

I have a spreadsheet that has data for each month. At the bottom of each
month is a summary of the data in four categories. What I need to do is for
the data to be summed automatically, based on the four categories when I
insert it for month X. I am currently using

=SUMIF(INDEX($H:$H,N93):INDEX($H:$H,O93),N94,INDEX ($M:$M,N93):INDEX($M:$M,O93))+SUMIF(INDEX($H:$H,N9 3):INDEX($H:$H,O93),N94,INDEX($N:$N,N93):INDEX($N: $N,O93))

Whe
Column H is where the category definition is for each line item
N93 is the cell that tells the formula what the starting row is
O93 is the cell that tells the formula what the ending row is
N94 is the Category that is being summed in column H
Column M and N is where the numbers are that are being summed.

I have since migrated to Excel 2007 so the SUMIFS command is available now.
My question is - is there a more elegant way of doing this? Also, I currently
have to physically input the row number into N93 and O93. The problem is that
if I insert data into a prior month, it obviously changes all the start and
end rows for the months below and I have to fix them manually. Is there a way
to fix the start and end rows absolutely so that if I do insert data in a
prior month the reference in N93 and O93 will automatically update?
 
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
Summing cells within a column based on cell fill color Jim D. New Users to Excel 2 October 8th 08 04:56 PM
Summing data based on criteria Wendy Excel Discussion (Misc queries) 2 August 1st 06 04:07 PM
Conditionally summing cells based on conditions in other rows Bert Excel Worksheet Functions 3 June 20th 06 11:06 AM
Summing Up Data Based on Codes addie Excel Worksheet Functions 2 February 17th 06 11:09 PM
Summing Data based on Its Category sip8316 Excel Discussion (Misc queries) 2 May 24th 05 07:30 PM


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