Deleting blank rows and have formulas but have no value

josros60

Well-known Member
Joined
Jun 27, 2010
Messages
780
Office Version
  1. 365
How can delete blank rows from a range that contains formulas but have no value using VBA, any sample please.

Thank you
 
The code in post #10 does that for me. I copied your sheet from post #14 to my sheet then copied that column H formula down column H to row 80.
I then ran the code and then the only rows with anything left in them were rows 15 to 20.

If that is not happening for you then it would seem that there is something different between your actual data/workbook and what you gave us in post #14. If there is something different then you are going to need to give us some of that different data or at least tell us what the difference is.

A couple of other things to consider that have been raised before but not addressed.

@josros60
Are you sure that you tried the post #10 code?
If you have and it did not do what you want, can you post another mini-sheet that includes some extra rows like you are describing in words but so far not including in your mini-sheet?

Now I'm a little confused as to whether your data is in a formal Excel table (ListObject) or just a normal range that you are referring to as a "table".
 
Upvote 0

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"

Forum statistics

Threads
1,214,929
Messages
6,122,317
Members
449,081
Latest member
tanurai

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