Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 33
Default sort entire row of data to top of sheet automatically

i have done a search and assigned either a 1 or a 0 to each row, 1's are
matches. i want to create a sort that will take all the matches and all
their coressponding data in each adjacent column to the top of the sheet. so
in other word if there is a 1 move the entire row to the top of the sheet.
however, i cannot use the <data, <sort option because i need the sort to be
automatic, because i will be completeing different searches often, therefore
data will change frequently.


A B C D
E F
0 SC677-0001-54.63 26.3125 2 0.5 45/45
0 SC704-0001-54.63 27.3125 0 3 90/90
1 SC862-0001-54.63 27.3125 0 3 90/90
0 SC884-0001-54.63 27.3125 0 0.375 45/45
1 SC917-0001-77.76 38.88125 0 0 90/90

thanks in advance
--

  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default sort entire row of data to top of sheet automatically

Just revise and use the array formula I gave you yesterday for your other
"auto-sort" thread.

--

Regards,

RD
-----------------------------------------------------------------------------------------------
Please keep all correspondence within the Group, so all may benefit !
-----------------------------------------------------------------------------------------------

"bkunes" wrote in message
...
i know i can do that and create an auto matic sort using rank and v lookup,
but how do i get the entire row to follow that individual column
--



"Don Guillett" wrote:

OR
assign 1 and 2 instead and just sort ascending?

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"bkunes" wrote in message
...
i have done a search and assigned either a 1 or a 0 to each row, 1's are
matches. i want to create a sort that will take all the matches and all
their coressponding data in each adjacent column to the top of the
sheet.
so
in other word if there is a 1 move the entire row to the top of the
sheet.
however, i cannot use the <data, <sort option because i need the sort
to
be
automatic, because i will be completeing different searches often,
therefore
data will change frequently.


A B C D
E F
0 SC677-0001-54.63 26.3125 2 0.5 45/45
0 SC704-0001-54.63 27.3125 0 3 90/90
1 SC862-0001-54.63 27.3125 0 3 90/90
0 SC884-0001-54.63 27.3125 0 0.375 45/45
1 SC917-0001-77.76 38.88125 0 0 90/90

thanks in advance
--





  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 33
Default sort entire row of data to top of sheet automatically

i appreciate your help it currently works i kinda am nit picking now to see
if anyone else has any ideas.
--



"RagDyeR" wrote:

Just revise and use the array formula I gave you yesterday for your other
"auto-sort" thread.

--

Regards,

RD
-----------------------------------------------------------------------------------------------
Please keep all correspondence within the Group, so all may benefit !
-----------------------------------------------------------------------------------------------

"bkunes" wrote in message
...
i know i can do that and create an auto matic sort using rank and v lookup,
but how do i get the entire row to follow that individual column
--



"Don Guillett" wrote:

OR
assign 1 and 2 instead and just sort ascending?

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"bkunes" wrote in message
...
i have done a search and assigned either a 1 or a 0 to each row, 1's are
matches. i want to create a sort that will take all the matches and all
their coressponding data in each adjacent column to the top of the
sheet.
so
in other word if there is a 1 move the entire row to the top of the
sheet.
however, i cannot use the <data, <sort option because i need the sort
to
be
automatic, because i will be completeing different searches often,
therefore
data will change frequently.


A B C D
E F
0 SC677-0001-54.63 26.3125 2 0.5 45/45
0 SC704-0001-54.63 27.3125 0 3 90/90
1 SC862-0001-54.63 27.3125 0 3 90/90
0 SC884-0001-54.63 27.3125 0 0.375 45/45
1 SC917-0001-77.76 38.88125 0 0 90/90

thanks in advance
--






  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 33
Default sort entire row of data to top of sheet automatically

i know i can do that and create an auto matic sort using rank and v lookup,
but how do i get the entire row to follow that individual column

--



"bkunes" wrote:

i know i can do that and create an auto matic sort using rank and v lookup,
but how do i get the entire row to follow that individual column
--



"Don Guillett" wrote:

OR
assign 1 and 2 instead and just sort ascending?

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"bkunes" wrote in message
...
i have done a search and assigned either a 1 or a 0 to each row, 1's are
matches. i want to create a sort that will take all the matches and all
their coressponding data in each adjacent column to the top of the sheet.
so
in other word if there is a 1 move the entire row to the top of the sheet.
however, i cannot use the <data, <sort option because i need the sort to
be
automatic, because i will be completeing different searches often,
therefore
data will change frequently.


A B C D
E F
0 SC677-0001-54.63 26.3125 2 0.5 45/45
0 SC704-0001-54.63 27.3125 0 3 90/90
1 SC862-0001-54.63 27.3125 0 3 90/90
0 SC884-0001-54.63 27.3125 0 0.375 45/45
1 SC917-0001-77.76 38.88125 0 0 90/90

thanks in advance
--



  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default sort entire row of data to top of sheet automatically

Another play using non-array formulas ..

Source data assumed in cols A to F, key col = col A

In H1:
=IF(A1=1,ROW(),"")

In I1:
=IF(ROW()COUNT($H:$H),"",INDEX(A:A,SMALL($H:$H,RO W())))
Copy I1 to N1. Select H1:N1, copy down to cover the max expected extent of
source data, say down to row 500? Minimize/hide col H. Cols I to N
auto-returns the required result lines, all bunched neatly at the top.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---

  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 33
Default sort entire row of data to top of sheet automatically

i think you have the idea of what i want, i got the first formula working but
the second index formula is returning nothing
--



"Max" wrote:

Another play using non-array formulas ..

Source data assumed in cols A to F, key col = col A

