#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 13
Default Excel Sorting help

I hope someone can help me with this as simply as possible. I would
prefer to stay away from VB (don't know how to use it very well), but I
will do what I need.

I have a excel sheet (Sht1) that lists out the assets owned by a
family. Column A is the Asset Name (IRA 1, IRA 2). And Column C
indicates which family member owns the Asset (John, Jane)

I need to keep this list intact and unsorted on Sht1 - 'Sht1' is an
input sheet that will vary in length. However, I want to be able to
relist all of John's assets on 'Sht2' and all of Jane's assets on
'Sht3'.

Sht1:

___A___ ___B___
1| Asset Name Asset Owner
2| IRA 1 JQD
3| IRA 2 AFD
4| Roth 1 JQD
5| Roth 2 JQD
6| Brok 1 JQD
7| Brok 2 AFD

**I want this sheet to be a 'cell reference' of inputs for two other
sheets.

I want 'Sht2' to look like:
___A___ ___B___
1| Asset Name Asset Owner
2| IRA 1 JQD
3| Roth 1 JQD
4| Roth 2 JQD
5| Brok 1 JQD



and 'Sht3' to look like:
___A___ ___B___
1| Asset Name Asset Owner
2| IRA 2 AFD
3| Brok 2 AFD

Here's the major twist, the number of owners will always be two (JQD or
ASD), but the number of Assets and the quantity owned by each owner can
vary. Is there a function that will place them on the separate pages?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Excel Sorting help

I'd try to keep my data on one worksheet. Then use Data|Filter|autofilter to
display/print what I want.

You may want to look at the way Ron de Bruin and Debra Dalgleish approached it:

Ron de Bruin's EasyFilter addin:
http://www.rondebruin.nl/easyfilter.htm

Code from Debra Dalgleish's site:
http://www.contextures.com/excelfiles.html

Create New Sheets from Filtered List -- uses an Advanced Filter to create
separate sheet of orders for each sales rep visible in a filtered list; macro
automates the filter. AdvFilterRepFiltered.xls 35 kb

Update Sheets from Master -- uses an Advanced Filter to send data from
Master sheet to individual worksheets -- replaces old data with current.
AdvFilterCity.xls 55 kb

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

wrote:

I hope someone can help me with this as simply as possible. I would
prefer to stay away from VB (don't know how to use it very well), but I
will do what I need.

I have a excel sheet (Sht1) that lists out the assets owned by a
family. Column A is the Asset Name (IRA 1, IRA 2). And Column C
indicates which family member owns the Asset (John, Jane)

I need to keep this list intact and unsorted on Sht1 - 'Sht1' is an
input sheet that will vary in length. However, I want to be able to
relist all of John's assets on 'Sht2' and all of Jane's assets on
'Sht3'.

Sht1:

___A___ ___B___
1| Asset Name Asset Owner
2| IRA 1 JQD
3| IRA 2 AFD
4| Roth 1 JQD
5| Roth 2 JQD
6| Brok 1 JQD
7| Brok 2 AFD

**I want this sheet to be a 'cell reference' of inputs for two other
sheets.

I want 'Sht2' to look like:
___A___ ___B___
1| Asset Name Asset Owner
2| IRA 1 JQD
3| Roth 1 JQD
4| Roth 2 JQD
5| Brok 1 JQD

and 'Sht3' to look like:
___A___ ___B___
1| Asset Name Asset Owner
2| IRA 2 AFD
3| Brok 2 AFD

Here's the major twist, the number of owners will always be two (JQD or
ASD), but the number of Assets and the quantity owned by each owner can
vary. Is there a function that will place them on the separate pages?


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 13
Default Excel Sorting help


Thanks.
I can infer you are telling me there is no easy way to do it.
Unfortunately, printing and displaying (IOW, using autofilter) are not
my main concern. The info on Sht2 & Sht3 go on to complete 15 other
sheets. Furthermore, the cells comprise both partial and complete
functions/formulas on the other sheets that must display at the same
time. As a matter of fact, some of the functions require that the two
owners assets be added together (both partially and wholy).

It is imperative I be able to isolate the data into Sht2 & Sht3, not
just a single Sheet that can display different batches of info.

Thanks though. I added the websites to my "bank of knowledge"

  #4   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Excel Sorting help

