Display data for rows where cell consists of whole number

S

steve

I have two worksheets: Master and Detail. Detail lists all of the tasks and subtasks. The Master sheet is tended to show only the main tasks and not the subtasks.

For example,

12
12.1
12.2
13
14
14.1

I only want Master to display 12, 13, 14 etc and all of the designated data for the row.

I haven't been able to figure out how to do it yet.

Any suggestions?
 
D

Don Guillett

I have two worksheets: Master and Detail. Detail lists all of the tasks and subtasks. The Master sheet is tended to show only the main tasks and not the subtasks.



For example,



12

12.1

12.2

13

14

14.1



I only want Master to display 12, 13, 14 etc and all of the designated data for the row.



I haven't been able to figure out how to do it yet.



Any suggestions?

try

Sub showint()
For i = 18 To 22
If Cells(i, 1) <> Int(Cells(i, 1)) Then _
Rows(i).Hidden = True
Next i
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top