Hide Row Based On Cell Value?

Jan 2, 2014

automatically hiding a row(s) based on a cell value.

I have various numbers on column K, rows 12-47.

Example:
k12=680
k13=76.38
k14=0
k15=55.33
k16=0
etc.

In the above example, I would like row 14 and 16 to automatically hide (and unhide if the formula calls for the cell to be greater than 0)

View 5 Replies


ADVERTISEMENT

Row Hide Based On Cell Value?

Mar 21, 2014

formula on the attached spreadsheet (Questions UK) I would like the following to happen:

If D3 is YES then rows 91 to 319 hide
If D3 is NO then rows 6 to 89 hide
If D4 is YES then rows 6 to 89 hide and 164 to 319 hide
If D4 is NO then rows 91 to 162 hide
If D5 is YES then row 6 to 162 hide
If D5 is NO then row 164 to 319 hide

View 6 Replies View Related

Hide Row Based On Cell Value ..

Jan 9, 2009

I would like a macro where I it will examine Cells A8 down to A27 to see if there is a value. If there isn't a value, I want that row hidden. I would like for it to always run (i.e. if a value is put into that cell, the row reappears, otherwise it is always hidden).

View 9 Replies View Related

Way To Hide Row Based On The Value Of A Particular Cell

Oct 27, 2003

I have a worksheet with an age row of 20 - 99 (and a bunch of other data)

A user enters the starting age, and then the sheet fills in the rest of the cells.

If the user enters 50, the age fills from 50 to 130.

Before printing, I manually hide the rows (using the hide row command) over age 99.

Is there an easy way to do this without macros? I am Excel impaired!

I tried using Auto filter - but I have to rerun the filter each time (it is not automatic).

View 9 Replies View Related

Hide Worksheets Based On A Cell Value?

Jan 29, 2014

I am in need of a macro to hide worksheets that do not match a certain cell value (which I have range named) in the "input data sheet". If this value matches cell value on the other worksheets, then hide all other worksheets and keep the "valid" worksheet visible

NVS_SCN is the range name that needs to be compared to the value in P4 of worksheets 2 thru 4

Example: NVS_SCN (located on the LANDFILL_DATA wksht) = RC_SOUTHLF
I want the Macro to hide all worksheets except for the South Region LF_VOL_Trend sheet,

if NVS_SCN = RC_MWESTLF then hide all but Midwest Region LF_Vol_Trend

I am attaching a file. I have seen macros to "unhide" or "Hide Rows or Columns" but I am not adept enough to figure out how to utilize range names and hide all but the one I want. As for "recording" the macro, I didn't know how to do the compare part.

View 13 Replies View Related

Hide Row Based On Other Cell Value (Filter)

May 5, 2009

