Autofill Down - Prep List for Pivot Table

MB11

New Member
Joined
Mar 2, 2009
Messages
14
I have a 4000 row spreadsheet that I want to organize for a pivot table. Some of the rows are missing data, and need to be autofilled with the data above it to be searchable in a pivot table.

<table x:str="" style="border-collapse: collapse; width: 144pt;" width="192" border="0" cellpadding="0" cellspacing="0"><col style="width: 48pt;" span="3" width="64"> <tbody><tr style="height: 12.75pt;" height="17"> <td class="xl24" style="height: 12.75pt; width: 48pt;" width="64" height="17">Store</td> <td class="xl24" style="border-left: medium none; width: 48pt;" width="64">Style</td> <td class="xl24" style="border-left: medium none; width: 48pt;" width="64">Color</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl24" style="border-top: medium none; height: 12.75pt;" height="17">
</td> <td class="xl24" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl24" style="border-top: medium none; border-left: medium none;">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl24" style="border-top: medium none; height: 12.75pt;" height="17">A</td> <td class="xl24" style="border-top: medium none; border-left: medium none;" x:num="">1</td> <td class="xl24" style="border-top: medium none; border-left: medium none;">a</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl24" style="border-top: medium none; height: 12.75pt;" height="17">
</td> <td class="xl24" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl24" style="border-top: medium none; border-left: medium none;">b</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl24" style="border-top: medium none; height: 12.75pt;" height="17">
</td> <td class="xl24" style="border-top: medium none; border-left: medium none;" x:num="">2</td> <td class="xl24" style="border-top: medium none; border-left: medium none;">a</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl24" style="border-top: medium none; height: 12.75pt;" height="17">B</td> <td class="xl24" style="border-top: medium none; border-left: medium none;" x:num="">1</td> <td class="xl24" style="border-top: medium none; border-left: medium none;">a</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl24" style="border-top: medium none; height: 12.75pt;" height="17">
</td> <td class="xl24" style="border-top: medium none; border-left: medium none;" x:num="">2</td> <td class="xl24" style="border-top: medium none; border-left: medium none;">a</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl24" style="border-top: medium none; height: 12.75pt;" height="17">C</td> <td class="xl24" style="border-top: medium none; border-left: medium none;" x:num="">1</td> <td class="xl24" style="border-top: medium none; border-left: medium none;">a</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl24" style="border-top: medium none; height: 12.75pt;" height="17">D</td> <td class="xl24" style="border-top: medium none; border-left: medium none;" x:num="">1</td> <td class="xl24" style="border-top: medium none; border-left: medium none;">a</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl24" style="border-top: medium none; height: 12.75pt;" height="17">
</td> <td class="xl24" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl24" style="border-top: medium none; border-left: medium none;">b</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl24" style="border-top: medium none; height: 12.75pt;" height="17">
</td> <td class="xl24" style="border-top: medium none; border-left: medium none;" x:num="">2</td> <td class="xl24" style="border-top: medium none; border-left: medium none;">a</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl24" style="border-top: medium none; height: 12.75pt;" height="17">
</td> <td class="xl24" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl24" style="border-top: medium none; border-left: medium none;">b</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl24" style="border-top: medium none; height: 12.75pt;" height="17">
</td> <td class="xl24" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl24" style="border-top: medium none; border-left: medium none;">c</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl24" style="border-top: medium none; height: 12.75pt;" height="17">
</td> <td class="xl24" style="border-top: medium none; border-left: medium none;" x:num="">3</td> <td class="xl24" style="border-top: medium none; border-left: medium none;">a</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl24" style="border-top: medium none; height: 12.75pt;" height="17">E</td> <td class="xl24" style="border-top: medium none; border-left: medium none;" x:num="">1</td> <td class="xl24" style="border-top: medium none; border-left: medium none;">a</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl24" style="border-top: medium none; height: 12.75pt;" height="17">
</td> <td class="xl24" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl24" style="border-top: medium none; border-left: medium none;">b</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl24" style="border-top: medium none; height: 12.75pt;" height="17">
</td> <td class="xl24" style="border-top: medium none; border-left: medium none;" x:num="">3</td> <td class="xl24" style="border-top: medium none; border-left: medium none;">a</td> </tr> </tbody></table>

I want it to look like this, with the blank cells filled with the data above it so that it will be recognized in a pivot table.

