pull data from separate tabs to "dashboard" tab, removing duplicates and counting % of cells poplualted, etc

kenton71

New Member
Joined
Jun 15, 2015
Messages
36
I have a spreadsheet with six tabs (one for each team member) and one additional tab to be used as a dashboard. I'm trying to pull data from each tab and have it populate the dashboard tab.

Each team member has the same layout on their tab and uses the same status names. So, Column E has a unique project number (which may or may not be repeated several times on their tab, depending upon the size of the project), columns C and I are always the same for Column E (showing due date and project name). Columns F, G, and H will have unique data on every line as they relate to the individual items on each project. F, G, and H will either have information or not. And we just need to capture how many times for the project a cell in those columns is populated.

What I want to end up with on a new tab:
Status from column A ("not started", "in progress", "complete", "on hold", or "cancelled" -- each team member uses the exact same words), Project Due Date (column C), Project # (column E), Project Name (column I), Team Member Name (from column B), % of cells in column F for that project with an entry, % of cells in column G for that project with an entry, % of cells in column H for that project with an entry. I think the trickiest thing is that some projects only have one line on the spreadsheets and some have more than 70.


Example of how the end product should look:
In Progress 2/1/2019 ABC123 Project Lion Carla 50% 75% 10%
On Hold 3/5/2020 BDG425 Project Tiger Bill 46% 58% 100%
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
If possible, post your spreadsheet with any personally identifiable information removed/changed or at least one worksheet that represents one team member. I don't mind writing code I just hate trying to recreate data!! :)
 
Upvote 0
dashboard: should show leader, project #, status, launch date, days to launch, phase complete %, SAP %, and shipped %

#SAP %Shipped %
Carla's tab:

StatusLeaderLaunch Date# of days from launchProject NumberPhase CompleteSAP #Ship Date
completeCarla4/10/17307INV012345yes15552202/05/17
completeCarla4/10/17307INV012345yes15307502/05/17
completeCarla9/11/2017153INV012346yes1543266/13/2017
on holdCarla4/16/18-64INV009876yesnot in system
on holdCarla4/16/18-64INV009876yesnot in system
in progressCarla8/27/18-197INV022222nonot in system
in progressCarla8/27/18-197INV022222yesnot in system
in progressCarla8/27/18-197INV022222nonot in system
in progressCarla1/14/2019-337INV033333nonot in system
in progressCarla1/14/2019-337INV033333nonot in system
in progressCarla1/14/2019-337INV033333no
not in system

<tbody>
</tbody><colgroup><col><col><col><col span="2"><col><col><col></colgroup>
Bill's tab:
StatusLeaderLaunch Date# of days from launchProject NumberPhase CompleteSAP #Ship Date
completeBill1/8/1834RBS036545yes1545501/25/2018
completeBill1/8/1833RBS036562yes1547678/4/2017
completeBill2/5/186RBS066094Yes1144332/7/2018
completeBill2/5/186RBS066094Yes1232932/2/2018
completeBill2/5/186RBS066094Yes1144326/2/2017
completeBill2/5/186RBS066094Yes1433802/7/2018
in progressBill5/21/2018-99INV077777YesN/AN/A
in progressBill8/31/2018-201INV088888YesN/AN/A
completeBill9/24/2018-225RBS054251Yes15466310/26/2017
completeBill9/24/2018-225RBS054251Yes15466110/26/2017
completeBill9/24/2018-225RBS054251Yes15467411/9/2017
in progressBill9/24/2018-225RBS065683

