Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
Solved

# Finding accumulated sum in grid

Posted on 2013-06-10
Medium Priority
357 Views
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
Question by:Mamarazzi
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points

LVL 50

Accepted Solution

barry houdini earned 2000 total points
ID: 39234690
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

ID: 39235023
That works just fine! Thanks a lot, Mr Houdini :-)
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
This article describes a serious pitfall that can happen when deleting shapes using VBA.