Suming two Columns from Different Tables - With Same Column Name

Mavericks334

Active Member
Joined
Jan 26, 2011
Messages
280
Hi,

I have Different Tables, 1. Voluntary Attrition. 2 InVoluntary Attrition. 3 Business Units

Each had dept ID' Column, Month Column. Below table is one for Voluntary Attrition.

[TABLE="width: 242"]
<COLGROUP><COL style="WIDTH: 50pt; mso-width-source: userset; mso-width-alt: 2450" width=67><COL style="WIDTH: 48pt" span=4 width=64><TBODY>[TR]
[TD="class: xl65, width: 67"]Dept Id[/TD]
[TD="class: xl66, width: 64"]Oct'09[/TD]
[TD="class: xl66, width: 64"]Nov'09[/TD]
[TD="class: xl66, width: 64"]Dec'09[/TD]
[TD="class: xl66, width: 64"]Jan'10[/TD]
[/TR]
[TR]
[TD="class: xl67"]3310ED[/TD]
[TD="class: xl69, align: right"]1[/TD]
[TD="class: xl69"] [/TD]
[TD="class: xl69, align: right"]1[/TD]
[TD="class: xl69"] [/TD]
[/TR]
[TR]
[TD="class: xl68, bgcolor: transparent"]3310FL[/TD]
[TD="class: xl69, bgcolor: transparent"] [/TD]
[TD="class: xl69, bgcolor: transparent"] [/TD]
[TD="class: xl69, bgcolor: transparent"] [/TD]
[TD="class: xl69, bgcolor: transparent, align: right"]1[/TD]
[/TR]
[TR]
[TD="class: xl67"]3310HD[/TD]
[TD="class: xl69"] [/TD]
[TD="class: xl69"] [/TD]
[TD="class: xl69"] [/TD]
[TD="class: xl69"] [/TD]
[/TR]
[TR]
[TD="class: xl68, bgcolor: transparent"]3310PZ[/TD]
[TD="class: xl69, bgcolor: transparent"] [/TD]
[TD="class: xl69, bgcolor: transparent"] [/TD]
[TD="class: xl69, bgcolor: transparent"] [/TD]
[TD="class: xl69, bgcolor: transparent"] [/TD]
[/TR]
</TBODY>[/TABLE]


Similar table for involuntary attrition. I need to combine the both the Tables and get a consolidated number according to the month and Dept Id.

Regards,
Renato.
 
I tried that, it does not work, because it is two different sets of data and i am unable to create a relationship to sum both the tables us because over a period of time the dept ids repeat. The Volunatary termination table and involunatary termination table need to be added together 1st, i get an error when i try to create a relationship between them because i nee to sum the numbers of a particular month together to get the overall attrition.
 
Upvote 0

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
i have tried that option as well. I have linked both my tables to my Function table and still i am unable to add both these columns

Main Table { Dept Id, Dept Name, Function}, Voluntary Table { Dept Id, Month, Attrition}, In Vol Table { Dept Id, Month, Attrition}