<table x:str="" style="border-collapse: collapse; width: 144pt;" width="192" border="0" cellpadding="0" cellspacing="0"><col style="width: 48pt;" span="3" width="64"> <tbody><tr style="height: 12.75pt;" height="17"> <td class="xl24" style="height: 12.75pt; width: 48pt;" width="64" height="17">Store</td> <td class="xl24" style="border-left: medium none; width: 48pt;" width="64">Style</td> <td class="xl24" style="border-left: medium none; width: 48pt;" width="64">Color</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl24" style="border-top: medium none; height: 12.75pt;" height="17">
</td> <td class="xl24" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl24" style="border-top: medium none; border-left: medium none;">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl24" style="border-top: medium none; height: 12.75pt;" height="17">A</td> <td class="xl24" style="border-top: medium none; border-left: medium none;" x:num="">1</td> <td class="xl24" style="border-top: medium none; border-left: medium none;">a</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl24" style="border-top: medium none; height: 12.75pt;" height="17">A</td> <td class="xl24" style="border-top: medium none; border-left: medium none;" x:num="">1</td> <td class="xl24" style="border-top: medium none; border-left: medium none;">b</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl24" style="border-top: medium none; height: 12.75pt;" height="17">A</td> <td class="xl24" style="border-top: medium none; border-left: medium none;" x:num="">2</td> <td class="xl24" style="border-top: medium none; border-left: medium none;">a</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl24" style="border-top: medium none; height: 12.75pt;" height="17">B</td> <td class="xl24" style="border-top: medium none; border-left: medium none;" x:num="">1</td> <td class="xl24" style="border-top: medium none; border-left: medium none;">a</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl24" style="border-top: medium none; height: 12.75pt;" height="17">B</td> <td class="xl24" style="border-top: medium none; border-left: medium none;" x:num="">2</td> <td class="xl24" style="border-top: medium none; border-left: medium none;">a</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl24" style="border-top: medium none; height: 12.75pt;" height="17">C</td> <td class="xl24" style="border-top: medium none; border-left: medium none;" x:num="">1</td> <td class="xl24" style="border-top: medium none; border-left: medium none;">a</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl24" style="border-top: medium none; height: 12.75pt;" height="17">D</td> <td class="xl24" style="border-top: medium none; border-left: medium none;" x:num="">1</td> <td class="xl24" style="border-top: medium none; border-left: medium none;">a</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl24" style="border-top: medium none; height: 12.75pt;" height="17">D</td> <td class="xl24" style="border-top: medium none; border-left: medium none;" x:num="">1</td> <td class="xl24" style="border-top: medium none; border-left: medium none;">b</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl24" style="border-top: medium none; height: 12.75pt;" height="17">D</td> <td class="xl24" style="border-top: medium none; border-left: medium none;" x:num="">2</td> <td class="xl24" style="border-top: medium none; border-left: medium none;">a</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl24" style="border-top: medium none; height: 12.75pt;" height="17">D</td> <td class="xl24" style="border-top: medium none; border-left: medium none;" x:num="">2</td> <td class="xl24" style="border-top: medium none; border-left: medium none;">b</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl24" style="border-top: medium none; height: 12.75pt;" height="17">D</td> <td class="xl24" style="border-top: medium none; border-left: medium none;" x:num="">2</td> <td class="xl24" style="border-top: medium none; border-left: medium none;">c</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl24" style="border-top: medium none; height: 12.75pt;" height="17">D</td> <td class="xl24" style="border-top: medium none; border-left: medium none;" x:num="">3</td> <td class="xl24" style="border-top: medium none; border-left: medium none;">a</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl24" style="border-top: medium none; height: 12.75pt;" height="17">E</td> <td class="xl24" style="border-top: medium none; border-left: medium none;" x:num="">1</td> <td class="xl24" style="border-top: medium none; border-left: medium none;">a</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl24" style="border-top: medium none; height: 12.75pt;" height="17">E</td> <td class="xl24" style="border-top: medium none; border-left: medium none;" x:num="">1</td> <td class="xl24" style="border-top: medium none; border-left: medium none;">b</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl24" style="border-top: medium none; height: 12.75pt;" height="17">E</td> <td class="xl24" style="border-top: medium none; border-left: medium none;" x:num="">3</td> <td class="xl24" style="border-top: medium none; border-left: medium none;">a</td> </tr> </tbody></table>

Is there a function or formula that will cover this so I can just run the formula on the entire column and not have to use my cursor and control D on every blank cell?

Thanks!
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

VoG

Legend
Joined
Jun 19, 2002
Messages
63,650
Select the data, press F5, click Special, tick Blanks and click OK.

Press =

Press Up arrow

Hold down CTRL and press Enter.

Copy the data, Edit > Paste Special, tick Values and click OK.
 
Upvote 0

MB11

New Member
Joined
Mar 2, 2009
Messages
14
Select the data, press F5, click Special, tick Blanks and click OK.

Press =

Press Up arrow

Hold down CTRL and press Enter.

Copy the data, Edit > Paste Special, tick Values and click OK.

Wonderful! Thank you....
 
Upvote 0

Forum statistics

Threads
1,191,581
Messages
5,987,453
Members
440,097
Latest member
Wint

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
Top