Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default Converting data Format

I hope I explain this clearly. I have a 45,000 row worksheet that is
organized like an Org Chart. What I need to accomplish is convert the
structure to what you would see in a database. Meaning I would like it to be
formatted like a series of records. Each record list the lowest level and
then the next level and so forth. Here is an example...The data is currently
formatted like this...

Group 1
Team 1
Person 1
Person 2
Team 2
Person 3
Person 4
Person 5
Group 2
Team 3
Person 6
Person 7
Team 4
Person 7
Person 8
Person 9

I want it to look like this...

Person Team Group
1 1 1
2 1 1
3 2 1
4 2 1
5 3 2
6 3 2
7 4 2
8 4 2
9 4 2

Person 1 is part of Team 1 which is a part of Group 1...Still with me?

Any suggestions to accomplish this would be GREATLY appreciated. Thank you
in advance for all replies.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Converting data Format


Is the example data you listed EXACTLY your data? What I mean is Group
1, Team, 1, Person 1, are the actual values or are their various names
for the groups, teams, and peolpe? If it's the actual data, is it
arranged in ONE column as you list it?


--
Excelenator


------------------------------------------------------------------------
Excelenator's Profile: http://www.excelforum.com/member.php...o&userid=36768
View this thread: http://www.excelforum.com/showthread...hreadid=569602

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Converting data Format


I sure there's an better way...lot of steps but this might help.

You could try.

Text to Columns. Delimiter by space.
Add two helper columns one for Group and one for team.
In cell C1 enter =IF(A2="Group",B2,"")
In Cell D1 enter =IF(A2="team",B2,"")

Drag Formula's down. Next select columns C & D. Press Ctrl + G special
blanks. (See link for help on this part)

http://www.contextures.com/xlDataEntry02.html

Finally put in Pivot table and job done

VBA Noob


--
VBA Noob
------------------------------------------------------------------------
VBA Noob's Profile: http://www.excelforum.com/member.php...o&userid=33833
View this thread: http://www.excelforum.com/showthread...hreadid=569602

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Converting data Format


Or some formulas to do the same thing

Assumes list starts in A2
B1 = Group
C1 = Team
D1 = Person

Group
=IF(LEFT(A2,LEN($B$1))=$B$1,RIGHT(A2,LEN(A2)-FIND(" ",A2,1)),"")

Team
=IF(LEFT(A2,LEN($C$1))=$C$1,RIGHT(A2,LEN(A2)-FIND(" ",A2,1)),"")

Person
=IF(LEFT(A2,LEN($D$1))=$D$1,RIGHT(A2,LEN(A2)-FIND(" ",A2,1)),"")

VBA Noob


--
VBA Noob
------------------------------------------------------------------------
VBA Noob's Profile: http://www.excelforum.com/member.php...o&userid=33833
View this thread: http://www.excelforum.com/showthread...hreadid=569602

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
unable to change date format on imported data Hyerczyk Excel Discussion (Misc queries) 1 July 6th 06 10:33 PM
Inputting data to one worksheet for it effect another daedalus1 Excel Discussion (Misc queries) 1 June 25th 06 04:39 PM
Cell data format falloutx Excel Discussion (Misc queries) 1 February 10th 06 01:46 PM
format cell from data input to output form Brad Stevenson Excel Worksheet Functions 2 May 19th 05 06:04 PM
Sort pages? David Excel Discussion (Misc queries) 15 May 13th 05 11:33 PM


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