Delete matching dates in workbook

San Antonio Heat

Active Member
Joined
Oct 10, 2003
Messages
333
Office Version
  1. 2019
Platform
  1. Windows
I have a workbook with multiple pages. Is it possible to use some simple code and remove all matching dates and the two cells to the right of it within the entire workbook, for all pages?
Every page with have the same dates and the dates all appear in column "A". I would also like to remove the data next to it so it removes Column "B" and "C" as well. The Dates are on different cells on each page, that's why I need some code to find them easier. 3/10/2011 will appear in cell A68 on page 2 and on page 3, it will appear on cell A90. Dates will always be in cell A.

Ex:Page 2
A68.................B68...........C68
3/10/2011 .......Hamilton.....Corvette

Page 3
A90..................B90.............C90
3/10/2011........Detroit..........Mazaradi


So you click a button and all the matching 3/10/2011 in the workbook get deleted along with the data in B and C cells next to it, thanks!
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney

Forum statistics

Threads
1,224,583
Messages
6,179,672
Members
452,937
Latest member
Bhg1984

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