+ Reply to Thread
Results 1 to 6 of 6

Rearranging the data set based on multiple rules.

Hybrid View

  1. #1
    Registered User
    Join Date
    06-27-2013
    Location
    Coventry, England
    MS-Off Ver
    Excel 2010
    Posts
    34

    Rearranging the data set based on multiple rules.

    Hello everyone!

    I'm having an issue reformatting a large data set that completely boggled my mind to the point at which I have no idea how to even start figuring it out...

    Long story short, the data set comes from a graduate research of mine. Here the participants are able to choose some symbols and later rate them in terms of their payoff-predictive power. So, columns D to G are the frequencies of their choices, whereas columns S and T hold their ratings.

    What I'm interested in is the frequency-rating slopes, which would either confirm or reject my hypothesis. In order to do create these slopes I need to organise the frequencies in a descending fashion (already done - columns I to L) and place the corresponding ratings into columns M to P.

    The problem is to actually automate it (I've done it manually before, but the human error is getting out of hand).

    So the algorithm should look something like this: Look up the number in the column I -> Find this number in the corresponding row in columns D to G -> Note the symbol (name of these column) -> Lookup a value for this participant and symbol in the columns S and T -> Place this value in column M. The same to be done for columns N, O and P.

    The formula is ought to look like a puzzle, but I would appreciate if someone with more experience than I had a look at it.

    The original excel file is attached.

    Best regards and thanks for your help!
    Attached Files Attached Files

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Rearranging the data set based on multiple rules.

    in m2 you have 71 if this relates to star 28 ie value in chosen 1 I2 is 28 which corresponds with d2 why is the result not
    28 star 64
    from t112
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    06-27-2013
    Location
    Coventry, England
    MS-Off Ver
    Excel 2010
    Posts
    34

    Re: Rearranging the data set based on multiple rules.

    Quote Originally Posted by martindwilson View Post
    in m2 you have 71 if this relates to star 28 ie value in chosen 1 I2 is 28 which corresponds with d2 why is the result not
    28 star 64
    from t112
    Thank you for your response! I apologise if I didn't make myself clear in the original post! Column R stands for subjects (the same as the column A). So, what I'm interested in is what is the corresponding rating (reported1) for the most chosen symbol (chosen1). Here the 28 in M2 stands for star in D2-G2, so we look up the value for participant 1, star, which turns out to be 71.

    Also I have noticed that sometimes the order is impossible to work out. E.g. In cases where either reported or chosen frequencies have multiple occurrences of one value. I was able to solve this problem by highlighting the part in question when to be able to make an adjustment if necessary. I'm not sure though if it is possible to do the same in an automated procedure.

  4. #4
    Registered User
    Join Date
    06-27-2013
    Location
    Coventry, England
    MS-Off Ver
    Excel 2010
    Posts
    34

    Re: Rearranging the data set based on multiple rules.

    OP here. This is what I meant by highlighting the questionable parts in the arrangement. I imagine this is almost impossible to implement, so I would be happy if the function would just leave these places blank, so I can fill and highlight them manually.
    Attached Files Attached Files
    Last edited by sulin360; 08-17-2013 at 10:11 AM.

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Rearranging the data set based on multiple rules.

    do you mean something like this
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    06-27-2013
    Location
    Coventry, England
    MS-Off Ver
    Excel 2010
    Posts
    34

    Re: Rearranging the data set based on multiple rules.

    Quote Originally Posted by martindwilson View Post
    do you mean something like this
    That is exactly what I needed! Moreover, I can use this for the data set with adjusted trial block divisions (here I used four trial blocks - column B). Thank you good sir!

    I now wonder if my highlighting procedure is impossible to implement over questionable places in the data frame. E.g. M6:N6

+ 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. Rearranging data from multiple rows to columns
    By tessda in forum Excel General
    Replies: 2
    Last Post: 09-17-2011, 12:58 AM
  2. rearranging data set with multiple criteria
    By pani_hcu in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-06-2011, 01:33 AM
  3. Conditional formatting based on multiple rules
    By Pyrex238 in forum Excel General
    Replies: 7
    Last Post: 05-06-2011, 03:20 AM
  4. rules: Rearranging data
    By KingaB in forum Excel General
    Replies: 1
    Last Post: 02-23-2010, 07:23 AM
  5. Replies: 4
    Last Post: 09-14-2009, 09:57 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