Sparcle
RE: Second last post
I am confused as to why you need a macro
If it is to expand the range to the bottom of the Data Double Clicking as I described above does that easily
If you don't want to see the bottom cells below the data change
E6: =IF(D6="","",IF(D6<F5,F5,D6))
F6: =IF(D6="","",E6+(C6/$C$3))
will hide the cells below the data if it is reduced back by a few rows
RE: Last post
You file has nothing in F30 or J5 or no advanced filter ?