+ Reply to Thread
Results 1 to 8 of 8

arrange complex excel data from different worksheet and sort into one database

Hybrid View

  1. #1
    Registered User
    Join Date
    10-05-2011
    Location
    Bangkok
    MS-Off Ver
    Excel 2010
    Posts
    9

    arrange complex excel data from different worksheet and sort into one database

    Hi, I have a data sheet from various department which in the same formate but different information which I want to arrange everything in on worksheet so that I can see the common used information.

    In sheet 1, colum M,N,O are data of FC001,FC003,FC005

    In sheet 2, colum M,N,O are data of FC002,FC004,FC005

    I want to display information like in Sheet 3 where the FCs are sorted.

    Has anyone suggest any best way to do it? Though not fully automated but at least, not by hand because in reality, There are 88 FCs and 200 positions!

    any suggestion at all is appreciated!

    or at least say something like 'No way! u gotta do manual!' , then I can give up peacefully.

    Thanks!


    Book1.xlsx
    Last edited by Autoliv; 06-21-2012 at 12:15 AM.

  2. #2
    Forum Contributor
    Join Date
    06-21-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    191

    Re: arrange complex excel data from different worksheet and sort into one database

    Do you just need to return columns M, N, and O, based upon the FC and position criteria? If so, I can get you a working formula pretty quick.

    And....is each position truly unique? Or would one position be repeated in the various categories? That could make things more fun.

    How "static" is Column A? Do you frequently update the positions and titles and such?
    Last edited by soberguy; 06-21-2012 at 01:59 AM.

  3. #3
    Registered User
    Join Date
    10-05-2011
    Location
    Bangkok
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: arrange complex excel data from different worksheet and sort into one database

    Hi, Soberguy,

    > Do you just need to return columns M, N, and O, based upon the FC and position criteria? If so, I can get you a working formula pretty quick.

    Not quite sure I understand your question correctly but I think it is a yes. I want to arrange data according to FC and position.


    > And....is each position truly unique? Or would one position be repeated in the various categories? That could make things more fun.

    hahaha, I have my share of fun already. so, the answer is -> the position is unique.

    > How "static" is Column A? Do you frequently update the positions and titles and such?

    most of the position is static but , on average, 1-2 positions were added or deleted every 3 months.

    let me know if you need any clarification and thank you for your help.

  4. #4
    Forum Contributor
    Join Date
    06-21-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    191

    Re: arrange complex excel data from different worksheet and sort into one database

    OK, gimme about 15 more minutes. Halfway there.

  5. #5
    Forum Contributor
    Join Date
    06-21-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    191

    Re: arrange complex excel data from different worksheet and sort into one database

    Ok, there are notes to follow!
    Formula: copy to clipboard
    =IF(ISERROR(INDEX(Sheet1!$A$4:$CJ$200,MATCH($A7,Sheet1!$A$7:$A$200,0)+3,MATCH(M$5,Sheet1!$5:$5,0))),IF(ISERROR(INDEX(Sheet2!$A$4:$CJ$200,MATCH($A7,Sheet2!$A$7:$A$200,0)+3,MATCH(M$5,Sheet2!$5:$5,0))),"",INDEX(Sheet2!$A$4:$CJ$200,MATCH($A7,Sheet2!$A$7:$A$200,0)+3,MATCH(M$5,Sheet2!$5:$5,0))),INDEX(Sheet1!$A$4:$CJ$200,MATCH($A7,Sheet1!$A$7:$A$200,0)+3,MATCH(M$5,Sheet1!$5:$5,0)))


    It looks ugly as a formula, but it works ;-)

    Enter that on M7 on Sheet3 and you should be good to go.

    The ever important notes:
    I would highly recommend setting up a named range for the data on Sheet1 and Sheet2. You can pretty easily set up a Table1 named range and have it refer to $A$4 through wherever the end of your Table is. The you can replace all Sheet1!$A$4:$CJ$200 with Table1. Makes life a lot easier, at least for me.

    I could ramble on and on about it and how it works, but if you have questions or issues, just give a holler.

  6. #6
    Registered User
    Join Date
    10-05-2011
    Location
    Bangkok
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: arrange complex excel data from different worksheet and sort into one database

    ok, something is not right. I can't see anything in your post until I hit 'reply with quote'. (not sure if it's my computer or something with the forum)

    anyway, I repost your formula here just to make it visible.

    I tried your formula with the sample file and it's working. Can you also help me how can I make the cell with 'o' value looks blank?

    I will try it on the real worksheet and feedback. Thank you!


    Formula:

    =IF(ISERROR(INDEX(Sheet1!$A$4:$CJ$200,MATCH($A7,Sheet1!$A$7:$A$200,0)+3,MATCH(M$5,Sheet1!$5:$5,0))),IF(ISERROR(INDEX(Sheet2!$A$4:$CJ$200,MATCH($A7,Sheet2!$A$7:$A$200,0)+3,MATCH(M$5,Sheet2!$5:$5,0))),"",INDEX(Sheet2!$A$4:$CJ$200,MATCH($A7,Sheet2!$A$7:$A$200,0)+3,MATCH(M$5,Sheet2!$5:$5,0))),INDEX(Sheet1!$A$4:$CJ$200,MATCH($A7,Sheet1!$A$7:$A$200,0)+3,MATCH(M$5,Sheet1!$5:$5,0)))

    It looks ugly as a formula, but it works ;-)

    Enter that on M7 on Sheet3 and you should be good to go.

    The ever important notes:
    I would highly recommend setting up a named range for the data on Sheet1 and Sheet2. You can pretty easily set up a Table1 named range and have it refer to $A$4 through wherever the end of your Table is. The you can replace all Sheet1!$A$4:$CJ$200 with Table1. Makes life a lot easier, at least for me.

    I could ramble on and on about it and how it works, but if you have questions or issues, just give a holler

  7. #7
    Forum Contributor
    Join Date
    06-21-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    191

    Re: arrange complex excel data from different worksheet and sort into one database

    Maybe someone else can come along and help with that. On sheet2, if you put =N9 the value returned is 0. But you can put =if(isblank(n9),"blank","something") it returns blank. Shrug

    Select the columns with the 0s and:
    On the Format menu, click Cells, and then click the Number tab.
    In the Category list, click Custom.
    In the Type box, type 0;-0;;@

    No clue what that does or why that works, but I verified it does work. Grabbed it from here

  8. #8
    Registered User
    Join Date
    10-05-2011
    Location
    Bangkok
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: arrange complex excel data from different worksheet and sort into one database

    soberguy,

    I do it with real worksheet and OK. I did cut formular short because I got 9 worksheets (not only 2).

    so the formula i am using is

    =IF(ISERROR(INDEX(Sheet1!$A$4:$CJ$200,MATCH($A7,Sheet1!$A$7:$A$200,0)+3,MATCH(M$5,Sheet1!$5:$5,0))),"",(INDEX(Sheet1!$A$4:$CJ$200,MATCH($A7,Sheet1!$A$7:$A$200,0)+3,MATCH(M$5,Sheet1!$5:$5,0)))

    and I am also defining table and range name as you suggested. so, in real worksheet, the formula goes like this...


    =IF(ISERROR(INDEX(table1,MATCH($A7,position1,0)+3,MATCH(M$5,competency1,0))),"",(INDEX(table1,MATCH($A7,position1,0)+3,MATCH(M$5,competency1,0)))

    and I just have to change number of table,position, and competency when I change the department.
    Last edited by Autoliv; 06-21-2012 at 06:48 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1