i have been able to get most of my VB work on my own (i'm learning). Currently I'm having a bit of difficulty in hiding a row based on a cell value, potentially due to cells being merged.

I'd like to select from a dropdown cell to filter on a row's value. Attached you will find a sample sheet that works named "Working" in it's current state and the one "TEST" that does not filter every other line item.

View 3 Replies View Related

Hide Worksheet Based On The Value In A Cell

Jun 19, 2009

If Sheet1!A1 = FALSE, I want to hide Sheet2. If the value of Sheet1!A1 changes to TRUE, I want Sheet2 to be visible.

View 2 Replies View Related

Hide Rows Based On Value In Cell G2

Nov 18, 2011

I am using windows 7, and excel 2007. I want to hide rows bases on a value in cell G2 which is a date field

Example, if G2 is greater than 11/16/2011 then hide rows 1969 through 2032.

View 6 Replies View Related

Hide Row Based On Text In Cell

Feb 8, 2012

I am looking for some macro code that will hide all rows except for those with certain text (i.e. W-NT or S1-DT). The cell range to search is C22-OU500.

View 5 Replies View Related

VBA Hide Rows Based On Cell Value

Mar 27, 2012

With a piece of code that will hide an entire row if a cell value in that row does not equal the cell value of another row.

Example

Cell d3 = Feb 2012.

Range C5:c252, = a mix of Feb 2012 and Mar 2012.

I want to hide all the Mar 2012.

However if Cell d3 = Mar 2012 then the range C5:C252 will also = Mar2012

I want to see all the rows within that range.

View 4 Replies View Related

Hide Rows Based Upon Value In Cell?

Apr 9, 2014

I am trying to auto hide rows in a spread sheet. the start row will always be 55 and the end row will be 55 + the value of cell A38 in sheet titled "Main".

View 2 Replies View Related

Hide Object Based Cell Value

Sep 14, 2006

I have 2 equation objects created with microsoft equation 3.0. I have named the equation objects Eqn9 and Eqn10. I also have an if function, what i would like to do is if a number in cell AC58 is greater than 0.3 a macro runs and hides Eqn9 and shows Eqn10, similarly if the number in cell Ac58 is less than or equal to 0.3 the macro hides Eqn 10 and shows Eqn9.

View 8 Replies View Related

Hide Rows Based On Cell Value Inputted From Another Tab

Dec 13, 2013

In this example on Sheet 2, I'm trying to hide rows 1-6 if 'E6' is 0, and hide rows 15-26 if 'E18' is 0. These cell values are equal to the same cell in Sheet 1.

I've tried different codes I've found online, but I'm not very experienced with VBA so I can't get it to work. I can get rows 1-6 to hide, but it doesn't do it automatically whenever a zero is inputed into Sheet 1. It only works if I enter something into another cell on Sheet 2.

VB:

Private Sub Worksheet_Change(ByVal Target As Range)
If Range("E6") = 0 Then
Rows("1:6").Select
Selection.EntireRow.Hidden = True

[Code]...

View 5 Replies View Related

Hide Or Show An Image Based On A Cell Value

Mar 31, 2009

I have a spreadsheet with two bitmap images inserted into it. In cell E2, I will enter a number, either a 1 or a 2. if I enter a 1, I want only the first image to be visible. If I enter a 2, I only want the second image to be visible. Is there a way to accomplish this (hopefully without the need for macros)? I've attached a spreadsheet as an example of what I'm trying to do. Also, note that I'd like the images to be stacked on top of each other so that they show up in the same place regardless of wether there's a 1 or a 2 in cell E5

View 13 Replies View Related

How To Hide Command Button Based On Another Cell

Jan 16, 2010

I have a command button on a worksheet, not in a user form. I know the command button has a property called Visible that I can manually set to False.

I want to set this property to False if the value of the B3 cell is less than 2.000

View 7 Replies View Related

Hide Command Button Based On Another Cell?

Jan 28, 2014

How to hide command button based on another cell?’ [URL] .....

This works faultlessly but for only 1 Button. I tried adding in the code again for a second Button but it creates a conflict. I made a slight adjustment to your original code, to show the button when the cell is populated, which works well…

[Code] .....

Any way I can:-

1. Add additional buttons which reference their own cell?

CommandButton4 – H9
CommandButton6 – I9
CommandButton2 – Q9
CommandButton3 – S9

2. And add one button which activates based on one of 3 cells?

CommandButton1 – J9 &/or V9

View 5 Replies View Related

How To Hide/undide A Row, Based On A Cell Value (Macro)

Jun 8, 2009

I have the data as follows:

columns B,c,d,e,f,g,h contains data and column A is empty.

What i want is

1. Initially columns c,d,e,f,g,h should be hidden. Only a & b should be visible
2. if i enter a 0 (zero) in A1, then, columns B,c,d,e,f,g,h should remain hidden, for row-1.
3. if i enter a 1 (one) in A1, then, columns B,c,d,e,f,g,h should be visible, for row-1.

View 10 Replies View Related

How To Hide/unhide Rows Based On Cell Value

Jun 17, 2009

I'm using column A as a reference. My data starts in cell A3.

Whenever theres a zero in any cell in column A I would like that row to hide.
If the row was hidden and the value changes to any number greater than zero I need the row to unhide.

I can record two macros for the hide/unhide part of this but I dont understand how to run them based on cell value.

View 14 Replies View Related

How To Hide Command Button Based On Another Cell?

Jan 16, 2010

I have a command button on a worksheet, not in a user form. I know the command button has a property called Visible that I can manually set to False.

I want to set this property to False if the value of the B3 cell is less than 2.000

View 2 Replies View Related

Hide & Unhide Columns Based On A Cell Value

Feb 21, 2010

worksheet I am working on at the moment, basically if row 5 has a 0 displayed I want that column to hide, but if row 5 has text of any value displayed I want it to unhide, the range is E5 to BA5 across.

I have draft VBA code as follows:

View 9 Replies View Related

Macro To Hide Rows Based On Cell Value

Jun 17, 2003

Like to create a macro (button) to hide / unhide rows based on a cell value
Example
A1=No then hide roa A
C1=No then hide row c

View 9 Replies View Related

Auto Hide Columns Based On Cell Value

Mar 12, 2012

I got an excel, with a "validation list" in a certain cell.

Users can select value1, value2 or value3. based on this value, some columns will have to unhide (standard= hidden)
(only for value2 this is the case).

I used the worksheet_change event to determin the value, but so far I'm only getting it to hide...

Code:

Private Sub Worksheet_Change(ByVal Target As Range)
If C24 = "value2" Then
Columns("H:O").Hidden = False
Else
Columns("H:O").Hidden = True
End If
End Sub

View 5 Replies View Related

Display Or Hide Shapes Based On Cell Value Without VBA?

Aug 8, 2012

I have a map of the US composed of 50 shapes (one for each state). I need each shape to appear or disappear based on a value in a corresponding cell. I can't use VBA for this as it needs to function for users in a high-security Excel 2003 which doesn't allow macros.

View 1 Replies View Related

VBA Hide Text Boxes Based On Cell Value?

Oct 1, 2012

I have the code below on a worksheet to modify a form based if it's a Purchase order or not. It works but it seems like it could be much shorter. I tried several different ways to write it but I can't get it to work any other way.

Code:

Private Sub Worksheet_Change(ByVal Target As Range)
' If cell E5 = "Purchase Order" remove sales tax % from E33 and Hide Text Boxes 1 and 8
If Target.Address = Range("E5").Address Then
If Target = "Purchase Order" Then
Range("E33").Value = 0
With ActiveSheet.Shapes("Text Box 1")
If ActiveSheet.Range("E5") = "Purchase Order" Then
.Visible = False

[code].....

View 3 Replies View Related

Hide And Unhide Columns Based On Cell Value

Mar 4, 2013

I need to write a macro that will hide and unhide columns based on a cells value. I know how to write it to hide and unhide rows, but i can figure it out for columns.

For the rows I am using the following:

Sub HideRowsSavings()
Dim LR As Long, i As Long
Application.ScreenUpdating = False
With Sheets("Savings #4")
LR = .Range("A" & Rows.Count).End(xlUp).Row

[Code] ......

View 1 Replies View Related

Auto Hide Rows Based On Cell Value In Same Row

Apr 1, 2013

I am creating a copy of a spreadsheet (table format) in a separate workbook using formulas that will update the copy as the original updates. I would like to auto hide the rows that have the value "Returned" in column G. I have columns A - G , rows 2 - 2000. The value "Returned" is the result of a simple = formula. Is there some way to accomplish this?

View 4 Replies View Related

VBA To Hide Rows Based On Cell Content

Jun 23, 2006

If I have data in range A1:Z99 I want to write a macro to hide all the rows that have a zero in the A column.

View 9 Replies View Related

Hide/Unhide Rows Based On 1 Cell

Jul 3, 2007

I'm trying to find a way to hide rows based on a condition in one cell.

Basically I have a pull-down list with Yes or No in it. I want to hide rows 52 through 57, if No is selected, and make the rows reappear if Yes is selected.

View 9 Replies View Related

Hide Columns Based On Cell Content

Apr 3, 2008

I'm sure this is an easy one, but I have never done this before. I need to know the best way to hide (for example) Columns U:W if cell U3 is blank.

View 9 Replies View Related

VBA To Hide/Unhide Sheets Based On Cell Value

Jun 2, 2008

I have a workbook which has roughly 50 sheets. What I'm trying to do is automatically hide/unhide sheets based on the cell values in the first sheet. So in sheet1 cell A1 i would a value of FALSE which would trigger sheets1, 2, & 3 to hide, when that value changes to TRUE then those same sheets would unhide. I need to replicate that for the 10 corresponding sets of sheets, but for each grouping of sheets a different cell in sheet1 would be the trigger, cell A2 = sheets 4 - 10, cell A3 = sheets 11 - 20, etc.

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved