Excel Data Consolidation

ialwayscapital

New Member
Joined
Aug 18, 2009
Messages
18
I am working on a salary sheet and stuck on this situation.
Sheet has a to z columns with these headings.

ScTlbSk5B8pcgtJEqy_Dlpy4HQaC2KqTFXr_QAHCwZQ2Sa4BCjyPhSi6aXq_cdUwplUqXfLYyqlcFA=w1920-h925


What i need is, if employee name and employee code repeat several times, then i get sum of his duty, wages, pf, esi, pt, gross salary, advance, uniform, add money, take home, bank cheque, bank cash & cash in hand in ANOTHER WORKSHEET.
For example,
Pooja Yadav, 25 (duty), 9750 (wages), 650 (pf), 300 (esi), 160 (pt), 8640 (gross salary), 4000 (advance), blank (uniform), blank (add money), 4640 (take home), 3820 (bank cheque), blank (cash in hand.
Things written in brackets are just for understanding sake (consider it as column heading)

Please help me out, Thanks :)
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
You mean something like this.


Excel 2013/2016
ABCDEFGHIJKLMN
1Emp NameEmp CodeDutyWagesPFESIPTGross SalaryAdvanceUniformAdd MoneyTake HomeBlank ChequeCash In hand
2PooJa Yadev123452597506503001608650400046403820
3Sunny Deol11225897336332831438633398346233803
4PooJa Yadev123454097656653151758665401546553835
5
6
7WORKKSHEET
8Emp NameEmp CodeDutyWagesPFESIPTGross SalaryAdvanceUniformAdd MoneyTake HomeBlank ChequeCash In hand
9PooJa Yadev123456519515131561533517315801592957655
10Sunny Deol11225897336332831438633398346233803
Sheet3
Cell Formulas
RangeFormula
C9=SUMIF($A2:$A4,$A9,C2:C4)
C10=SUMIF($A3:$A5,$A10,C3:C5)
D9=SUMIF($A2:$A4,$A9,D2:D4)
D10=SUMIF($A3:$A5,$A10,D3:D5)
E9=SUMIF($A2:$A4,$A9,E2:E4)
E10=SUMIF($A3:$A5,$A10,E3:E5)
F9=SUMIF($A2:$A4,$A9,F2:F4)
F10=SUMIF($A3:$A5,$A10,F3:F5)
G9=SUMIF($A2:$A4,$A9,G2:G4)
G10=SUMIF($A3:$A5,$A10,G3:G5)
H9=SUMIF($A2:$A4,$A9,H2:H4)
H10=SUMIF($A3:$A5,$A10,H3:H5)
I9=SUMIF($A2:$A4,$A9,I2:I4)
I10=SUMIF($A3:$A5,$A10,I3:I5)
L9=SUMIF($A2:$A4,$A9,L2:L4)
L10=SUMIF($A3:$A5,$A10,L3:L5)
M9=SUMIF($A2:$A4,$A9,M2:M4)
M10=SUMIF($A3:$A5,$A10,M3:M5)


Muz
 
Upvote 0
Thanks for the quick reply, but few questions rised.
C9=SUMIF($A2:$A4,$A9,C2:C4)

<tbody>
</tbody>

In above formula, value of A9 has to be written manually, how can i pull unique values to another worksheet, Please note that some temporary employees dont have employee code, so i have to pull unique values considering both.
 
Upvote 0
Pivot table is a data summarization tool that is used in the context of data processing. Pivot tables are used to summarize, sort, reorganize, group, count, total or average data stored in a database. It allows its users to transform columns into rows and rows into columns. It allows grouping by any data field.

And I dont think it can copy data as you said @ Ialwayscapital

Thanks Muz
 
Upvote 0
ok guys, somehow i managed to pull unique data from the list, but i am stuck again. I just created a sample file for easy understanding.

uc


if image doesnt load automatically, pls download it from here.

Download this sample EXCEL FILE HERE

Column A to E has data entered manually.

Formula used in H2 is =IFERROR(INDEX($B$2:$B$11,MATCH(0,COUNTIF($H$1:H1,$B$2:$B$11),0)),"") This one is array formula which must be entered by pressing Ctrl+Shift+Enter

So now, coloumn H has unique values from list B2:B11

What I need now,

In Column I, I2 must show area where highest duties performed. Like suresh did 10 duties in Guj & 15 duties in MH, then I2 must be MH

Column J should show the total number of duties done by that person, so I used formula in J2 =SUMIF(B2:B11,$H2,E2:E11)

Column K, should show data in the format shown in image, i.e. Unit-post-duties then enter charachter &CHAR(10)& or comma would do the job. THIS ONE IS TRICKY, I have no idea how to achieve this.

I am on Office 2019 Pro Plus Version 1909 (Build 12001.20000 Click-to-Run), I cant afford Office 365 (So no dynamic array and no unique function)

Thanks for all the support.
 
Upvote 0
will this work.

Excel 2013/2016
ABCDEFGHIJKL
1AreaNameUnitPostDutyText JoinNameAreaTotal DutiesDescription (Unit-Post-Duties)Description (Unit-Post-Duties)
2GujSureshTataSS10Tata SS 10, SureshMH25 Tata SS 10, Ambani SS 15, Tata SS 10
Ambani SS 10
3GujRameshTataSG25Tata SG 25, RameshGuj25 Tata SG 25, Tata SG 25
4MPPareshBirlaSS24Birla SS 24, PareshMP30 Birla SS 24, Infy SG 6, Birla SS 24
Infy SG 6
5MPRahulBirlaSO15Birla SO 15, RahulMP30 Birla SO 15, Infy SO 10, XYZ SG 5, Birla SO 15
Infy SO 10
XYZ SG 5
6MHVijayAmbaniSG11Ambani SG 11, VijayUP30 Ambani SG 11, XYZ SG 19, Ambani SG 11
XYZ SG 19

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
F2=C2&" "&D2&" "&E2&", "

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>



Please insert this code in your file.

Code:
Function MYVLOOKUP(pValue As String, pWorkRng As Range, pIndex As Long)
Dim rng As Range
Dim xResult As String
xResult = ""
For Each rng In pWorkRng
    If rng = pValue Then
        xResult = xResult & " " & rng.Offset(0, pIndex - 1)
    End If
Next
MYVLOOKUP = xResult
End Function
 
Last edited:
Upvote 0
will this work.

Excel 2013/2016
ABCDEFGHIJKL
1AreaNameUnitPostDutyText JoinNameAreaTotal DutiesDescription (Unit-Post-Duties)Description (Unit-Post-Duties)

<tbody>
</tbody>

[/Code]

In K2:K11 Formula is =MYVLOOKUP(H2,$B$2:$B$11,5)
 
Upvote 0

Forum statistics

Threads
1,213,531
Messages
6,114,172
Members
448,554
Latest member
Gleisner2

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