<tbody>
</tbody><colgroup><col><col><col><col span="2"><col><col><col></colgroup>
Kirby's tab:
StatusLeaderLaunch Date# of days from launchProject NumberPhase CompleteSAP #Ship Date
on holdKirby6/5/2017251 yesnot in system
on holdKirby6/5/2017251 yesnot in system
on holdKirby8/14/2017181POR053710yesnot in system
on holdKirby8/14/2017181POR053710yesnot in system
on holdKirby8/14/2017181POR053710yesnot in system
on holdKirby8/14/2017181POR053710yesnot in system
on holdKirby8/14/2017181POR053710yesnot in system
on holdKirby8/14/2017181POR053710yesnot in system
on holdKirby8/14/2017181POR053710yes154561
on holdKirby8/14/2017181POR053710yesnot in system1/23/2018
on holdKirby8/14/2017181POR053710yesnot in system
on holdKirby8/14/2017181POR053710yesnot in system
on holdKirby8/14/2017181POR053710yesnot in system
on holdKirby8/14/2017181POR053710yesnot in system
on holdKirby8/14/2017181POR053710yesnot in system
on holdKirby8/14/2017181POR053710yesnot in system
on holdKirby8/14/2017181POR053710yesnot in system
on holdKirby8/14/2017181POR053710yesnot in system
on holdKirby8/14/2017181POR053710yesnot in system
on holdKirby8/14/2017181POR053710yesnot in system
on holdKirby8/14/2017181POR053710yesnot in system
on holdKirby8/14/2017181POR053710yesnot in system
on holdKirby8/14/2017181POR053710yesnot in system
on holdKirby8/14/2017181POR053710yesnot in system
on holdKirby8/14/2017181POR053710yes154562
on holdKirby8/14/2017181POR053710yesnot in system
on holdKirby8/14/2017181POR053710yesnot in system
on holdKirby8/14/2017181POR053710yesnot in system
on holdKirby8/14/2017181POR053710yesnot in system
on holdKirby8/14/2017181POR053710yesnot in system
on holdKirby8/14/2017181POR053710yesnot in system
on holdKirby8/14/2017181POR053710yesnot in system
on holdKirby8/14/2017181POR053710yesnot in system
on holdKirby8/14/2017181POR053710yes152154
on holdKirby8/14/2017181POR053710yes152156
on holdKirby8/14/2017181POR053710yesnot in system
on holdKirby8/14/2017181POR053710yesnot in system
on holdKirby8/14/2017181POR053710yesnot in system
on holdKirby8/14/2017181POR053710yesnot in system
on holdKirby8/14/2017181POR053710yesnot in system
on holdKirby8/14/2017181POR053710yes1545601/23/2018
on holdKirby8/14/2017181POR053710yesnot in system
on holdKirby8/14/2017181POR053710yesnot in system
on holdKirby8/14/2017181POR053710yesnot in system
on holdKirby8/14/2017181POR053710yesnot in system
completeKirby1/29/201813FER034393N/An/a
completeKirby1/29/201813FER034393N/An/a
completeKirby1/29/201813FER034393N/An/a
completeKirby1/29/201813FER034393N/An/a
completeKirby1/29/201813FER034393N/An/a
completeKirby1/29/201813FER034393N/An/a
completeKirby1/29/201813FER034393N/An/a
completeKirby2/19/2018-8BEN035335yes1550331/30/2018
completeKirby2/19/2018-8BEN035335yes1550351/30/2018
completeKirby2/19/2018-8BEN035335yes1550371/30/2018
completeKirby2/19/2018-8BEN062348yes1554611/30/2018
completeKirby2/19/2018-8BEN062348yes15544811/20/2017
completeKirby2/26/2018-15BEN057582yes1549121/23/2018
completeKirby2/26/2018-15BEN057582yes1555191/24/2018
completeKirby2/26/2018-15BEN057582yes1534121/30/2018
completeKirby2/26/2018-15BEN057582yes1534021/24/2018
completeKirby2/26/2018-15 yesnot in system2/1/2018
completeKirby2/26/2018-15BEN057582yes1534141/22/2018
completeKirby2/26/2018-15BEN057582yes1552161/24/2018
completeKirby2/26/2018-15BEN057582yes1553931/23/2018
completeKirby4/2/2018-50ROV070439n/an/a
completeKirby4/2/2018-50ROV070439n/an/a
completeKirby4/2/2018-50ROV070439yesn/a
completeKirby4/2/2018-50ROV070439n/an/a
completeKirby4/2/2018-50ROV070439n/an/a
completeKirby4/2/2018-50ROV070439n/an/a
completeKirby4/2/2018-50ROV070439n/an/a
completeKirby4/2/2018-50ROV070439n/an/a
in progressKirby4/2/2018-50ROV070439yes155361
in progressKirby4/2/2018-50 yesnot in system
in progressKirby4/2/2018-50 yesnot in system
not startedKirby6/25/2018-134TES034424
not startedKirby6/25/2018-134TES034424
not startedKirby6/25/2018-134TES034424
not startedKirby6/25/2018-134TES034424
not startedKirby6/25/2018-134TES034424
in progressKirby7/15/2018-154 yesnot in system
not startedKirby7/23/2018-162TES034424
not startedKirby7/23/2018-162TES034424
not startedKirby7/23/2018-162TES034424
on holdKirby8/6/2018-176TOY060303yesnot in system
on holdKirby8/6/2018-176TOY060303yesnot in system
on holdKirby8/6/2018-176TOY060303yesnot in system
on holdKirby8/6/2018-176TOY060303yesnot in system
on holdKirby8/6/2018-176TOY060303yesnot in system
on holdKirby8/6/2018-176TOY060303yesnot in system
on holdKirby8/6/2018-176TOY060303yesnot in system
on holdKirby8/6/2018-176TOY060303yesnot in system
on holdKirby8/6/2018-176TOY060303yesnot in system
on holdKirby8/6/2018-176TOY060303yesnot in system
on holdKirby8/6/2018-176TOY060303yesnot in system
on holdKirby8/6/2018-176TOY060303yesnot in system
on holdKirby8/6/2018-176TOY060303yesnot in system
on holdKirby8/6/2018-176TOY060303yesnot in system
on holdKirby8/6/2018-176TOY060303yesnot in system
on holdKirby8/6/2018-176TOY060303yesnot in system
on holdKirby8/6/2018-176TOY060303yesnot in system
on holdKirby8/6/2018-176TOY060303yesnot in system
on holdKirby8/6/2018-176TOY060303yesnot in system
on holdKirby8/6/2018-176TOY060303yesnot in system
on holdKirby8/6/2018-176TOY060303yesnot in system
on holdKirby8/6/2018-176TOY060303yesnot in system
on holdKirby8/6/2018-176TOY060303yesnot in system
on holdKirby8/6/2018-176TOY060303yesnot in system
on holdKirby8/6/2018-176TOY060303yesnot in system
on holdKirby8/6/2018-176TOY060303yesnot in system
on holdKirby8/6/2018-176TOY060303yesnot in system
on holdKirby8/6/2018-176TOY060303yesnot in system
on holdKirby8/6/2018-176TOY060303yesnot in system
on holdKirby8/6/2018-176TOY060303yesnot in system
on holdKirby8/6/2018-176TOY060303yesnot in system
on holdKirby8/6/2018-176TOY060303yesnot in system
on holdKirby8/6/2018-176TOY060303yesnot in system
on holdKirby8/6/2018-176TOY060303yesnot in system
on holdKirby8/6/2018-176TOY060303yesnot in system
on holdKirby8/6/2018-176TOY060303yesnot in system
on holdKirby8/6/2018-176TOY060303yesnot in system
on holdKirby8/6/2018-176TOY060303yesnot in system
on holdKirby8/6/2018-176TOY060303yesnot in system
on holdKirby8/6/2018-176TOY060303yesnot in system
on holdKirby8/6/2018-176TOY060303yesnot in system
on holdKirby8/6/2018-176TOY060303yesnot in system
on holdKirby8/6/2018-176TOY060303yesnot in system
on holdKirby8/6/2018-176TOY060303yesnot in system
on holdKirby8/6/2018-176TOY060303yesnot in system
on holdKirby10/1/2018-232HON053688
not startedKirby10/8/2018-239LEX071423
completeKirby12/25/18-317LEX071423yesnot in system1/23/2018
completeKirby12/25/18-317LEX071423yes1466961/31/2018
completeKirby12/25/18-317LEX071423yes1466951/31/2018
completeKirby12/25/18-317LEX071423yes1466981/31/2018
completeKirby12/25/18-317LEX071423yes1467011/31/2018
completeKirby12/25/18-317LEX071423yes1467001/24/2018
not startedKirby1/18/2019-341LEX071113
in progressKirby2/11/2019-365LEX070432
in progressKirby2/11/2019-365LEX070432
in progressKirby2/11/2019-365LEX070432
in progressKirby2/11/2019-365LEX070432
in progressKirby2/11/2019-365LEX070432
not startedKirby4/2/2019-415BMW058837
not startedKirby6/3/2019-477BMW075098
not startedKirby6/3/2019-477BMW075098
not startedKirby9/6/2019-572BMW077827
cancelledKirbycancelled#VALUE! yesnot in system

