Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 126
Default create macro - delete all rows with zero in column L

Using Microsoft Excel 2000 SP3
I have this spreadsheet as shown below.

Column Letter/ Row No. F G H I J K L
5 BAL MON TUES WED THUR FRI BAL
6 500 500
7 0 10 20 40 70
8 0 0
9 0 10 10
10 0 50 50
11 0 0
12 0 0
13 500 500
14 3040 3040
15 500 500
4040 4540


I have formulas in cells in column L that return a zero (i.e.
L6=F6-G6-H6-I6-J6-K6) starting from row 6 onwards. There may be additional
€˜X no. of rows from row 6.

I need to
a)copy only the values in column L from row 6 downwards to row €˜X into
column F row 6 downwards.
b)delete the values from column G to K from row 6 downwards to row €˜X
c)delete the rows that have zero value in column L

Can someone please help

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default create macro - delete all rows with zero in column L

Start here
http://www.rondebruin.nl/delete.htm

Test for
ElseIf .Cells(Lrow, "A").Value = "" Then .Rows(Lrow).Delete

Change every A to L


--
Regards Ron De Bruin
http://www.rondebruin.nl



"Johnny" wrote in message ...
Using Microsoft Excel 2000 SP3
I have this spreadsheet as shown below.

Column Letter/ Row No. F G H I J K L
5 BAL MON TUES WED THUR FRI BAL
6 500 500
7 0 10 20 40 70
8 0 0
9 0 10 10
10 0 50 50
11 0 0
12 0 0
13 500 500
14 3040 3040
15 500 500
4040 4540


I have formulas in cells in column L that return a zero (i.e.
L6=F6-G6-H6-I6-J6-K6) starting from row 6 onwards. There may be additional
'X' no. of rows from row 6.

I need to
a)copy only the values in column L from row 6 downwards to row 'X' into
column F row 6 downwards.
b)delete the values from column G to K from row 6 downwards to row 'X'
c)delete the rows that have zero value in column L

Can someone please help



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 126
Default create macro - delete all rows with zero in column L

Ron

Thanks for the prompt reply it worked very well. I amended the first row to
third row as my data started from that point. It is great. Thanks. I will
assign a button to it and hopefully the storesman can just click the button
and do the job


"Ron de Bruin" wrote:

Start here
http://www.rondebruin.nl/delete.htm

Test for
ElseIf .Cells(Lrow, "A").Value = "" Then .Rows(Lrow).Delete

Change every A to L


--
Regards Ron De Bruin
http://www.rondebruin.nl



"Johnny" wrote in message ...
Using Microsoft Excel 2000 SP3
I have this spreadsheet as shown below.

Column Letter/ Row No. F G H I J K L
5 BAL MON TUES WED THUR FRI BAL
6 500 500
7 0 10 20 40 70
8 0 0
9 0 10 10
10 0 50 50
11 0 0
12 0 0
13 500 500
14 3040 3040
15 500 500
4040 4540


I have formulas in cells in column L that return a zero (i.e.
L6=F6-G6-H6-I6-J6-K6) starting from row 6 onwards. There may be additional
'X' no. of rows from row 6.

I need to
a)copy only the values in column L from row 6 downwards to row 'X' into
column F row 6 downwards.
b)delete the values from column G to K from row 6 downwards to row 'X'
c)delete the rows that have zero value in column L

Can someone please help




Reply
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
How to create a macro to delete multiple rows? gak27 Excel Discussion (Misc queries) 4 December 28th 07 04:51 PM
Create a macro to delete rows if value is less than a specified nu QE Excel Worksheet Functions 5 July 27th 06 08:35 PM
Can I create a macro to identify and delete blank rows in a range? carlsondj Excel Programming 6 June 10th 05 12:38 AM
delete rows using macro when no data in column Derek Chambers Excel Programming 1 October 21st 04 12:22 PM
macro to delete entire rows when column A is blank ...a quick macro vikram Excel Programming 4 May 3rd 04 08:45 PM


All times are GMT +1. The time now is 05:18 PM.

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

About Us

"It's about Microsoft Excel"