Hiding sections

timsims

Board Regular
Joined
Nov 9, 2009
Messages
84
Hi,

I'm playing around with a spreadsheet at the moment and I'm trying to hide a section unless it's required. I want to put an option in if the following section is required, if yes is selected it shows up but if no is selected it remains hidden.
Excel Workbook
ABCDEF
25Edging
26 -
27Type of edgingTotal linear metresEdging typeCost per metreTotal
2815mmStraight1.220.00
2915mmStraight1.220.00
3015mmStraight1.220.00
3115mmStraight1.220.00
32Edging glueN/A1.00N/A0.00
33Sub total =0.00
34
Secsi
Excel 2007
Cell Formulas
RangeFormula
A28=VLOOKUP(B4,B122:C128,2,FALSE)
A29=VLOOKUP(B4,B122:C128,2,FALSE)
A30=VLOOKUP(B4,B122:C128,2,FALSE)
A31=VLOOKUP(B4,B122:C128,2,FALSE)
D28=INDEX(B116:F118,MATCH(C28,A116:A118,0),MATCH(B4,B115:F115))
D29=INDEX(B116:F118,MATCH(C28,A116:A118,0),MATCH(B4,B115:F115))
D30=INDEX(B116:F118,MATCH(C28,A116:A118,0),MATCH(B4,B115:F115))
D31=INDEX(B116:F118,MATCH(C28,A116:A118,0),MATCH(B4,B115:F115))
F28=SUM(B28*D28)
F29=SUM(B29*D29)
F30=SUM(B30*D30)
F31=SUM(B31*D31)
F32=SUM(B32*10)
F33=SUM(F28+F29+F30+F31+F32)


Anyone able to help?
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Hi Timsims,

You can use Data > Group to hide/unhide blocks of rows manually. But if you want the hiding/unhiding to occur automatically based on Yes/No entered in a cell or checkbox control, you will need a few lines of VBA code. But you didn't specify where you are entering yes/no or what blocks of code you want hidden so I can't be more specific.

Damon
 
Upvote 0

Forum statistics

Threads
1,224,517
Messages
6,179,233
Members
452,898
Latest member
Capolavoro009

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