Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / April 2008

Tip: Looking for answers? Try searching our database.

Filter every nth record within a worksheet...

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Greg - 22 Apr 2008 03:05 GMT
Hi,

In the past, I have used the Data/Filter/Advance Filter tool to get
unique records based on text in a column. Is there a simple way to
obtain the nth rows in a worksheet? For example, I wish to display the
4th, 8th, 12th, 16th, etc. rows. Or perhaps the 3rd, 6th, 9th, 12th,
etc rows only.

I thought if I could specify a criteria, this might work but I don't
know how to approach this task. Thanks in advance for any help you can
provide.

-Greg
Dave Peterson - 22 Apr 2008 03:12 GMT
I use a helper column and Data|filter|autofilter.

I use a formula like:
=mod(row(),4)
Or
=mod(row(),3)

Then filter to show the 0's, 1's, ...

> Hi,
>
[quoted text clipped - 9 lines]
>
> -Greg

Signature

Dave Peterson

Greg - 22 Apr 2008 14:24 GMT
Hi Dave,

Thanks, this is exactly what I wanted. I didn't know where I was
suppose to place the MOD formula.

-Greg
> I use a helper column and Data|filter|autofilter.
>
[quoted text clipped - 22 lines]
>
> Dave Peterson
MartinW - 22 Apr 2008 09:15 GMT
Hi Greg,

Another way is to use a helper column to extract your data.
With your data in A put this in B1 and drag down.
=OFFSET(A$1,(ROWS($1:1)-1)*4+3,,)
will extract every fourth value

=OFFSET(A$1,(ROWS($1:1)-1)*3+2,,)
will extract every third value

=OFFSET(A$1,(ROWS($1:1)-1)*2+1,,)
will extract every second value

HTH
Martin

> Hi,
>
[quoted text clipped - 9 lines]
>
> -Greg
Greg - 22 Apr 2008 14:26 GMT
Hi Martin,

I appreciate your recommendation. It's now quite what I'm looking for
but may come in handy for something I need to do at a later time.

Best regards,
Greg
> Hi Greg,
>
[quoted text clipped - 25 lines]
>
> > -Greg

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.