Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
Gerald Oliver Swift
 
Posts: n/a
Default Can anyone help?

Take a column of data. The data in about half the cells of that column are
all hyperlinks. The data in the rest of the column's cells are not
hyperlinks. And needless to say, all the data (cells) are jumbled up.

Is it possible to sort the data alphabetically so that all the
hyperlink-containing cells are grouped together in one block, followed by
another block of non-hyperlink data?

Any help would be much appreciated.

Gerry


  #2   Report Post  
Posted to microsoft.public.excel.newusers
Bill Ridgeway
 
Posts: n/a
Default Can anyone help?

My first impression is to add a helper column in which there is a formula -
=IF(ISNUMBER(SEARCH("WWW",A1)),0,1)

This will test cell A1 for the existence of www (assuming that this is
included in the cells with hyperlinks) and return a 0 (zero) otherwise it
will return 1. All you need then to do is sort on the helper column and the
data column.

Regards.

Bill Ridgeway
Computer Solutions

"Gerald Oliver Swift" wrote in message
...
Take a column of data. The data in about half the cells of that column are
all hyperlinks. The data in the rest of the column's cells are not
hyperlinks. And needless to say, all the data (cells) are jumbled up.

Is it possible to sort the data alphabetically so that all the
hyperlink-containing cells are grouped together in one block, followed by
another block of non-hyperlink data?

Any help would be much appreciated.

Gerry



  #3   Report Post  
Posted to microsoft.public.excel.newusers
Gary''s Student
 
Posts: n/a
Default Can anyone help?

First enter this tiny UDF:

Function hyp2(r As Range) As String
hyp2 = r.Hyperlinks(1).Address
End Function

Say you data is in column A, then in B1 enter:
=ISERROR(hyp2(A1))
and copy down

The last step is to sort you data first by column B and by column A
--
Gary's Student


"Gerald Oliver Swift" wrote:

Take a column of data. The data in about half the cells of that column are
all hyperlinks. The data in the rest of the column's cells are not
hyperlinks. And needless to say, all the data (cells) are jumbled up.

Is it possible to sort the data alphabetically so that all the
hyperlink-containing cells are grouped together in one block, followed by
another block of non-hyperlink data?

Any help would be much appreciated.

Gerry



  #4   Report Post  
Posted to microsoft.public.excel.newusers
Gerald Oliver Swift
 
Posts: n/a
Default Can anyone help?

Thanks for your help, Bill. Alas a lot of these hyperlinks aren't of the
www. variety.
However, Gary's Student's little UDF has worked a treat!

Regards
Gerry


"Bill Ridgeway" wrote in message
...
My first impression is to add a helper column in which there is a
formula -
=IF(ISNUMBER(SEARCH("WWW",A1)),0,1)

This will test cell A1 for the existence of www (assuming that this is
included in the cells with hyperlinks) and return a 0 (zero) otherwise it
will return 1. All you need then to do is sort on the helper column and
the data column.

Regards.

Bill Ridgeway
Computer Solutions

"Gerald Oliver Swift" wrote in message
...
Take a column of data. The data in about half the cells of that column
are all hyperlinks. The data in the rest of the column's cells are not
hyperlinks. And needless to say, all the data (cells) are jumbled up.

Is it possible to sort the data alphabetically so that all the
hyperlink-containing cells are grouped together in one block, followed by
another block of non-hyperlink data?

Any help would be much appreciated.

Gerry





  #5   Report Post  
Posted to microsoft.public.excel.newusers
Gerald Oliver Swift
 
Posts: n/a
Default Can anyone help?

Thank you, kind sir. Worked perfectly!

Many thanks
Gerry


"Gary''s Student" wrote in message
...
First enter this tiny UDF:

Function hyp2(r As Range) As String
hyp2 = r.Hyperlinks(1).Address
End Function

Say you data is in column A, then in B1 enter:
=ISERROR(hyp2(A1))
and copy down

The last step is to sort you data first by column B and by column A
--
Gary's Student


"Gerald Oliver Swift" wrote:

Take a column of data. The data in about half the cells of that column
are
all hyperlinks. The data in the rest of the column's cells are not
hyperlinks. And needless to say, all the data (cells) are jumbled up.

Is it possible to sort the data alphabetically so that all the
hyperlink-containing cells are grouped together in one block, followed by
another block of non-hyperlink data?

Any help would be much appreciated.

Gerry





Reply
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



All times are GMT +1. The time now is 05:30 PM.

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"