Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
viv viv is offline
external usenet poster
 
Posts: 14
Default Backward pivot table sort of...

I have a spreadsheet similar to this which shows access right for several
depts:

Account Dept 1 Dept 2 Dept 3 Dept 4
Salaries READ READ READ READ
Supplies WRITE READ WRITE WRITE
DEPREC READ READ READ READ

I want to end up with:

Account Dept Access
Salaries 1 READ
Salaries 2 READ
Salaries 3 READ
Salaries 4 READ
Supplies 1 WRITE
Supplies 1 READ
Supplies 1 WRITE
Supplies 1 WRITE

etc....

Any suggestions????? THANKS!!!



  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9,101
Default Backward pivot table sort of...

You can use paste special to transpose rows and column.

If you copy Dept 1 to Dept 4
then Paste Special with rows and column transpose you get
Dept 1
Dept 2
Dept 3
Dept 4

You can the do a replace on Dept 1 to Dept 4 and replace "Dept " with ""
(nothing)

Salaries a supplies just can be copied

DEPREC can also be transposed.

"Viv" wrote:

I have a spreadsheet similar to this which shows access right for several
depts:

Account Dept 1 Dept 2 Dept 3 Dept 4
Salaries READ READ READ READ
Supplies WRITE READ WRITE WRITE
DEPREC READ READ READ READ

I want to end up with:

Account Dept Access
Salaries 1 READ
Salaries 2 READ
Salaries 3 READ
Salaries 4 READ
Supplies 1 WRITE
Supplies 1 READ
Supplies 1 WRITE
Supplies 1 WRITE

etc....

Any suggestions????? THANKS!!!



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,979
Default Backward pivot table sort of...

To reorganize the data, you can use the 'unpivot' technique described by
John Walkenbach:

http://j-walk.com/ss/excel/usertips/tip068.htm

Before you start, change the Dept headings to numbers, or after you
unpivot you can use EditReplace to remove Dept from the Dept column.


Viv wrote:
I have a spreadsheet similar to this which shows access right for several
depts:

Account Dept 1 Dept 2 Dept 3 Dept 4
Salaries READ READ READ READ
Supplies WRITE READ WRITE WRITE
DEPREC READ READ READ READ

I want to end up with:

Account Dept Access
Salaries 1 READ
Salaries 2 READ
Salaries 3 READ
Salaries 4 READ
Supplies 1 WRITE
Supplies 1 READ
Supplies 1 WRITE
Supplies 1 WRITE



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 16
Default Backward pivot table sort of...

I assume your source table is dynamic, i.e. varies in size, both rows and
columns, depending on the situation.
The following should work, provided you don't have duplicate entries under
the Account heading:-

1. Assume your source table has its top left cell (Account) in H3.
2. Two cells (anywhere) are used to hold the size of your source table
(assumes nothing else in the same rows and columns as the table):
column count in say F1, put in formula =COUNTA(H:H)
row count in say F2, put in formula =COUNTA(3:3)

3. Assume your result table has its headings in B12-D12.
4. Put the following formulas in the first row under each heading, and copy
them down until the table is filled.
Account:
=INDEX(OFFSET($H$3,1,,$F$1-1),INT((ROW(C12)-ROW($C$13)+1)/($F$2-1))+1)
Dept: =IF(B12<B13,1,C12+1)
Access:
=INDEX(OFFSET($H$3,1,1,$F$1-1,$F$2-1),MATCH(B13,OFFSET($H$3,1,,$F$1-1),0),C13)

You can include the COUNTA formulas in the other formulas if you need to,
but it makes them even more complex than they already are. Once in place you
can move any of the tables and formulas to suit, without re-entering the
formulas.

"Viv" wrote:

I have a spreadsheet similar to this which shows access right for several
depts:

Account Dept 1 Dept 2 Dept 3 Dept 4
Salaries READ READ READ READ
Supplies WRITE READ WRITE WRITE
DEPREC READ READ READ READ

I want to end up with:

Account Dept Access
Salaries 1 READ
Salaries 2 READ
Salaries 3 READ
Salaries 4 READ
Supplies 1 WRITE
Supplies 1 READ
Supplies 1 WRITE
Supplies 1 WRITE

etc....

Any suggestions????? THANKS!!!



  #5   Report Post  
Posted to microsoft.public.excel.misc
viv viv is offline
external usenet poster
 
Posts: 14
Default Backward pivot table sort of...

That worked great! Thank you so much for your response!!

"Debra Dalgleish" wrote:

To reorganize the data, you can use the 'unpivot' technique described by
John Walkenbach:

http://j-walk.com/ss/excel/usertips/tip068.htm

Before you start, change the Dept headings to numbers, or after you
unpivot you can use EditReplace to remove Dept from the Dept column.


Viv wrote:
I have a spreadsheet similar to this which shows access right for several
depts:

Account Dept 1 Dept 2 Dept 3 Dept 4
Salaries READ READ READ READ
Supplies WRITE READ WRITE WRITE
DEPREC READ READ READ READ

I want to end up with:

Account Dept Access
Salaries 1 READ
Salaries 2 READ
Salaries 3 READ
Salaries 4 READ
Supplies 1 WRITE
Supplies 1 READ
Supplies 1 WRITE
Supplies 1 WRITE



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,979
Default Backward pivot table sort of...

You're welcome! Thanks for letting me know that it worked.

Viv wrote:
That worked great! Thank you so much for your response!!

"Debra Dalgleish" wrote:


To reorganize the data, you can use the 'unpivot' technique described by
John Walkenbach:

http://j-walk.com/ss/excel/usertips/tip068.htm

Before you start, change the Dept headings to numbers, or after you
unpivot you can use EditReplace to remove Dept from the Dept column.


Viv wrote:

I have a spreadsheet similar to this which shows access right for several
depts:

Account Dept 1 Dept 2 Dept 3 Dept 4
Salaries READ READ READ READ
Supplies WRITE READ WRITE WRITE
DEPREC READ READ READ READ

I want to end up with:

Account Dept Access
Salaries 1 READ
Salaries 2 READ
Salaries 3 READ
Salaries 4 READ
Supplies 1 WRITE
Supplies 1 READ
Supplies 1 WRITE
Supplies 1 WRITE



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html





--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html

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
Sort top 50 in Pivot table Wanna Learn Excel Discussion (Misc queries) 2 February 6th 07 10:20 PM
sort of pivot table Miri Excel Discussion (Misc queries) 1 February 4th 07 01:52 PM
How do I sort pivot table data outside a pivot table Michael Excel Worksheet Functions 1 January 4th 07 02:45 PM
sort in pivot table flow23 Excel Discussion (Misc queries) 0 February 15th 06 10:20 AM
pivot table sort entries that don't yet appear in table rachael Excel Discussion (Misc queries) 11 September 19th 05 11:29 PM


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