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

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
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
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,214,793
Messages
6,121,617
Members
449,039
Latest member
Mbone Mathonsi

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