Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Ian
 
Posts: n/a
Default 'Automatic' sorting to printable report

Hi
I have a data sheet which contains in monthly groups of columns,
sales staff volume, gross profit, average gross
- one row per salesperson, three columns (vol,gross,ave) per month

I want to produce a report (which could be on the same sheet, within month
group),
which separates volume, gross profit and average, all sorted by rank for
that period.
e.g. for one month, data is:
A B C D
spsn1 27 $2,700 $100
spsn2 15 $3,000 $200
spsn3 20 $3,900 $195

needs to sort / print as:
------------------------------
ladder by volume
spsn1 27
spsn3 20
spsn2 15

ladder by gross
spsn2 $3,000
spsn3 $3,900
spsn1 $2,700

ladder by average
spsn2 $200
spsn3 $195
spsn1 $100
--------------------------------

I can't even get a start - fixed formula on sheet to dynamically update the
'print' area when entries made by month, or macro to run to generate it, or
new sheet for report, or or or ????
Starting point / help greatly appreciated
Thanks, Ian


  #2   Report Post  
Posted to microsoft.public.excel.misc
Max
 
Posts: n/a
Default 'Automatic' sorting to printable report

Here's one play which delivers the 3 auto-descending sorted reports
(by volume, by gross & by average) via non-array formulas

Sample construct available at:
http://www.savefile.com/files/1510963
Auto-Descending Sort by Vol Gross n Av.xls

Assume source data in cols A to D, data from row2 down

Create 3 arb tie-breaker criteria cols
(for volume, gross & average)
-----------------
Put inE2: =IF(B2="","",B2-ROW()/10^10)
Copy E2 to G2, fill down to say, G10
to cover the max expected data extent
(leave E1:G1 empty)

Create ladder by volume
------------------
Put in I2:
=IF(ISERROR(LARGE($E:$E,ROW(A1))),"",
INDEX(A:A,MATCH(LARGE($E:$E,ROW(A1)),$E:$E,0)))
Copy I2 to J2, fill down to J10
(cover the same fill extent)

Create ladder by gross
---------------
Put in L2:
=IF(ISERROR(LARGE($F:$F,ROW(A1))),"",
INDEX(A:A,MATCH(LARGE($F:$F,ROW(A1)),$F:$F,0)))

Put in M2:
=IF(ISERROR(LARGE($F:$F,ROW(A1))),"",
INDEX(C:C,MATCH(LARGE($F:$F,ROW(A1)),$F:$F,0)))
Select L2:M2, fill down to M10
(cover the same fill extent)

Create ladder by average
--------------
Put in O2:
=IF(ISERROR(LARGE($G:$G,ROW(A1))),"",
INDEX(A:A,MATCH(LARGE($G:$G,ROW(A1)),$G:$G,0)))

Put in P2:
=IF(ISERROR(LARGE($G:$G,ROW(A1))),"",
INDEX(D:D,MATCH(LARGE($G:$G,ROW(A1)),$G:$G,0)))
Select O2:P2, fill down to P10
(cover the same fill extent)

The 3 ladders will auto-update based on the source data cols A to D. Ties
in the values (volume, gross or average) if any, will be reflected in the
same relative order that the tied lines appear within the source data.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Ian" wrote in message
u...
Hi
I have a data sheet which contains in monthly groups of columns,
sales staff volume, gross profit, average gross
- one row per salesperson, three columns (vol,gross,ave) per month

I want to produce a report (which could be on the same sheet, within month
group),
which separates volume, gross profit and average, all sorted by rank for
that period.
e.g. for one month, data is:
A B C D
spsn1 27 $2,700 $100
spsn2 15 $3,000 $200
spsn3 20 $3,900 $195

needs to sort / print as:
------------------------------
ladder by volume
spsn1 27
spsn3 20
spsn2 15

ladder by gross
spsn2 $3,000
spsn3 $3,900
spsn1 $2,700

ladder by average
spsn2 $200
spsn3 $195
spsn1 $100
--------------------------------

I can't even get a start - fixed formula on sheet to dynamically update

the
'print' area when entries made by month, or macro to run to generate it,

or
new sheet for report, or or or ????
Starting point / help greatly appreciated
Thanks, Ian




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
sorting data and automatic graphs timc Charts and Charting in Excel 3 January 27th 06 08:37 PM
AUTOMATIC SORTING PROBLEMS SYBS Excel Worksheet Functions 4 July 12th 05 10:18 PM
Realtime Automatic sorting of data in rows in new work sheet Gazzali Excel Worksheet Functions 0 June 23rd 05 09:35 AM
Automatic Sorting????? Bigredno8 Excel Discussion (Misc queries) 3 May 28th 05 11:11 PM
Automatic Sorting of a group of columns. Josh Barbara Excel Worksheet Functions 1 November 15th 04 01:55 AM


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