Lookup codes and names and add costs

HMN93

New Member
Joined
May 31, 2014
Messages
20
Hi everyone,

I would appreciate it if someone can help me with this.
I have a workbook of 13 sheets. All 13 sheets contain the same information:Activity-Employee Code-Employee Name-Code1-Cost1-Code2-Cost2.
I'll show a small example to illustrate my case:
I have a table containing all Employees' Name and code
Employee NameEmployee Code
Mark900
Joe901
Sally902
Sam903
Jesse904
Ally905
D.O800
Liam801
Al802

<tbody>
</tbody>

This Table is in Sheet1 of the same workbook.

Now Sheet2 Contains the following:
ActivityEmployee CodeEmployee NameCode1Cost1Code2Codet2
AMark9001020$ 101020$ 15
A-105Joe9011010$ 201010$ 18
A-S05Al8021020$ 151010$ 20
B-106D.O8001040$ 181020$ 15
B-S06Jesse941020$ 201040$ 20

<tbody>
</tbody>

What I need to happen in this sheet is to extract all codes with the corresponding Employee Name and cost.
Let's Take for example Code 1020:
I need to have the following:
Employee NameCost1
Mark$ 10
Al$ 15
Jesse$ 20

<tbody>
</tbody>

Employee NameCost2
Mark$ 15
D.O$ 15

<tbody>
</tbody>

And then Having the Total Summary Table for both Cost (Cost1+Cost2)
Employee NameTotal Cost
Mark$ 25
Al$ 15
Jesse$ 20
D.O$ 15

<tbody>
</tbody>

By this the data for Sheet2 will be done.

Now if I jump to Sheet3 and do the same procedure, I'll end up with this total summary table :
Employee NameTotal Cost
Sally$ 35
Sam$ 10
Mark$ 17
Jesse$ 20

<tbody>
</tbody>


Now the final table that I need to reach is a table that sum all costs for same employee across multiple sheets for a specific Code.
The Final Table of the example shown above would be like this:
Code1020
Employee NameCost
Mark$ 42
Sally$ 35
Sam$ 10
Jesse$ 40
D.O$ 15
Al$ 20

<tbody>
</tbody>

I need to do this using formula and not filter. I would appreciate it someone can help with this!
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
are you not allowed to use pivot tables
 
Upvote 0
No i am not allowed to. I solved one part of this by using index but after that I didn't know how to proceed.
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,692
Members
448,979
Latest member
DET4492

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