.. It is imperative I be able to isolate the data into Sht2 & Sht3, not
just a single Sheet that can display different batches of info.


Here's a non-array formulas play which can deliver the desired results
automatically into separate sheets by asset owner as the source input sheet
"Sht1" is continually updated ..

A sample construct is available at:
AutoCopy data to separate shts by key col value.xls
http://www.savefile.com/files/37091

Assume the master list is input in sheet named: Sht1
in cols A to B, headers in row1, data from row2 down
Col B = Asset Owner (eg: JQD, AFD, etc) - this is the key col

Using empty cols to the right of the data, say cols K onwards
List the unique asset owners in K1 across, in any order, eg: JQD, AFD, etc.
Ensure these are consistent with the values under "Asset Owner"

Put in K2: =IF($B2="","",IF($B2=K$1,ROW(),""))
Copy K2 across and fill down to cover the max expected extent of source data

Click Insert Name Define
Put under "Names in workbook:": WSN
Put in the "Refers to:" box:
=MID(CELL("Filename",INDIRECT("A1")),FIND("]",CELL("Filename",INDIRECT("A1")
))+1,32)
Click OK

The above defines WSN as a name we can use to refer to the sheetname in
formulas. It will auto-extract the sheetname implicitly. Technique came from
a post by Harlan.

In a new sheet named: JQD
With the same col headers in A1:B1

Put in A2:
=IF(ISERROR(SMALL(OFFSET(Sht1!$J:$J,,MATCH(WSN,Sht 1!$K$1:$IV$1,0)),ROWS($A$1:A1))),"",INDEX(Sht1!A:A ,MATCH(SMALL(OFFSET(Sht1!$J:$J,,MATCH(WSN,Sht1!$K$ 1:$IV$1,0)),ROWS($A$1:A1)),OFFSET(Sht1!$J:$J,,MATC H(WSN,Sht1!$K$1:$IV$1,0)),0)))

Copy A2 across to B2, fill down by the smallest extent sufficient to cover
all the cases expected for any one asset owner, say down to D10.

Cols A & B will return only the lines for the asset owner: JQD from Sht1
with all lines neatly bunched at the top - exactly the results desired. Now,
just make a copy of the sheet: JQD, rename it as: AFD, and you'd get the
results for AFD. Repeat as required for the rest of the asset owners (a
one-time job).
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
Orig post:
wrote:
I hope someone can help me with this as simply as possible. I would
prefer to stay away from VB (don't know how to use it very well), but I
will do what I need.

I have a excel sheet (Sht1) that lists out the assets owned by a
family. Column A is the Asset Name (IRA 1, IRA 2). And Column C
indicates which family member owns the Asset (John, Jane)

I need to keep this list intact and unsorted on Sht1 - 'Sht1' is an
input sheet that will vary in length. However, I want to be able to
relist all of John's assets on 'Sht2' and all of Jane's assets on
'Sht3'.

Sht1:

___A___ ___B___
1| Asset Name Asset Owner
2| IRA 1 JQD
3| IRA 2 AFD
4| Roth 1 JQD
5| Roth 2 JQD
6| Brok 1 JQD
7| Brok 2 AFD

**I want this sheet to be a 'cell reference' of inputs for two other
sheets.

I want 'Sht2' to look like:
___A___ ___B___
1| Asset Name Asset Owner
2| IRA 1 JQD
3| Roth 1 JQD
4| Roth 2 JQD
5| Brok 1 JQD

and 'Sht3' to look like:
___A___ ___B___
1| Asset Name Asset Owner
2| IRA 2 AFD
3| Brok 2 AFD

Here's the major twist, the number of owners will always be two (JQD or
ASD), but the number of Assets and the quantity owned by each owner can
vary. Is there a function that will place them on the separate pages?



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 13
Default Excel Sorting help

Thanks



  #6   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Excel Sorting help

You're welcome !
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
" wrote:
Thanks


  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,886
Default Excel Sorting help

Hi Max

Very nice solution!
I will tuck that one away for future use if you don't mind.

--
Regards

Roger Govier


"Max" wrote in message
...
.. It is imperative I be able to isolate the data into Sht2 & Sht3,
not
just a single Sheet that can display different batches of info.


Here's a non-array formulas play which can deliver the desired results
automatically into separate sheets by asset owner as the source input
sheet
"Sht1" is continually updated ..

