Hide A Row With Number In Cell C2
Feb 21, 2008
I have a button from the Forms toolbar.
If I enter a number in cell C2 "say 1859' then hit a button... An input box comes up I have to enter Team number Once entered, I would find the 1859 in a list of data Go to the Column with "teams" (Column Q) enter the input number then hide this row that has the 1859.
View 9 Replies
ADVERTISEMENT
Jul 17, 2007
If I have a value in A1 and run a macro [button], I want to have it hide a number of rows.
Each number is one column.
eg if A1 = 2 then B:C are visible, D:IV Hidden
if A1 = 3 then B:D are visible, E:IV Hidden
if A1 = 4 then B:E are visible, F:IV Hidden
up to 200 columns.
I tried it as a select case, but it is limited to just 22 cases which obviously not enough.
View 9 Replies
View Related
Sep 11, 2009
when i type 100 in the cell & press enter it automatically change to 1..and when i type 1000 i change to 10.
i have select B1 to B5 then hide it.then i click A1.how do it unhide it?
View 5 Replies
View Related
Feb 28, 2012
Instead of using conditional format, I would like to use a custom format to hide the number 1. Is this possible?
Basically only three things can be in this cell =IF(D8"",IF(D8="CIV",1.077,1),"")
I need to mask the 1, otherwise show the 1.077. The reason I am not using conditional formatting is because there is a condition on the cell already which applies a pattern style and a font will not match up to the pattern.
View 4 Replies
View Related
Jan 10, 2012
I'm looking for a macro to hide and unhide columns..
Book1 is where I want my macro to sit with 1 cell showing the period number 1-12.
Book2 is where my data is dispalayed (I've got about 44 of these to update)
B4:M4 in book 2 (and all data sheets) has the period number in it.
I would like to be able to update the period in book1, run the macro, and end up with book 2 showing column A, the current period column, column N.
I'm fairly new to writting macro's and think I'll be able to addapt the formula to work for 44 sheets once I have it working for 1!
View 9 Replies
View Related
Sep 15, 2004
I am trying to create an input sheet with a specified number of rows. My plan was to hide all the empty rows in the table and ask how many rows were required in the table. A button would then be pressed to unhide all the relevant rows thus giving a table of the correct size. My best effort so far looks something like this:
Sub UnhideRows()
Dim i As Integer
Dim myRow As Integer
myRow = Range("A1") + 2
Application. ScreenUpdating = False
For i = Selection.Rows.Count To 1 Step -1
If WorksheetFunction. Sum(Selection.Rows(i)) > myRow Then
Selection.Rows(i).EntireRow.Hidden = True
End If
Next i
Application.ScreenUpdating = True
End Sub
the cell to give the size of the table is A1 and the table starts in A3. The first cell in each row has an index number (=row() - 2), all other cells would be empty to begin with. My attempt did not work.
View 5 Replies
View Related
Nov 4, 2013
I have a workbook with several sheets that have basically the same template but some have many more rows that others..
I am using the following code to hide columns based on cell value to "tidy it up" for printing.
Code:
Dim i As Long
For i = 170 To 2 Step -1
Cells(39, i).EntireColumn.Hidden = Cells(39, i).Value = "N"
Next i
I would like the VBA to determine what the row number is based on the row header e.g. "Prioritised Courses", rather than having to maintain the code each time new rows are added.
I would put it at the top or way down the bottom, but multiple (even less excel skilled) users will be using the "hide columns" functionality.
View 6 Replies
View Related
Aug 13, 2013
SAMPLE FILE "error_finder.xlsx (36.5 KB)" attached...
The VP of our company needs me to create a spreadsheet.
For this s/s I need the following:
Imagine 2 sheets in Excel...
sheet1
sheet2
sheet2 has sequential numbers in column1 starting in row2 with the number 1 until wherever..., so cell A2 has number 1, cell A3 has number 2, etc...
Manually, a user has to fill in certain text next to a number.
This for example would look something like this:
_|A| B
-|-|-----------------------------------|
1| | Error-description
-|-|-----------------------------------|
2|1| Whatever the 1st error would be...|
-|-|-----------------------------------|
3|2| Whatever the 2nd error would be...|
-|-|-----------------------------------|
4|3| Whatever the 3rd error would be...|
-|-|-----------------------------------|
5|4|
-|-|-----------------------------------|
6|5|
-|-|-----------------------------------|
and so on...
All this would be on sheet2
In a cell on sheet1 I now need the number from column A displayed, that has the latest entry in column B.
In the example above this would have to be the number 3 in cell A4, because right next to it (in cell B4) is the last entry "Whatever the third error would be..."
Addition: There are several sheets, each sheet stands for one error listed on sheet1 in column A
sheet1 for example would look like this:
_|____A____|_B_|_C_|_D_|
-|---------|---|---|---|
1|_________|833|933|934|
-|---------|---|---|---|
2| error 1 |___|___|___|
-|---------|---|---|---|
3| error 2 |___|___|___|
-|---------|---|---|---|
4| error 3 |___|___| 3 |
-|---------|---|---|---|
In this example, because "whatever error" (cell B2 to B4 on sheet2) was found on press 934 was the 3rd error (cell A4), the number 3 (cell A4) would have to be populated on sheet1 in cell D4.
View 9 Replies
View Related
Feb 5, 2009
Cell A1 = 3
Cell A2 = 4
Is there a formula to calculate
(3*4)+(2*4)+(1*4)
I need to multiply every integer less than the number in cell A1 and greater than zero by the number cell in A2. I was thinking factorial, but that's not it... Can't remember from my math days.
View 3 Replies
View Related
Jul 18, 2013
I have numbers in b2 to b5 say
10
22
35
50
I have numbers in c2 to c5 say
1000
1580
3000
45000
I have numbers in cells d1 to kq1 (1 to 300) d1=1, e1=2, f1=3 and so on
What I want to do is:
In D2 through to kq2 it puts the number in to the cell that correspnds to a multiple of the number in b2.
That would put 1000 in cells m2,w2,ag2,aq2, ba2 and so on
In D3 through to kg3 it it puts the number in to the cell that corresponds to a multiple of the number in b3
that would put 1580 in cells y3,au3,bq3,cm3,di3 and so on
View 2 Replies
View Related
Jun 18, 2009
I want to create a macro that checks whether a specified range of columns is hidden, and
a) hide them if they are not hidden, or
b) unhide them if they are hidden,
i.e. toggle the Hide state.
What method can I use to query the hidden state of a selected range of columns and return a boolean value?
View 2 Replies
View Related
May 26, 2014
I have a macro in which i can enter the rows i want to hide.
If i want to hide "position 32" i have to enter the number 8 of the row. This works fine. But now if i want to hide the "position 32" from Sheet1 it also should hide the rows 4-8 from Sheet2 [Data with 32].
Or if i hide "position 34" in Sheet1 [row 10] it also should hide the rows 14-18 in Sheet2.
View 14 Replies
View Related
Jun 9, 2013
Sub Button294_Click()
If Sheet1.Range("A34:A94") = "HIDE" Then
For Each cell In Range("A27:A94")
If UCase(cell.Value) = "HIDE" Then
cell.EntireRow.Hidden = True
End If
End Sub
View 4 Replies
View Related
Oct 6, 2009
How do I hide the number in one cell? I still need that number to exist as it has been included in a sum so I can't delete it.
View 2 Replies
View Related
Jan 11, 2010
How do I get a row to hide if the cell in column I is "Done" ?
View 9 Replies
View Related
Jan 4, 2013
I have to hide the formula in the cell. nobody should see the formula in the cell without password.
View 1 Replies
View Related
Feb 19, 2013
how to hide a value on a cell when another cell is not yet populated?
like for example:
A1 is Blank A2 has a formula of workday(A1,2) a date will appear on the A2 cell and I want not to show or be hidden the date in A2 until A1 is populated
View 3 Replies
View Related
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
Mar 24, 2014
I would like to run a macro that searches column [AS] and hides any rows in that column that contain "0".
View 6 Replies
View Related
Dec 23, 2008
How would I write a macro to hide a range of rows If a cell value is zero, then do the same for five additional ranges of rows?
In my words:
If AT214=0, hide rows 214 to 244
and
If AT245=0, hide rows 245 to 278
and
If AT279=0, hide rows 279 to 311
and
If AT312=0, hide rows 312 to 344
and
If AT345=0, hide rows 345 to 377
and
If AT378=0, hide rows 378 to 410
View 4 Replies
View Related
Jul 28, 2009
I'm looking for a way to hide a row if the cell is column A is empty. On the attached sheet I'm looking to hide the empty rows below the last vehicle registration.
View 2 Replies
View Related
Feb 5, 2010
What i want to is add some code into a worksheet where it hides rows 5:35 and shows rows 37:47 if the value of cell C3 = "Races" but shows rows 5:35 and hides rows 37:47 if the value of cell C3 s not "Races".
View 2 Replies
View Related
Jan 31, 2013
I would like to hide all rows under a given cell value.
For example, if Range("BJ9")=9.
I want to hide all cells in range "A10:A56".
More generally, I would like to hide all cells Range("A" & i) for i=Range("BJ9").Value To 256.
View 7 Replies
View Related
Jun 29, 2013
Is there a way to hide a certain amount of rows (122:136) when cell R116 has no value, but with not having to enable macros?
View 4 Replies
View Related
Oct 24, 2013
I am trying to write a macro which will hide and show row 15 based on the value which gets input into E9.
Part 1 here is working and when E9 = "DP Deliverable" row 15 does appear, but on the converse, when I input something besided DP Deliverable into E9, row 15 does not hude.
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$E$9" Then
If Range("E9").Value = "DP Deliverable" Then
Call Show_DP
If Target.Address = "$E$9" Then
If Range("E9").Value "DP Deliverable" Then
Call Hide_DP
End If
End If
End Sub
View 4 Replies
View Related
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
View Related
May 15, 2007
Dim varFind As Variant
Set varFind = Cells.Find(What:="Closed", After:=Range("A1"), LookIn:=xlFormulas, LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False)
If Not varFind Is Nothing Then Range(varFind.Address) = Hidden
something like
Then Range(varFind.Address) = Range(varFind.Address).row.Hidden
View 9 Replies
View Related
Apr 21, 2008
I was wondering if it is possible to hide workbook tabs according to cell value?
Take for instance, if cell B30 in sheet "Fee Schedule Finder" is blank then the sheet "ES Schedule" is hidden. I know it would be some sort of VBA code but I am lost on this one.
If I didn't explain well enough please let me know!
View 9 Replies
View Related
Jul 2, 2008
I need a macro that hides the rows where two cells individually and unrelatedly has a cellvalue=zero.
I have pasted an example of what i mean. The rows coloured needs to be hided.
CompanyRatingMicrosoft0Apple1504000IBM200Dell0015
View 9 Replies
View Related
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