+ Reply to Thread
Results 1 to 9 of 9

a special sorting dataset in excel

  1. #1
    Registered User
    Join Date
    06-18-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    76

    a special sorting dataset in excel

    Hi all friends,

    I have a large excel sheet (2010) with two columns and thousands of rows for 3 samples. Please take a look at the attached file, which is the short example of my dataset (Original dataset, left side of file). However, I would like to have a dataset like what I showed in the right side of the attached file (Desired dataset). Actually, all IDs should be located in one column and their corresponding values from various samples have to be put in other columns and if a ID has not any value in the sample, it should be shown with 0. Also, some of original IDs, like AT5G01600.1, in the sample 2 are duplicated or even triplicated with different values. In this case, the mean value must be put for the corresponding ID, for example, 4.76 for sample 2, in the right side of file. I need an easy way to do this task for my large original dataset. Could you please help me out in this regard?

    Thank you in advance
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    05-08-2015
    Location
    Uvalde, TX
    MS-Off Ver
    2010
    Posts
    720

    Re: a special sorting dataset in excel

    Hi Mary,

    You can accomplish this with the Consolidate function via the Data menu/ribbon.

    These links will show you how.

    https://msdn.microsoft.com/en-us/library/cc750889.aspx

    http://www.excel-easy.com/examples/consolidate.html

    Hope this is helpful.

    Cheers

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: a special sorting dataset in excel

    Mary22,

    Please disregard. See next post.

    How do you arrive at 4.76 (emphasis in the upload) in M6. I come up with 4.32 with this formula in L3 filled down and across.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by FlameRetired; 06-29-2016 at 09:34 PM. Reason: Opened my eyes and looked.
    Dave

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: a special sorting dataset in excel

    Never mind. I see it now.

    Use this formula instead.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    It returns 9.52 where there was the 4.76.

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: a special sorting dataset in excel

    Another formula way ... simpler.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by FlameRetired; 06-29-2016 at 10:10 PM.

  6. #6
    Registered User
    Join Date
    06-18-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    76

    Re: a special sorting dataset in excel

    Thank you, FlameRetired. I used your last formula, worked fine except for when duplicated IDs with various values existed (AT5G01600.1 in D5 and D6 with values of 4.32 and 5.2 in attached example). In these cases, the mean (average) of values should be placed in front of a corresponding ID. With your formula, various values of a given ID were summed. Could you please modify the formula that consider the average (mean), not sum, of different values for a given ID?


    Thanks a lot in advance

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: a special sorting dataset in excel

    OK.
    Try replacing that formula with
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    06-18-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    76

    Re: a special sorting dataset in excel

    Thank you so much, it worked well. I approved it.

  9. #9
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: a special sorting dataset in excel

    You are welcome. Thank you for the feedback and added rep.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Sorting/Filtering massive dataset
    By BigMac4 in forum Excel General
    Replies: 5
    Last Post: 08-23-2015, 12:54 PM
  2. Large dataset sorting help
    By kjibbs in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-21-2014, 12:35 PM
  3. Replies: 1
    Last Post: 10-17-2013, 10:40 AM
  4. Copying a dataset multiple times - and selecting titles for this dataset
    By alocke in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-07-2012, 10:15 PM
  5. Sorting one dataset with another
    By Matt Guernsey in forum Excel General
    Replies: 1
    Last Post: 07-28-2010, 10:13 AM
  6. Sorting a dataset with another using date and time
    By Matt Guernsey in forum Excel General
    Replies: 1
    Last Post: 07-22-2010, 08:29 AM
  7. Replies: 3
    Last Post: 08-07-2006, 04:50 PM

Tags for this Thread

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