A sample construct is available at:
AutoCopy data to separate shts by key col value.xls
http://www.savefile.com/files/37091

Assume the master list is input in sheet named: Sht1
in cols A to B, headers in row1, data from row2 down
Col B = Asset Owner (eg: JQD, AFD, etc) - this is the key col

Using empty cols to the right of the data, say cols K onwards
List the unique asset owners in K1 across, in any order, eg: JQD, AFD,
etc.
Ensure these are consistent with the values under "Asset Owner"

Put in K2: =IF($B2="","",IF($B2=K$1,ROW(),""))
Copy K2 across and fill down to cover the max expected extent of
source data

Click Insert Name Define
Put under "Names in workbook:": WSN
Put in the "Refers to:" box:
=MID(CELL("Filename",INDIRECT("A1")),FIND("]",CELL("Filename",INDIRECT("A1")
))+1,32)
Click OK

The above defines WSN as a name we can use to refer to the sheetname
in
formulas. It will auto-extract the sheetname implicitly. Technique
came from
a post by Harlan.

In a new sheet named: JQD
With the same col headers in A1:B1

Put in A2:
=IF(ISERROR(SMALL(OFFSET(Sht1!$J:$J,,MATCH(WSN,Sht 1!$K$1:$IV$1,0)),ROWS($A$1:A1))),"",INDEX(Sht1!A:A ,MATCH(SMALL(OFFSET(Sht1!$J:$J,,MATCH(WSN,Sht1!$K$ 1:$IV$1,0)),ROWS($A$1:A1)),OFFSET(Sht1!$J:$J,,MATC H(WSN,Sht1!$K$1:$IV$1,0)),0)))

Copy A2 across to B2, fill down by the smallest extent sufficient to
cover
all the cases expected for any one asset owner, say down to D10.

Cols A & B will return only the lines for the asset owner: JQD from
Sht1
with all lines neatly bunched at the top - exactly the results
desired. Now,
just make a copy of the sheet: JQD, rename it as: AFD, and you'd get
the
results for AFD. Repeat as required for the rest of the asset owners
(a
one-time job).
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
Orig post:
wrote:
I hope someone can help me with this as simply as possible. I would
prefer to stay away from VB (don't know how to use it very well), but
I
will do what I need.

I have a excel sheet (Sht1) that lists out the assets owned by a
family. Column A is the Asset Name (IRA 1, IRA 2). And Column C
indicates which family member owns the Asset (John, Jane)

I need to keep this list intact and unsorted on Sht1 - 'Sht1' is an
input sheet that will vary in length. However, I want to be able to
relist all of John's assets on 'Sht2' and all of Jane's assets on
'Sht3'.

Sht1:

___A___ ___B___
1| Asset Name Asset Owner
2| IRA 1 JQD
3| IRA 2 AFD
4| Roth 1 JQD
5| Roth 2 JQD
6| Brok 1 JQD
7| Brok 2 AFD

**I want this sheet to be a 'cell reference' of inputs for two other
sheets.

I want 'Sht2' to look like:
___A___ ___B___
1| Asset Name Asset Owner
2| IRA 1 JQD
3| Roth 1 JQD
4| Roth 2 JQD
5| Brok 1 JQD

and 'Sht3' to look like:
___A___ ___B___
1| Asset Name Asset Owner
2| IRA 2 AFD
3| Brok 2 AFD

Here's the major twist, the number of owners will always be two (JQD
or
ASD), but the number of Assets and the quantity owned by each owner
can
vary. Is there a function that will place them on the separate pages?





  #8   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Excel Sorting help

Most welcome, and thanks for the compliments, Roger!
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Roger Govier" wrote:
Hi Max

Very nice solution!
I will tuck that one away for future use if you don't mind.

--
Regards

Roger Govier

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
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
Reduced Sorting Capability In Excel Worksheets Isaac The Arian Excel Discussion (Misc queries) 1 August 3rd 06 06:58 PM
Excel file with hyperlinks takes a long time to open over the network Didier P Links and Linking in Excel 3 July 4th 06 04:39 PM
Multiple Excel versions. Naveen Mukkelli Excel Discussion (Misc queries) 0 May 16th 06 12:55 AM
In Excel, sorting columns automatically by clicking column title Destiny Excel Discussion (Misc queries) 1 June 23rd 05 06:39 PM


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