Searching a list of names, with corsponding data across to another worksheet

Butch-196

New Member
Joined
Sep 17, 2013
Messages
27
Spreadsheet 1 is the list of names, dates, meter readings I have started with and I need to split the names on to new worksheets as per spreadsheet 2

Spreadsheet 1 (master worksheet)

[TABLE="width: 501"]
<colgroup><col width="246" style="width: 185pt; mso-width-source: userset; mso-width-alt: 8587;"> <col width="77" style="width: 58pt; mso-width-source: userset; mso-width-alt: 2676;"> <col width="181" style="width: 136pt; mso-width-source: userset; mso-width-alt: 6330;"> <col width="163" style="width: 122pt; mso-width-source: userset; mso-width-alt: 5678;"> <tbody>[TR]
[TD="width: 246, bgcolor: transparent"]Name [/TD]
[TD="width: 77, bgcolor: transparent"]Date[/TD]
[TD="width: 344, bgcolor: transparent, colspan: 2"]Meter Reading[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Start [/TD]
[TD="bgcolor: transparent"]End [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]SMITH[/TD]
[TD="bgcolor: transparent"]12/03/2019[/TD]
[TD="bgcolor: transparent"]796908.30[/TD]
[TD="bgcolor: transparent"]796943.30[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]OUTRAM[/TD]
[TD="bgcolor: transparent"]13/03/2018[/TD]
[TD="bgcolor: transparent"]796943.30[/TD]
[TD="bgcolor: transparent"]796982.10[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]WILSON[/TD]
[TD="bgcolor: transparent"]14/03/2018[/TD]
[TD="bgcolor: transparent"]796982.10[/TD]
[TD="bgcolor: transparent"]797120.00[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]DUCKER[/TD]
[TD="bgcolor: transparent"]15/03/2018[/TD]
[TD="bgcolor: transparent"]797120.00[/TD]
[TD="bgcolor: transparent"]797140.00[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]FRYATT[/TD]
[TD="bgcolor: transparent"]16/03/2018[/TD]
[TD="bgcolor: transparent"]797140.00[/TD]
[TD="bgcolor: transparent"]797155.00[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]IBBOTSON[/TD]
[TD="bgcolor: transparent"]17/03/2018[/TD]
[TD="bgcolor: transparent"]797155.00[/TD]
[TD="bgcolor: transparent"]797222.00[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]KIRBY[/TD]
[TD="bgcolor: transparent"]18/03/2018[/TD]
[TD="bgcolor: transparent"]797222.00[/TD]
[TD="bgcolor: transparent"]797289.00[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]SMITH[/TD]
[TD="bgcolor: transparent"]19/03/2018[/TD]
[TD="bgcolor: transparent"]797289.00[/TD]
[TD="bgcolor: transparent"]797389.00[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]WILSON[/TD]
[TD="bgcolor: transparent"]20/03/2018[/TD]
[TD="bgcolor: transparent"]797389.00[/TD]
[TD="bgcolor: transparent"]797489.00[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]WOODCOCK[/TD]
[TD="bgcolor: transparent"]21/03/2018[/TD]
[TD="bgcolor: transparent"]797489.00[/TD]
[TD="bgcolor: transparent"]797589.00[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]SMITH[/TD]
[TD="bgcolor: transparent"]22/03/2018[/TD]
[TD="bgcolor: transparent"]797589.00[/TD]
[TD="bgcolor: transparent"]797689.00[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]WITHERS C[/TD]
[TD="bgcolor: transparent"]23/03/2018[/TD]
[TD="bgcolor: transparent"]797689.00[/TD]
[TD="bgcolor: transparent"]797789.00[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]WILLIAMS
[/TD]
[TD="bgcolor: transparent"]24/03/2018[/TD]
[TD="bgcolor: transparent"]797789.00
[/TD]
[TD="bgcolor: transparent"]

[/TD]
[/TR]
</tbody>[/TABLE]

Spreadsheet 2 (SMITH Worksheet)

[TABLE="width: 369"]
<colgroup><col width="125" style="width: 94pt; mso-width-source: userset; mso-width-alt: 4375;"> <col width="91" style="width: 69pt; mso-width-source: userset; mso-width-alt: 3188;"> <col width="135" style="width: 101pt; mso-width-source: userset; mso-width-alt: 4701;"> <col width="140" style="width: 105pt; mso-width-source: userset; mso-width-alt: 4887;"> <tbody>[TR]
[TD="width: 125, bgcolor: transparent"]Name [/TD]
[TD="width: 91, bgcolor: transparent"]Date[/TD]
[TD="width: 275, bgcolor: transparent, colspan: 2"]Meter Reading[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Start [/TD]
[TD="bgcolor: transparent"]End [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]SMITH[/TD]
[TD="bgcolor: transparent, align: right"]19/03/2018[/TD]
[TD="bgcolor: transparent"]797289.00[/TD]
[TD="bgcolor: transparent"]797389.00[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]SMITH[/TD]
[TD="bgcolor: transparent, align: right"]19/03/2018[/TD]
[TD="bgcolor: transparent"]797289.00[/TD]
[TD="bgcolor: transparent"]797389.00[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]SMITH[/TD]
[TD="bgcolor: transparent, align: right"]19/03/2018[/TD]
[TD="bgcolor: transparent"]797289.00[/TD]
[TD="bgcolor: transparent"]797389.00

[/TD]
[/TR]
</tbody>[/TABLE]

Regards
Richard
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
How about


Excel 2013/2016
ABCD
1NameDateMeter Reading
2StartEnd
3SMITH12/03/2019796908.30796943.30
419/03/2018797289.00797389.00
522/03/2018797589.00797689.00
Smith
Cell Formulas
RangeFormula
B3{=IFERROR(INDEX(sheet1!B$3:B$15,SMALL(IF(sheet1!$A$3:$A$15=$A$3,ROW(sheet1!$A$3:$A$15)-ROW(sheet1!$A$3)+1),ROWS($1:1))),"")}
Press CTRL+SHIFT+ENTER to enter array formulas.



Formula copied down & across
 
Last edited:
Upvote 0
Hi thanks for the help, i am struggling to get the meter readings to work with this formula,
regrds
rihard
 
Upvote 0
Simply format the Meter reading columns to "General"
 
Upvote 0
If your meter readings are in cols C:D then just copy the formula across & format the cells
 
Upvote 0
=IFERROR(INDEX('Master Sheet'!C$6:C$18,SMALL(IF('Master Sheet'!$A$6:$A$18='Smith 01'!$A$10,ROW('Master Sheet'!$A$6:$A$18)-ROW('Master Sheet'!$A$6)+1),ROWS($1:1))),"")

[TABLE="width: 369"]
<colgroup><col width="125" style="width: 94pt; mso-width-source: userset; mso-width-alt: 4375;"> <col width="91" style="width: 69pt; mso-width-source: userset; mso-width-alt: 3188;"> <col width="135" style="width: 101pt; mso-width-source: userset; mso-width-alt: 4701;"> <col width="140" style="width: 105pt; mso-width-source: userset; mso-width-alt: 4887;"> <tbody>[TR]
[TD="width: 125, bgcolor: transparent"]Name [/TD]
[TD="width: 91, bgcolor: transparent"]Date[/TD]
[TD="width: 275, bgcolor: transparent, colspan: 2"]Meter Reading[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Start [/TD]
[TD="bgcolor: transparent"]End [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]SMITH[/TD]
[TD="bgcolor: transparent, align: right"]12/03/2019[/TD]
[TD="bgcolor: transparent, align: right"]12/06/4083[/TD]
[TD="bgcolor: transparent, align: right"]12/03/2019[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]SMITH[/TD]
[TD="bgcolor: transparent, align: right"]19/03/2018[/TD]
[TD="bgcolor: transparent, align: right"]19/03/2018[/TD]
[TD="bgcolor: transparent, align: right"]20/03/2018[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]SMITH[/TD]
[TD="bgcolor: transparent, align: right"]22/03/2018[/TD]
[TD="bgcolor: transparent, align: right"]22/03/2018[/TD]
[TD="bgcolor: transparent, align: right"]24/03/2018[/TD]
[/TR]
</tbody>[/TABLE]

I think I must be doing someting wrong
 
Upvote 0
You need to format the meter readings columns, either as general, or as number
 
Upvote 0

Forum statistics

Threads
1,223,229
Messages
6,170,881
Members
452,364
Latest member
springate

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