Web Query/VB or Macro Help - Merge Every 3 Rows

NCH87

New Member
Joined
Jun 22, 2015
Messages
1
Hello!

I've been working on this for what seems like days. Ultimately, I'm wanting to know how to quickly grab data from a link via Web Query, then edit that data with a script or macro. End goal is to identify fantasy football draft trends:

Web Query: Completed Draft - Fantasy Football Calculator

Results look like:
[TABLE="width: 264"]
<tbody>[TR]
[TD="align: left"]Jamaal[/TD]
[TD="align: left"]Arian[/TD]
[TD="align: left"]LeVeon[/TD]
[/TR]
[TR]
[TD="align: left"]Charles[/TD]
[TD="align: left"]Foster[/TD]
[TD="align: left"]Bell[/TD]
[/TR]
[TR]
[TD="align: left"]RB (KC) 9[/TD]
[TD="align: left"]RB (HOU) 9[/TD]
[TD="align: left"]RB (PIT) 11[/TD]
[/TR]
[TR]
[TD="align: left"]LeSean[/TD]
[TD="align: left"]Matt[/TD]
[TD="align: left"]Andrew[/TD]
[/TR]
[TR]
[TD="align: left"]McCoy[/TD]
[TD="align: left"]Forte[/TD]
[TD="align: left"]Luck[/TD]
[/TR]
[TR]
[TD="align: left"]RB (BUF) 8[/TD]
[TD="align: left"]RB (CHI) 7[/TD]
[TD="align: left"]QB (IND) 10[/TD]
[/TR]
[TR]
[TD="align: left"]Alshon[/TD]
[TD="align: left"]Mike[/TD]
[TD="align: left"]T.Y.[/TD]
[/TR]
[TR]
[TD="align: left"]Jeffery[/TD]
[TD="align: left"]Evans[/TD]
[TD="align: left"]Hilton[/TD]
[/TR]
[TR]
[TD="align: left"]WR (CHI) 7[/TD]
[TD="align: left"]WR (TB) 6[/TD]
[TD="align: left"]WR (IND) 1[/TD]
[/TR]
</tbody>[/TABLE]

Whereas the preferred edit would be:
[TABLE="width: 500, align: center"]
<tbody>[TR]
[TD]JAMAAL CHARLES RB (KC) 9[/TD]
[TD]ARIAN FOSTER RB (HOU) 9[/TD]
[TD]LEVEON BELL RB (PIT) 11[/TD]
[/TR]
[TR]
[TD]LESEAN MCCOY RB (BUF) 8[/TD]
[TD]MATT FORTE RB (CHI) 7[/TD]
[TD]ANDREW LUCK QB (IND) 10[/TD]
[/TR]
[TR]
[TD]ALSHON JEFFERY WR (CHI) 7[/TD]
[TD]MIKE EVANS WR (TB) 6[/TD]
[TD]T.Y. HILTON WR (IND) 10[/TD]
[/TR]
</tbody>[/TABLE]

I understand that =CONCATENATE(A1, " ", A2, " ", A3) will accomplish this, however as you can see from the table, the editing for each query will take a long time as there is typically 450 cells to edit AND if the formula is dragged, it will add A2, A3, A4 on the next cell, instead of A4, A5, A6. Is there a script that I can add which will quickly combine cells as mentioned above? And is there a way to automate this process where say it will go to this site(Completed Mock Drafts - Fantasy Football Calculator) and grab the first 5 or 10 and create a new work sheet for each?

I know it can be done, but I know next to nothing about coding.

I am a first time poster, I was unable to access the etiquette page prior to posting. If these should be reformatted, I will happily do so.
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

Similar threads

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