The relationship is between the dept id in the main table since it is unique. In the Voluntary Table and invol table the dept id's have attrition values for each month below is the details of both the tables.
Vol Table[TABLE="width: 152"]
<COLGROUP><COL style="WIDTH: 48pt" width=64><COL style="WIDTH: 56pt; mso-width-source: userset; mso-width-alt: 2742" width=75><COL style="WIDTH: 48pt" width=64><TBODY>[TR]
[TD="class: xl63, width: 64, bgcolor: #4f81bd"]Dept Id[/TD]
[TD="class: xl63, width: 75, bgcolor: #4f81bd"]Headcount[/TD]
[TD="class: xl63, width: 64, bgcolor: #4f81bd"]Attrition[/TD]
[/TR]
[TR]
[TD="class: xl64, bgcolor: #dce6f1"]3310ED[/TD]
[TD="class: xl66, bgcolor: #dce6f1"]10/1/2011[/TD]
[TD="class: xl64, bgcolor: #dce6f1, align: right"]1[/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: transparent"]3310FL[/TD]
[TD="class: xl67, bgcolor: transparent"]10/1/2011[/TD]
[TD="class: xl65, bgcolor: transparent, align: right"]2[/TD]
[/TR]
[TR]
[TD="class: xl64, bgcolor: #dce6f1"]3310HD[/TD]
[TD="class: xl66, bgcolor: #dce6f1"]10/1/2011[/TD]
[TD="class: xl64, bgcolor: #dce6f1, align: right"]0[/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: transparent"]3310PZ[/TD]
[TD="class: xl67, bgcolor: transparent"]10/1/2011[/TD]
[TD="class: xl65, bgcolor: transparent, align: right"]0[/TD]
[/TR]
[TR]
[TD="class: xl64, bgcolor: #dce6f1"]3310RC[/TD]
[TD="class: xl66, bgcolor: #dce6f1"]10/1/2011[/TD]
[TD="class: xl64, bgcolor: #dce6f1, align: right"]0[/TD]
[/TR]
</TBODY>[/TABLE]
Invol Table[TABLE="width: 152"]
<COLGROUP><COL style="WIDTH: 48pt" width=64><COL style="WIDTH: 56pt; mso-width-source: userset; mso-width-alt: 2742" width=75><COL style="WIDTH: 48pt" width=64><TBODY>[TR]
[TD="class: xl65, width: 64, bgcolor: #4f81bd"]Dept Id[/TD]
[TD="class: xl65, width: 75, bgcolor: #4f81bd"]Headcount[/TD]
[TD="class: xl65, width: 64, bgcolor: #4f81bd"]Attrition[/TD]
[/TR]
[TR]
[TD="class: xl66, bgcolor: #dce6f1"]3310ED[/TD]
[TD="class: xl68, bgcolor: #dce6f1"]10/1/2011[/TD]
[TD="class: xl66, bgcolor: #dce6f1, align: right"]0[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: transparent"]3310FL[/TD]
[TD="class: xl69, bgcolor: transparent"]10/1/2011[/TD]
[TD="class: xl67, bgcolor: transparent, align: right"]0[/TD]
[/TR]
[TR]
[TD="class: xl66, bgcolor: #dce6f1"]3310HD[/TD]
[TD="class: xl68, bgcolor: #dce6f1"]10/1/2011[/TD]
[TD="class: xl66, bgcolor: #dce6f1, align: right"]1[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: transparent"]3310PZ[/TD]
[TD="class: xl69, bgcolor: transparent"]10/1/2011[/TD]
[TD="class: xl67, bgcolor: transparent, align: right"]0[/TD]
[/TR]
[TR]
[TD="class: xl66, bgcolor: #dce6f1"]3310RC[/TD]
[TD="class: xl68, bgcolor: #dce6f1"]10/1/2011[/TD]
[TD="class: xl66, bgcolor: #dce6f1, align: right"]1[/TD]
[/TR]
</TBODY>[/TABLE]

These both need to be added to get[TABLE="width: 152"]
<COLGROUP><COL style="WIDTH: 48pt" width=64><COL style="WIDTH: 56pt; mso-width-source: userset; mso-width-alt: 2742" width=75><COL style="WIDTH: 48pt" width=64><TBODY>[TR]
[TD="class: xl65, width: 64, bgcolor: #4f81bd"]Dept Id[/TD]
[TD="class: xl65, width: 75, bgcolor: #4f81bd"]Headcount[/TD]
[TD="class: xl65, width: 64, bgcolor: #4f81bd"]Attrition[/TD]
[/TR]
[TR]
[TD="class: xl66, bgcolor: #dce6f1"]3310ED[/TD]
[TD="class: xl68, bgcolor: #dce6f1"]10/1/2011[/TD]
[TD="class: xl66, bgcolor: #dce6f1, align: right"]1[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: transparent"]3310FL[/TD]
[TD="class: xl69, bgcolor: transparent"]10/1/2011[/TD]
[TD="class: xl67, bgcolor: transparent, align: right"]2[/TD]
[/TR]
[TR]
[TD="class: xl66, bgcolor: #dce6f1"]3310HD[/TD]
[TD="class: xl68, bgcolor: #dce6f1"]10/1/2011[/TD]
[TD="class: xl66, bgcolor: #dce6f1, align: right"]1[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: transparent"]3310PZ[/TD]
[TD="class: xl69, bgcolor: transparent"]10/1/2011[/TD]
[TD="class: xl67, bgcolor: transparent, align: right"]0[/TD]
[/TR]
[TR]
[TD="class: xl66, bgcolor: #dce6f1"]3310RC[/TD]
[TD="class: xl68, bgcolor: #dce6f1"]10/1/2011[/TD]
[TD="class: xl66, bgcolor: #dce6f1, align: right"]1[/TD]
[/TR]
</TBODY>[/TABLE]

Then would divide it by the total headcount, i am unable to add these two columns to get that info. Do let me know incase you need more info
 
Upvote 0
You could certainly create a calculated column, but why not just create a measure to calculate total attrition?
 
Upvote 0
That is what i have been trying to do, and have failed. The overall attrition is the one where i am facing the proble, because i need to combine both vol and invol attrition. I am looking for answer for the same. so i could start calculating the moving averages based on this
 
Upvote 0
=IF(HASONEFILTER(BU[Dept Id]),CALCULATE(VALUES(TERM[Month]),BU)&CALCULATE(VALUES(XOFT[Month]),BU))

Above is the measure i tried did not work out properly for me.
 
Upvote 0
Are you trying to return a month name? What are the TERM and XOFT and BU tables?

Main Table { Dept Id, Dept Name, Function}, Voluntary Table { Dept Id, Month, Attrition}, In Vol Table { Dept Id, Month, Attrition}

[Total attrition] :=
SUM(Vol[Attrition]) + SUM(Invol[Attrition])

Depending on how you what the date span should be, you might need to use to Time Intelligence functions to get the right one.
 
Upvote 0
the Date is either the month end of each month. ie 10/31/2012 or 9/30/2012. Term is for terminations xoft is another kind of terminations. Bu is the main table.
 
Upvote 0

Forum statistics

Threads
1,223,931
Messages
6,175,465
Members
452,645
Latest member
Tante

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