LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 50
Default Macro to clean up data

I have a file that comes in weekly that I take numerous steps to clean up the
data for my reports. I am hoping to automate some of these. Could one of
you experts help me to create a macro to do the following:

Every third column (beginning with C thru X) contains SUMIF formulas to
calculate totals - ie: =IF(SUMIF(Breakdown!D:D,T6,Breakdown!C:C)<1,"
",SUMIF(Breakdown!D:D,T6,Breakdown!C:C)).

If the formula results in a blank, then I need to delete that cell and the
two cells to the right of it, and move the rest of the cells up.

For example, if C3 and C6 are blank then I need Cells A3, B3, C3, A6, B6,
and C6 to be deleted and all existing cells in those columns to move up.
This needs to be done for all the blank cells in the totals columns stated
above.

I have some experience with macros and VBA, but I need some help getting
started on this one....

Thanks,
Diane
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Data Clean Up Dolphy Excel Discussion (Misc queries) 1 September 28th 07 10:47 AM
clean up data BNT1 via OfficeKB.com Excel Discussion (Misc queries) 1 February 14th 07 03:43 PM
Clean Up Data ultra_xcyter Excel Discussion (Misc queries) 2 August 11th 06 08:49 PM
HOW DO I CLEAN UNCLEAN DATA? Roger Govier Excel Worksheet Functions 0 July 26th 06 12:19 AM
Get out clean XML data Diane Excel Discussion (Misc queries) 1 April 30th 05 02:18 PM


All times are GMT +1. The time now is 05:29 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"