Solved

Finding accumulated sum in grid

Posted on 2013-06-10
2
301 Views
Last Modified: 2013-06-10
I have a grid with key values in left column and top row and I want to accumulate the values in the grid dynamically.

See attached file!

I want the formula to find the right row using values in Col B and then give me the sum of all values on that row beginning with Col C and ending in a column  using values in row 2.

I was thinking sum combined with vlookup but I didn't get that to work. I am using excel 2003 now.
grid-example.xls
0
Comment
Question by:Mamarazzi
2 Comments
 
LVL 50

Accepted Solution

by:
barry houdini earned 500 total points
Comment Utility
Say you have input values in J2 and K2, for the column B and row 2 values respectively then you can use this formula

=SUM(OFFSET(INDEX(C$3:F$7,MATCH(J2,B$3:B$7,0),0),0,0,1,MATCH(K2,C$2:F$2,0)))

see attached

regards, barry
grid-example-barry.xls
0
 

Author Comment

by:Mamarazzi
Comment Utility
That works just fine! Thanks a lot, Mr Houdini :-)
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now