LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
Rex Rex is offline
external usenet poster
 
Posts: 26
Default Help with sorting data

That worked perfectly.
Thanks for your help.
--
Rex Munn


"PY & Associates" wrote:

On Apr 29, 11:56 am, Javed wrote:
On Apr 29, 12:34 am, Rex wrote:

I have a spreadsheet with 26 columns of info thats approx. 1000 rows long.
I need to sort by column L and then Column I. When done sorting I will have
multiple names (different every report) in column L and multiple medical
conditions (different every time) in column I. The goal is to keep one row
of each name matched with one entry of each medical condition (sorted for
that name) and hide all the other rows.


Daffy Duck may have 15 entries with a broken elbow and 13 entries with the
flu. I only want one row of each condition associated with Daffy Duck to
appear (it doesn't matter which row) and the rest of the rows would be
hidden. This would continue thru all the names and conditions. Anyone have
any macro suggestions? I use Excel 2003.


--
Rex Munn


Best is to use pivottable.which will sort and return the unique.


something like this

Option Explicit

Sub m()
Dim c As Range
Dim rng As Range
Set rng = Range("I1:I1000")
For Each c In rng
If c = c.Offset(1) And c.Offset(, 4) = c.Offset(1, 4) Then c.RowHeight
= 0
Next c
End Sub
.

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sorting data Jenai New Users to Excel 1 February 25th 08 04:40 PM
Sorting data within the same row. aequanimitas Excel Worksheet Functions 1 August 29th 06 06:13 PM
Sorting data to match existing data Jack C Excel Discussion (Misc queries) 4 May 24th 06 09:48 AM
colors of bar charted data don't follow data after sorting Frankgjr Charts and Charting in Excel 2 January 17th 06 12:33 PM
SORTING DATA Ali Excel Worksheet Functions 2 June 5th 05 05:26 PM


All times are GMT +1. The time now is 04:00 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"