Hide rows

YOUNAN

Board Regular
Joined
Feb 10, 2015
Messages
101
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hello,

i have a table which contains a column for years from 2014 - 2016,showing only year no month no date and cells format is General .
I need a formula to hide the rows containing year in future ( 2020 till 2026 ) when its year 2020 that row should be unhidden and so on.

Thanks in advance.
 
here is a link to the file i am working on.

https://www.dropbox.com/s/6duoygiflg7ttjt/Test 2019.xlsm?dl=0

i want the data in rows 11-17 to be hidden in sheet Statistics, cause we are in year 2019, when its 2020 the data in row 11 should appear and so on, there is no data right now cause there is no data on the other sheets
hope this would help, and thanks for all those who helped me.

if not clear what i want, so if anyone can adjust the following formula "=SUM('60001:60300'!C36)" and make it hide the data the if year is in future for example 2020.

Best regards.
 
Upvote 0

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
YOUNAN,

I have had problems in the past when attempting to download/open an Excel file with macros, with the xlsm file extension.

Please rename a copy of your workbook, with your macro, with the xlsx extension, and, then upload a copy of your file to a free site such as www.box.com or www.dropbox.com.
 
Upvote 0
I am very gratefull to all whom replied and helped me.
I found a solution for my problem.

Best regards
 
Upvote 0
YOUNAN,

We are glad that you found a solution.

Could you share your macro code?

When posting VBA code, please use Code Tags - like this:

[code=rich]

'Paste your code here.

[/code]
 
Upvote 0

Forum statistics

Threads
1,214,944
Messages
6,122,384
Members
449,080
Latest member
Armadillos

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