Worksheet data sorted on another worksheet

  • Thread starter Thread starter WMB
  • Start date Start date
W

WMB

All,

Can't seem to get this going. Have some data on 1 worksheet, named cgg, 25
columns, 25 rows.

Would like to have this same data but sorted on column 3 on another
worksheet called cggsorted.

Any idea how best to achieve this, thanks,

Martin
 
Martin,

Enter a new column A on sheet gcc, and in that coulmn, enter RANK functions to rank the value in
column 3, to match the size of your table:

=RANK(C1,$C$1:$C$25,TRUE)
or
=RANK(C1,$C$1:$C$25,FALSE)

(TRUE or FALSE depends on how you want the data sorted, ascending or descending). You also need to
decide how to handle ties....

Anyway, assuming you have no ties, on sheet cggsorted, enter this formula in cell A1

=VLOOKUP(ROW(), cgg!$A$1:$Z$25, COLUMN()+1,FALSE)

and copy to cggsorted A1:Y25

HTH,
Bernie
MS Excel MVP
 

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

Back
Top