In H1:
=IF(A1=1,ROW(),"")

In I1:
=IF(ROW()COUNT($H:$H),"",INDEX(A:A,SMALL($H:$H,RO W())))
Copy I1 to N1. Select H1:N1, copy down to cover the max expected extent of
source data, say down to row 500? Minimize/hide col H. Cols I to N
auto-returns the required result lines, all bunched neatly at the top.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---



  #11   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 33
Default sort entire row of data to top of sheet automatically

i think you have the idea of what i want, i got the first formula working but
the second index formula is returning nothing

--



"bkunes" wrote:

i know i can do that and create an auto matic sort using rank and v lookup,
but how do i get the entire row to follow that individual column

--



"bkunes" wrote:

i know i can do that and create an auto matic sort using rank and v lookup,
but how do i get the entire row to follow that individual column
--



"Don Guillett" wrote:

OR
assign 1 and 2 instead and just sort ascending?

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"bkunes" wrote in message
...
i have done a search and assigned either a 1 or a 0 to each row, 1's are
matches. i want to create a sort that will take all the matches and all
their coressponding data in each adjacent column to the top of the sheet.
so
in other word if there is a 1 move the entire row to the top of the sheet.
however, i cannot use the <data, <sort option because i need the sort to
be
automatic, because i will be completeing different searches often,
therefore
data will change frequently.


A B C D
E F
0 SC677-0001-54.63 26.3125 2 0.5 45/45
0 SC704-0001-54.63 27.3125 0 3 90/90
1 SC862-0001-54.63 27.3125 0 3 90/90
0 SC884-0001-54.63 27.3125 0 0.375 45/45
1 SC917-0001-77.76 38.88125 0 0 90/90

thanks in advance
--



  #12   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default sort entire row of data to top of sheet automatically

"bkunes" wrote:
i think you have the idea of what i want, i got the first formula working but
the second index formula is returning nothing


For your easy reference, look at this working sample :
http://www.freefilehosting.net/download/3cd57
AutoSort Lines to Top.xls

If your data starts in row2 down, instead of in row1 down,
then just adapt the formulas slightly like this:

In H2: =IF(A2=1,ROW(),"")
Leave H1 blank

In I2, copied across to N2:
=IF(ROWS($1:1)COUNT($H:$H),"",INDEX(A:A,SMALL($H: $H,ROWS($1:1))))
Select H2:N2, copy down as far as required

--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
  #13   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default sort entire row of data to top of sheet automatically

Max

That is such a neat method of autosorting.


Gord

On Fri, 22 Feb 2008 16:54:00 -0800, Max wrote:

"bkunes" wrote:
i think you have the idea of what i want, i got the first formula working but
the second index formula is returning nothing


For your easy reference, look at this working sample :
http://www.freefilehosting.net/download/3cd57
AutoSort Lines to Top.xls

If your data starts in row2 down, instead of in row1 down,
then just adapt the formulas slightly like this:

In H2: =IF(A2=1,ROW(),"")
Leave H1 blank

In I2, copied across to N2:
=IF(ROWS($1:1)COUNT($H:$H),"",INDEX(A:A,SMALL($H :$H,ROWS($1:1))))
Select H2:N2, copy down as far as required


  #14   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default sort entire row of data to top of sheet automatically

Thanks, Gord.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Gord Dibben" <gorddibbATshawDOTca wrote in message
...
Max

That is such a neat method of autosorting.


Gord



  #15   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 806
Default sort entire row of data to top of sheet automatically

Hello,

I suggest this approach which also works with strings:
http://www.sulprobil.com/html/sorting.html

Regards,
Bernd


  #16   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 33
Default sort entire row of data to top of sheet automatically

hey it works wonderful, but how do i still get the "0" rows to show bellow
the "1"'s
--



"Max" wrote:

Thanks, Gord.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Gord Dibben" <gorddibbATshawDOTca wrote in message
...
Max

That is such a neat method of autosorting.


Gord




  #17   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default sort entire row of data to top of sheet automatically

"bkunes" wrote in message
...
hey it works wonderful, ..

Welcome. But hey, do click the "Yes" button below, won't you? (you forgot to
do this earlier)

.. but how do i still get the "0" rows to show below the "1"'s

Aha, scope creep, they call it.

A new ballgame, which requires tiebreakers.

You could try this slightly revised set-up (still non-array)
on a copy of Sheet1 in the earlier working sample

Source data assumed in cols A to F, key col = col A, as before

In H1:
=IF(A1="","",IF(ISNUMBER(A1),A1-ROW()/10^10,""))

In I1:
=IF(ROW()COUNT($H:$H),"",INDEX(A:A,MATCH(LARGE($H :$H,ROW()),$H:$H,0)))
Copy I1 to N1. Select H1:N1, copy down to cover the max expected extent of
source data, say down to row 500? Minimize/hide col H. Cols I to N will
auto-return the required result lines (lines with 1's, then those with 0's),
all bunched neatly at the top.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatically duplicate and sort data into seperate w.sheet Ting Excel Discussion (Misc queries) 1 June 21st 06 02:14 AM
numeric sort on one sheet, automatically sorts alphabetical on another? Excel Discussion (Misc queries) 2 January 1st 06 05:57 PM
Can excel sort entire rows of data like access? Jack Excel Worksheet Functions 1 September 13th 05 06:17 PM
How do I sort entire spread sheet. Names w/data rstampa Excel Worksheet Functions 4 September 13th 05 03:10 AM
How do I get a hyperlink (entire row) to data sort alphabetically Billie Excel Worksheet Functions 0 July 21st 05 04:30 PM


All times are GMT +1. The time now is 04:14 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"