Copy a sheet with hidden rows and past to another sheet keeping formula at some cells

AndyVoClosser

New Member
Joined
Oct 30, 2023
Messages
9
Office Version
  1. 365
Platform
  1. Windows
Dear community,

I have encountered a problem to copy a sheet with hidden rows keeping the formula at some cells. I describe my problem as follows: I have a worksheet with the range "A1:AJ1500". At the row 1500, there are some cells to calculate the sum function for some columns. For example, cell B1500 = sum(B1:B1400) and cell H1500 = count(H1:H1400, X)... so on.

Now, I want to hide some rows, for instance Rows A100:AJ150 are hidden. Then copy the visible cells to an another sheet keeping the formulas at the row 1500. I have tried the "move or copy" sheet method. It works but it does not what I want. I want to have a copy button in my sheet with a macro. Thus, the users can copy the sheet to pass to their workbook for using. I appreciate any comments for solving my problem. Thank you so much.
Andy
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
You can try changing the formulas to subtotal. For example: =subtotal(109,B1:B1400)
This will ignore any hidden rows in the sum.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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