Delete content of cells / move up remaining data in multiple worksheets based on a range of blank cells in each worksheet

Blanchetdb

Board Regular
Joined
Jul 31, 2018
Messages
153
Office Version
  1. 2016
Platform
  1. Windows
Hello

I have a workbook with multiple worksheets,

I would like to utilize one command button that would clear the content within a row (Column A to Column AA) if the value in Column E of that row is blank. Once the data is cleared, the remaining data would move up to the next blank cell in Column E

I can't have the entire row deleted because I need a formula that resides in Column J to remain for future entries.

example

Worksheet 1
A B C D E F G H I J
Start DateEnd DateAreaProcess#BranchTitleManagerAdvisorLast updated
2023-07-012024-04-01West12345Operations=F3&" / "&A3
2023-07-122024-04-01Atlantic23598=F4&" / "&A4
2023-07-142024-06-02Ontario26589Science=F5&" / "&A5
2023-07-162023-10-11West23652Policy & Programs=F6&" / "&A6
=F7&" / "&A7
2023-07-24TBDQuebec36598HR=F8&" / "&A8

I have 12 similar worksheets with the same configuration as above but with different number of entries in each and are entitled differently based on the Branch name.

One Command Button would do the following.... search each worksheet for rows where the cell in Column E is Blank; IF blank, the content of each cell in that row from (Column A) to (Column I) would be cleared and the remaining data would move up (so, row 5 would now become row 4 AND Row 8 would now become row 7).

Can this be done?

I am able to delete rows where the cell in Column E is blank, but it also removes the formula at the end. Also, I would like one Command Button to do this operation on all sheets at one time since they are configured the same other than the sheet name.

thanks
Dan
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

Forum statistics

Threads
1,215,136
Messages
6,123,251
Members
449,093
Latest member
Vincent Khandagale

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