Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
guilbj2
 
Posts: n/a
Default Sort Without User Input


I have a list of data in 4 columns (A:D) that I want to sort in
ascending order using a numerical value in column B. While it's simple
to do so with the sort command, I'm trying to find a way without doing
so. I'll clarify a little of the overall objective to explain why.

I'm basically taking a report generated externally and trying to create
a template for some non technical co-workers. The level of help I can
expect is for them to basically copy the ore-generated report into cell
A1 of a worksheet and click on a different sheet to see a finished
product.

I've used vlookup and some formulas to modify the data as needed, but
am stuck at finding a way to sort the final list that does not involve
the user manually doing so. Any ideas?


--
guilbj2
------------------------------------------------------------------------
guilbj2's Profile: http://www.excelforum.com/member.php...fo&userid=6043
View this thread: http://www.excelforum.com/showthread...hreadid=541335

  #2   Report Post  
Posted to microsoft.public.excel.misc
Abode
 
Posts: n/a
Default Sort Without User Input

The easiest way I know of is to write a sub and link that to a button (Ctrl +
Shift + C) and tell them to press that button any time they need to sorted.
If thats alright and you don't know how to make a sub then post an example of
your spreadsheet and how youd like the order. Perhaps then we could help
further. Someone else may know of a better sollution though. I'm very new
to Excel and VBA.
"guilbj2" wrote:


I have a list of data in 4 columns (A:D) that I want to sort in
ascending order using a numerical value in column B. While it's simple
to do so with the sort command, I'm trying to find a way without doing
so. I'll clarify a little of the overall objective to explain why.

I'm basically taking a report generated externally and trying to create
a template for some non technical co-workers. The level of help I can
expect is for them to basically copy the ore-generated report into cell
A1 of a worksheet and click on a different sheet to see a finished
product.

I've used vlookup and some formulas to modify the data as needed, but
am stuck at finding a way to sort the final list that does not involve
the user manually doing so. Any ideas?


--
guilbj2
------------------------------------------------------------------------
guilbj2's Profile: http://www.excelforum.com/member.php...fo&userid=6043
View this thread: http://www.excelforum.com/showthread...hreadid=541335


  #3   Report Post  
Posted to microsoft.public.excel.misc
Max
 
Posts: n/a
Default Sort Without User Input

Here's one play to achieve this, using non-array formulas

Assume source data is in sheet: X, within cols A to D,
data from row1 down to a max expected row100

In another sheet: Y,

Put in A1:
=IF(ISERROR(SMALL($E:$E,ROW(A1))),"",
INDEX(X!A:A,MATCH(SMALL($E:$E,ROW(A1)),$E:$E,0)))
Copy A1 to D1

Put in E1: =IF(X!B1="","",X!B1+ROW()/10^10)

Select A1:E1, fill down to E100

Y auto-returns an ascending sort of what's in X, sorted by X's col B
with all results neatly bunched at the top
(Hide away the criteria col E, if desired)

Then, to refresh the source data in X,
just select and clear with the Delete key,
(but do not delete cols, as this will foul up the formulas)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"guilbj2" wrote:

I have a list of data in 4 columns (A:D) that I want to sort in
ascending order using a numerical value in column B. While it's simple
to do so with the sort command, I'm trying to find a way without doing
so. I'll clarify a little of the overall objective to explain why.

I'm basically taking a report generated externally and trying to create
a template for some non technical co-workers. The level of help I can
expect is for them to basically copy the ore-generated report into cell
A1 of a worksheet and click on a different sheet to see a finished
product.

I've used vlookup and some formulas to modify the data as needed, but
am stuck at finding a way to sort the final list that does not involve
the user manually doing so. Any ideas?


--
guilbj2
------------------------------------------------------------------------
guilbj2's Profile: http://www.excelforum.com/member.php...fo&userid=6043
View this thread: http://www.excelforum.com/showthread...hreadid=541335


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
user form question: text box to display result BigPig Excel Worksheet Functions 0 February 25th 06 08:17 PM
Generating dynamic charts based on the user input shivan4u Charts and Charting in Excel 4 February 13th 06 12:43 PM
How can I sort multiple times Sorting data Excel Worksheet Functions 2 February 9th 06 05:22 PM
Restrict-Filter-Limit-Validate user input in Excel Dr. Thom Excel Discussion (Misc queries) 0 January 22nd 06 08:06 PM
Cells User Select Locked after upgrade to Excel 2002 TWilson Excel Discussion (Misc queries) 1 August 5th 05 12:22 PM


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