realtoast
New Member
- Joined
- Nov 24, 2015
- Messages
- 47
- Office Version
- 365
- Platform
- Windows
- MacOS
- Mobile
- Web
Experts,
I have a table, StartTable, that has thousands of records. I need a formula - or better, VBA script - that will detect records where all three of select fields are blank.
For instance, in the below table, the formula or macro would test the specific fields, Medical Coverage, Dental Coverage, and Vision Coverage. If all three of these fields are blank, the entire row would be deleted. So, below, Clark and Mark's entire rows would be deleted, all others would remain.
Thank you.
I have a table, StartTable, that has thousands of records. I need a formula - or better, VBA script - that will detect records where all three of select fields are blank.
For instance, in the below table, the formula or macro would test the specific fields, Medical Coverage, Dental Coverage, and Vision Coverage. If all three of these fields are blank, the entire row would be deleted. So, below, Clark and Mark's entire rows would be deleted, all others would remain.
Name | City | State | Color | Car | Medical Coverage | Dental Coverage | Vision Coverage | Card | Wheels |
John | Sacramento | CA | Red | Pinto | Kaiser | Delta | Yes | No | |
Jennifer | Redding | CA | Brown | Corvette | Blue Cross | VSP | No | No | |
Clark | Fresno | CA | Blue | Vega | No | Yes | |||
Kari | Los Angeles | CA | Pink | Javelin | Delta | VSP | Yes | No | |
Karen | Sacramento | CA | Blue | Camaro | Blue Cross | Delta | VSP | No | Yes |
Chris | Reno | NV | Blue | MG | Cigna | Yes | No | ||
Mark | Las Vegas | NV | Yellow | GTO | No | No |
Thank you.