<tbody>
</tbody><colgroup><col><col><col span="2"><col><col><col><col></colgroup>

<tbody>
</tbody><colgroup><col><col span="3"><col span="2"><col><col></colgroup>
 
Upvote 0
Kenton when I tried to Copy and Paste for “Carla” it put everything into one cell. Can you try to post your data again then check to ensure it will Copy and Paste in an acceptable manner?

Thanks. Frank_al
 
Upvote 0
It would also help to have a "number of SKUs" column on the dashboard. That would just count the number of rows that use the same project number.
 
Upvote 0
for percentages:
Phase complete = "yes", then count. If anything else, don't count.
SAP = if number, count. If text, don't count.
Ship Date = if date, count. If anything else, don't count.
 
Upvote 0
kenton, I don't know why I had a problem copying the data earlier but I now have the data in a spreadsheet and will be working on a solution for you.

frank_al
 
Upvote 0
kenton, give this code a try and let me know if you encounter any issues. Your sample data didn't have a Project Name in Column I so I added something just to ensure the code pulled data from that column to the dashboard.

Code:
Option Explicit


Sub SumData()
Dim ws As Worksheet
Dim ctws As Worksheet
Dim lastrow As Long
Dim nextrow As Long
Dim i As Long
Dim data(1 To 9) As Variant
Dim projcnt As Long
Dim phasecnt As Long
Dim sapcnt As Long
Dim shipcnt As Long


