Thread: **macros**
View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.misc
Emma Emma is offline
external usenet poster
 
Posts: 55
Default **macros**

Hi,

You can also use a formula to get the data as you want (I assume your data
is in a pivot table?)

Assuming the data you have is in Column A and B (with the first piece of
data at row 2) then you could use the following formulas:
In column C use the formula
=if(isblank(A2),C1,A2)
In column D use the formula
=if(isblank(B2),D1,B2)

Then you just need to copy to the end of your data table.
I use this formula all the time with the data I get from pivot tables.

Goodluck with which ever method you use.