Need to find out how to gather data from one worksheet and populate it on another worksheet based on a search string

hundreds

New Member
Joined
Dec 1, 2017
Messages
2
Hey everyone,

I am working on creating an excel document that keeps six months worth of data for individual persons' statistics. My 'data' worksheet has several columns of information for each record (making up the statistics), but most importantly it has a "name" column for each person. Each month's info will likely include the same person all six times (one record for each month). I do not currently have a column that designates it as part of a certain month. I just use a header label at the top above each large chunk of data. Like this:
<code style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; vertical-align: baseline; white-space: inherit;"> </code>
[TABLE="width: 747"]
<tbody>[TR]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]September / 2017[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Name[/TD]
[TD][/TD]
[TD]S[/TD]
[TD]R[/TD]
[TD]A[/TD]
[TD]PLC[/TD]
[TD]VID[/TD]
[TD]HR[/TD]
[TD]RV[/TD]
[TD]BS[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 2"]Person 1[/TD]
[TD]M[/TD]
[TD][/TD]
[TD][/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 2"]Person 2[/TD]
[TD]F[/TD]
[TD][/TD]
[TD][/TD]
[TD]2[/TD]
[TD]0[/TD]
[TD]8[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 2"]Person 3[/TD]
[TD]F[/TD]
[TD][/TD]
[TD][/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]2[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 2"]Person 4[/TD]
[TD]F[/TD]
[TD]Y[/TD]
[TD][/TD]
[TD]30[/TD]
[TD]0[/TD]
[TD]12[/TD]
[TD]4[/TD]
[TD]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 2"]Person 5[/TD]
[TD]E[/TD]
[TD][/TD]
[TD][/TD]
[TD]11[/TD]
[TD]0[/TD]
[TD]4[/TD]
[TD]3[/TD]
[TD]0
[/TD]
[/TR]
</tbody>[/TABLE]

[TABLE="width: 747"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]September / 2017[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Name[/TD]
[TD][/TD]
[TD]S[/TD]
[TD]R[/TD]
[TD]A[/TD]
[TD]PLC[/TD]
[TD]VID[/TD]
[TD]HR[/TD]
[TD]RV[/TD]
[TD]BS[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 2"]Person 1[/TD]
[TD]M[/TD]
[TD][/TD]
[TD][/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 2"]Person 2[/TD]
[TD]F[/TD]
[TD][/TD]
[TD][/TD]
[TD]2[/TD]
[TD]0[/TD]
[TD]8[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 2"]Person 3[/TD]
[TD]F[/TD]
[TD][/TD]
[TD][/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]2[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 2"]Person 4[/TD]
[TD]F[/TD]
[TD]Y[/TD]
[TD][/TD]
[TD]30[/TD]
[TD]0[/TD]
[TD]12[/TD]
[TD]4[/TD]
[TD]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 2"]Person 5[/TD]
[TD]E[/TD]
[TD][/TD]
[TD][/TD]
[TD]11[/TD]
[TD]0[/TD]
[TD]4[/TD]
[TD]3[/TD]
[TD]0[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

It would probably be ideal to have each month of data in it's own worksheet, but I don't know how to pull that information either. Sorry, I am mediocre at Excel, which is why I am coming here for help. :)


The data in each row is laid out like this:


[TABLE="width: 549"]
<tbody>[TR]
[TD]Name[/TD]
[TD][/TD]
[TD]S[/TD]
[TD]R[/TD]
[TD]A[/TD]
[TD]PLC[/TD]
[TD]VID[/TD]
[TD]HR[/TD]
[TD]RV[/TD]
[TD]BS[/TD]
[/TR]
[TR]
[TD="colspan: 2"]Person's name[/TD]
[TD]M[/TD]
[TD]Y[/TD]
[TD]N[/TD]
[TD]23[/TD]
[TD]32[/TD]
[TD]12[/TD]
[TD]5[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]

Through fooling around a bit, I was able to use AVERAGEIF to create a listing on another worksheet (let's call it the 'results' worksheet) which combines all six months into averages, creating a master list of sorts. Using VLOOKUP on the results worksheet, I then added a small search string that pulls from the results page master list and quickly shows me a record of my choice depending on what I type. But what would be helpful is to have along with that averaged record a readout of each month's data one on top of the next, with the averages at the bottom?

Something that looks like this:

[TABLE="width: 549"]
<tbody>[TR]
[TD]Name[/TD]
[TD][/TD]
[TD]S[/TD]
[TD]R[/TD]
[TD]A[/TD]
[TD]PLC[/TD]
[TD]VID[/TD]
[TD]HR[/TD]
[TD]RV[/TD]
[TD]BS[/TD]
[/TR]
[TR]
[TD="colspan: 2"]Person's Name[/TD]
[TD]E[/TD]
[TD][/TD]
[TD][/TD]
[TD]1.0[/TD]
[TD]0.0[/TD]
[TD]9.0[/TD]
[TD]7.0[/TD]
[TD]1.0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]E[/TD]
[TD][/TD]
[TD][/TD]
[TD]11[/TD]
[TD]0[/TD]
[TD]4[/TD]
[TD]3[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]E[/TD]
[TD][/TD]
[TD][/TD]
[TD]11[/TD]
[TD]0[/TD]
[TD]4[/TD]
[TD]4[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]E[/TD]
[TD][/TD]
[TD][/TD]
[TD]11[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]E[/TD]
[TD][/TD]
[TD][/TD]
[TD]11[/TD]
[TD]0[/TD]
[TD]4[/TD]
[TD]1[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]E[/TD]
[TD][/TD]
[TD][/TD]
[TD]11[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Averages:[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]9.3[/TD]
[TD]0[/TD]
[TD]4[/TD]
[TD]3[/TD]
[TD]0[/TD]
[/TR]
</tbody>[/TABLE]

So the result would be six records of data and then a 7th that averages all 6. The six records of data have to be copied over from the data worksheet, and it would have to be dynamically populated depending on what is entered into the search cell. I am guessing that it would make sense to just pull all of the data from the 'data' worksheet instead of getting part of it from the master list on the 'results' worksheet.

Any thoughts? Jay
[TABLE="width: 747"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]September / 2017[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Name[/TD]
[TD][/TD]
[TD]S[/TD]
[TD]R[/TD]
[TD]A[/TD]
[TD]PLC[/TD]
[TD]VID[/TD]
[TD]HR[/TD]
[TD]RV[/TD]
[TD]BS[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 2"]Person 1[/TD]
[TD]M[/TD]
[TD][/TD]
[TD][/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 2"]Person 2[/TD]
[TD]F[/TD]
[TD][/TD]
[TD][/TD]
[TD]2[/TD]
[TD]0[/TD]
[TD]8[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 2"]Person 3[/TD]
[TD]F[/TD]
[TD][/TD]
[TD][/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]2[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 2"]Person 4[/TD]
[TD]F[/TD]
[TD]Y[/TD]
[TD][/TD]
[TD]30[/TD]
[TD]0[/TD]
[TD]12[/TD]
[TD]4[/TD]
[TD]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 2"]Person 5[/TD]
[TD]E[/TD]
[TD][/TD]
[TD][/TD]
[TD]11[/TD]
[TD]0[/TD]
[TD]4[/TD]
[TD]3[/TD]
[TD]0[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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