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: 79
Default Complex SUM *** Variant of previous post

I just posted some hours ago a similar problem and I got satisfactory
answers.
That's why I am encouraged to ask a new question that is closer to my
actual problem.

Here it goes.

In a range I have a list of expenses per department:

Allocation table 1 2
Dpt Expense1 Expense 2
a 1 3
b 2 4
c 3 5
a 4 1
c 5 7

Say that Allocation tables are in B1:C1.
Say that expenses are in A3:C7 (excluding headers)

As you can see, one department can have multiple expenses
An allocation table is a table that describes how the expenses of the
departments are allocated
to the end users, which are in turn the departments themselves.

In another range, I have the tables accordint to which expenses are
allocated:

1 a b
a 0.3 0.7
b 0.1 0.9
c 1 0

Say it is in A21:C23, excluding headers


2 a b
a 0.6 0.4
b 0.25 0.75
c 0.5 0.5

Say it is in A31:C33, excluding headers


Now, suppose that I want the total expense after allocation for each
Dept in each expense (A9='a', A10='b')?
The formulas I need should be in B9:C10

For B9 (dept='a', expense1) the result should be:
1*0.3+2*0.1+3*1+4*0.3+5*1 = 9.7
For C10 (dept='a', expense2) the result should be:
3*0.6+4*0.25+5*0.5+1*0.6+7*0.5 = 9.4

Of course, my model is a lot bigger and more complex. I expect to
input a formula in B9 and copy it down and right to C10. I would not
like to use auxiliary cells for intermedite results.

Any help is highly appreciated.
 
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
previous post Increment a filename. katagrga Excel Discussion (Misc queries) 0 July 23rd 09 03:46 PM
Expanding on a previous post Chad Excel Discussion (Misc queries) 1 January 31st 09 05:35 PM
VBA Link - Previous post unclear robert morris Excel Discussion (Misc queries) 9 May 1st 08 09:57 PM
Correction to previous post Dave Thomas Excel Worksheet Functions 0 July 16th 07 08:14 PM
Finding My previous post rustygun3 Excel Discussion (Misc queries) 1 June 7th 07 09:25 AM


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