Set ctws = Worksheets("Dashboard")
For Each ws In ActiveWorkbook.Worksheets
    If ws.Name <> "Dashboard" Then
        lastrow = ws.Cells(Rows.Count, "A").End(xlUp).Row
        Range("A2:I" & lastrow).Sort key1:=Range("E1")
        projcnt = 1
        phasecnt = 0
        sapcnt = 0
        shipcnt = 0
        For i = 2 To lastrow
            If ws.Cells(i, "F") = "yes" Then phasecnt = phasecnt + 1
            If IsNumeric(ws.Cells(i, "G")) Then sapcnt = sapcnt + 1
            If ws.Cells(i, "H") <> "" Then shipcnt = shipcnt + 1
            If ws.Cells(i + 1, "E") <> ws.Cells(i, "E") Then
                data(1) = ws.Cells(i, "A")
                data(2) = ws.Cells(i, "C")
                data(3) = ws.Cells(i, "E")
                data(4) = ws.Cells(i, "I")
                data(5) = ws.Cells(i, "B")
                data(6) = phasecnt / projcnt
                data(7) = sapcnt / projcnt
                data(8) = shipcnt / projcnt
                data(9) = projcnt
                projcnt = 1
                phasecnt = 0
                sapcnt = 0
                shipcnt = 0
                nextrow = ctws.Cells(Rows.Count, "A").End(xlUp).Row + 1
                ctws.Range("A" & nextrow & ":I" & nextrow) = data
                projcnt = 0
            End If
            projcnt = projcnt + 1
        Next i
    End If
Next
ctws.Columns("F:H").NumberFormat = "0.0%"
ctws.Columns("I").NumberFormat = "0"
ctws.Columns("A:I").EntireColumn.AutoFit
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,905
Messages
6,122,174
Members
449,071
Latest member
cdnMech

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