Lookup and sum multiple variables based on a pre-defined equation

JT90000

New Member
Joined
Apr 2, 2015
Messages
1
All,

I have a slightly frustrating problem to solve in Excel.

Firstly, I have a database of quarterly data with hundreds of variables. I need to combine these variables based on some pre-defined relationships. For example, my database looks like this:

[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]Q1 2014[/TD]
[TD]Q2 2014[/TD]
[TD]Q3 2014[/TD]
[TD]Q4 2014[/TD]
[/TR]
[TR]
[TD]AAAA[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AAAB[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AAAC[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AAAD[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


I then have some equations, such as:


BBBB = AAAA - AAAB (note that sometimes we need to minus a variable)
CCCC = AAAD + AAAE + AAAD + AAAF

And it needs to be output into a table like this.
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]Q1 2014[/TD]
[TD]Q2 2014[/TD]
[TD]Q3 2014[/TD]
[TD]Q4 2014[/TD]
[/TR]
[TR]
[TD]BBBB[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]CCCC[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

There can be upto 15 variables going into one equation. I was wondering what the best way of doing this is given that:

a) The equations need to be changeable (even though they are unlikely to change, we sometimes have calssification changes), and
b) The formulae to merge the variables needs to be relatively transparent. At the moment, we have a vlookup formula that is about 20 lines long, and is extremely difficult to fix if anything breaks.

For info, there are about 500 'input' variables and about 70' output variables.

Thanks very much in advance.
 
Hi JT,

Can you post some sample data here with your expected output, manually entered ?


Regards,
DILIPandey
 
Upvote 0

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top