How can I just quickly delete all odd rows?
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Quick Delete (Excel 97)
Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Quick Delete (Excel 97)
- This topic has 5 replies, 4 voices, and was last updated 23 years, 6 months ago.
Viewing 2 reply threadsAuthorReplies-
WSAndrew Cronnolly
AskWoody LoungerOctober 31, 2001 at 7:11 pm #549520You cannot just quickly delet all odd rows. As soon as you delete the first one, the first even row following it becomes an odd row. If you want to use VBA, you would need to mark the existing odd cells and then run through them again, deleting the ones marked. Try the following
Sub MarkOdd() Dim rngRows As Range Set rngRows = Range("A1:A100") For Each Cell In rngRows If Cell.Row Mod 2 = 1 Then Cell.Value = "Del" End If Next For Each Cell In rngRows If Cell.Value = "Del" Then Cell.EntireRow.Delete End If Next End Sub
The above deletes all odd rows in the range A1:A100
Andrew C
-
WSXimon
AskWoody Lounger
-
-
WSWassim
AskWoody LoungerOctober 31, 2001 at 7:11 pm #549521Ximon
In a column use this formula and fill it down as many rows as you have data.
=IF(MOD(ROW(),2)0,1/0,””)
For each row this formula will place a #DIV/0! if it is an odd row, and nothing for even.
Then you can use Goto Special and use Formulas Errors and then you get all the rows selected.
Then delete…
Wassim
-
H. Legare Coleman
AskWoody Plus -
WSXimon
AskWoody Lounger
-
Viewing 2 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
*Some settings are managed by your organization
by
rlowe44
44 minutes ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
2 hours, 58 minutes ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
3 hours, 22 minutes ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
12 hours, 23 minutes ago -
AI slop
by
Susan Bradley
11 hours, 33 minutes ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
13 hours, 39 minutes ago -
Two blank icons
by
CR2
20 hours, 9 minutes ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
22 hours, 33 minutes ago -
End of 10
by
Alex5723
1 day, 1 hour ago -
End Of 10 : Move to Linux
by
Alex5723
1 day, 1 hour ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
22 hours, 12 minutes ago -
test post
by
gtd12345
1 day, 7 hours ago -
Privacy and the Real ID
by
Susan Bradley
21 hours, 22 minutes ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
13 hours, 28 minutes ago -
Cant log on to oldergeeks.Com
by
WSJonharnew
1 day, 11 hours ago -
Upgrading from Win 10
by
WSjcgc50
12 hours, 58 minutes ago -
USB webcam / microphone missing after KB5050009 update
by
WSlloydkuhnle
2 hours, 52 minutes ago -
TeleMessage, a modified Signal clone used by US government has been hacked
by
Alex5723
2 days, 3 hours ago -
The story of Windows Longhorn
by
Cybertooth
1 day, 15 hours ago -
Red x next to folder on OneDrive iPadOS
by
dmt_3904
2 days, 5 hours ago -
Are manuals extinct?
by
Susan Bradley
16 hours, 42 minutes ago -
Canonical ditching Sudo for Rust Sudo -rs starting with Ubuntu
by
Alex5723
2 days, 14 hours ago -
Network Issue
by
Casey H
2 days, 1 hour ago -
Fedora Linux is now an official WSL distro
by
Alex5723
3 days, 2 hours ago -
May 2025 Office non-Security updates
by
PKCano
3 days, 2 hours ago -
Windows 10 filehistory including onedrive folder
by
Steve Bondy
3 days, 4 hours ago -
pages print on restart (Win 11 23H2)
by
cyraxote
2 days, 5 hours ago -
Windows 11 Insider Preview build 26200.5581 released to DEV
by
joep517
3 days, 6 hours ago -
Windows 11 Insider Preview build 26120.3950 (24H2) released to BETA
by
joep517
3 days, 6 hours ago -
Proton to drop prices after ruling against “Apple tax”
by
Cybertooth
3 days, 14 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.