+ Reply to Thread
Results 1 to 9 of 9

Transposing Data and Splitting Cells

  1. #1
    Forum Contributor
    Join Date
    10-09-2015
    Location
    Canada
    MS-Off Ver
    Office Home and Student 2021 for Mac
    Posts
    170

    Transposing Data and Splitting Cells

    Hi all,

    I'm currently working with a table of student scores for different tests (denoted in columns A2 through E2) that I need to transpose and assign certain values to certain numbers.

    Essentially, I have one column in a table that reads 0-7 (Cell A3) and another value in column F3 that indicates the number to be assigned to that range.

    I would need a way to transpose cell A3 so it splits into single digits from 0 through 7 (as opposed to being a range in one cell). I would then need to assign a 1 to that spread of numbers 0 through 7.

    In cell A4, the range is 8-10, and again in a separate worksheet, or wherever is easiest, I would need to have 8,9,10 listed in separate cells, and have that range be assigned a 2.

    I've attached a workbook to clarify the problem and my desired outcome, just wondering what the best way to go about this would be. I've tried VLOOKUP and INDEXMATCH, but the issue is splitting the ranges in the single cells in columns A through E.

    I'm currently working on Excel Office Home and Student 2021 for Mac OS.

    Any guidance on this would be greatly appreciated!
    Attached Files Attached Files

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Transposing Data and Splitting Cells

    would be fine if you update your profile about a three letters: Mac

  3. #3
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Transposing Data and Splitting Cells

    Do you have Power Query on your Mac in H&S XL2021 ?

    here is the result via Power Query

    Type Score1 Score2
    AA
    0
    1
    AA
    1
    1
    AA
    2
    1
    AA
    3
    1
    AA
    4
    1
    AA
    5
    1
    AA
    6
    1
    AA
    7
    1
    AA
    8
    2
    AA
    9
    2
    AA
    10
    2
    AA
    11
    3
    AA
    12
    3
    AA
    13
    3
    AA
    14
    3
    AA
    15
    4
    AA
    16
    4
    AA
    17
    4
    AA
    18
    4
    AA
    19
    4
    AA
    20
    5
    AA
    21
    5
    AA
    22
    5
    AA
    23
    5
    AA
    24
    5
    AA
    25
    6
    AA
    26
    6
    AA
    27
    6
    AA
    28
    6
    AA
    29
    6
    AA
    30
    7
    AA
    31
    7
    AA
    32
    7
    AA
    33
    7
    AA
    34
    7
    AA
    35
    7
    AA
    36
    8
    AA
    37
    8
    AA
    38
    8
    AA
    39
    8
    AA
    40
    8
    AA
    41
    9
    AA
    42
    9
    AA
    43
    9
    AA
    44
    9
    AA
    45
    10
    AA
    46
    10
    AA
    47
    10
    AA
    48
    10
    AA
    49
    11
    AA
    50
    11
    AA
    51
    11
    AA
    52
    11
    AA
    53
    11
    AA
    54
    12
    AA
    55
    12
    AA
    56
    12
    AA
    57
    13
    AA
    58
    13
    AA
    59
    14
    AA
    60
    14
    AA
    61
    15
    AA
    62
    15
    AA
    63
    16
    AA
    64
    17
    AA
    65
    18
    AA
    66
    19
    BB
    0
    1
    BB
    1
    1
    BB
    2
    1
    BB
    3
    1
    BB
    4
    1
    BB
    5
    1
    BB
    6
    2
    BB
    7
    2
    BB
    8
    3
    BB
    9
    3
    BB
    10
    4
    BB
    11
    4
    BB
    12
    5
    BB
    13
    5
    BB
    14
    6
    BB
    15
    6
    BB
    16
    7
    BB
    17
    7
    BB
    18
    7
    BB
    19
    8
    BB
    20
    8
    BB
    21
    9
    BB
    22
    9
    BB
    23
    10
    BB
    24
    11
    BB
    25
    11
    BB
    26
    12
    BB
    27
    13
    BB
    28
    13
    BB
    29
    14
    BB
    30
    15
    BB
    31
    16
    BB
    32
    17
    BB
    33
    18
    BB
    34
    19
    BB
    35
    19
    BB
    36
    19

  4. #4
    Forum Contributor
    Join Date
    10-09-2015
    Location
    Canada
    MS-Off Ver
    Office Home and Student 2021 for Mac
    Posts
    170

    Re: Transposing Data and Splitting Cells

    Quote Originally Posted by sandy666 View Post
    Do you have Power Query on your Mac in H&S XL2021 ?

    here is the result via Power Query

    Type Score1 Score2
    AA
    0
    1
    AA
    1
    1
    AA
    2
    1
    AA
    3
    1
    AA
    4
    1
    AA
    5
    1
    AA
    6
    1
    AA
    7
    1
    AA
    8
    2
    AA
    9
    2
    AA
    10
    2
    AA
    11
    3
    AA
    12
    3
    AA
    13
    3
    AA
    14
    3
    AA
    15
    4
    AA
    16
    4
    AA
    17
    4
    AA
    18
    4
    AA
    19
    4
    AA
    20
    5
    AA
    21
    5
    AA
    22
    5
    AA
    23
    5
    AA
    24
    5
    AA
    25
    6
    AA
    26
    6
    AA
    27
    6
    AA
    28
    6
    AA
    29
    6
    AA
    30
    7
    AA
    31
    7
    AA
    32
    7
    AA
    33
    7
    AA
    34
    7
    AA
    35
    7
    AA
    36
    8
    AA
    37
    8
    AA
    38
    8
    AA
    39
    8
    AA
    40
    8
    AA
    41
    9
    AA
    42
    9
    AA
    43
    9
    AA
    44
    9
    AA
    45
    10
    AA
    46
    10
    AA
    47
    10
    AA
    48
    10
    AA
    49
    11
    AA
    50
    11
    AA
    51
    11
    AA
    52
    11
    AA
    53
    11
    AA
    54
    12
    AA
    55
    12
    AA
    56
    12
    AA
    57
    13
    AA
    58
    13
    AA
    59
    14
    AA
    60
    14
    AA
    61
    15
    AA
    62
    15
    AA
    63
    16
    AA
    64
    17
    AA
    65
    18
    AA
    66
    19
    BB
    0
    1
    BB
    1
    1
    BB
    2
    1
    BB
    3
    1
    BB
    4
    1
    BB
    5
    1
    BB
    6
    2
    BB
    7
    2
    BB
    8
    3
    BB
    9
    3
    BB
    10
    4
    BB
    11
    4
    BB
    12
    5
    BB
    13
    5
    BB
    14
    6
    BB
    15
    6
    BB
    16
    7
    BB
    17
    7
    BB
    18
    7
    BB
    19
    8
    BB
    20
    8
    BB
    21
    9
    BB
    22
    9
    BB
    23
    10
    BB
    24
    11
    BB
    25
    11
    BB
    26
    12
    BB
    27
    13
    BB
    28
    13
    BB
    29
    14
    BB
    30
    15
    BB
    31
    16
    BB
    32
    17
    BB
    33
    18
    BB
    34
    19
    BB
    35
    19
    BB
    36
    19
    Oh I know PQ would great for tackling a task like this, but unfortunately I don't have Power Query on my Mac

  5. #5
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Transposing Data and Splitting Cells

    don't quote whole post, it is not necessary


    too bad you don't have PQ because it's simple, easy and fast
    so good luck and have a nice day

  6. #6
    Forum Contributor
    Join Date
    10-09-2015
    Location
    Canada
    MS-Off Ver
    Office Home and Student 2021 for Mac
    Posts
    170

    Re: Transposing Data and Splitting Cells

    Thanks! Just out of curiosity, it's been some time since I've worked with PQ, what steps did you take to transpose this via PQ?

  7. #7
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Transposing Data and Splitting Cells

    here is your (with a bit modified ranges) example
    if you have the ability to open Power Query Editor you can see whole M

    here is for AA
    Please Login or Register  to view this content.
    for BB is exactly the same and on the end Append both tables

  8. #8
    Forum Contributor
    Join Date
    10-09-2015
    Location
    Canada
    MS-Off Ver
    Office Home and Student 2021 for Mac
    Posts
    170

    Re: Transposing Data and Splitting Cells

    Perfect. Thank you!

  9. #9
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Transposing Data and Splitting Cells

    in short, the problem is solved, so...



    if the problem is solved, make me happy and hit Add Reputation (bottom left corner next to the post that was helpful) (if you did it - ignore this)

+ 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. [SOLVED] Transposing data from multiple cells in rows into columns
    By martin_sushi in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-20-2022, 08:54 AM
  2. transposing data for duplicate cells
    By LJITR in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-08-2014, 10:17 AM
  3. [SOLVED] Transposing Correlating Data from Adjacent Cells via Formula
    By RoyM56 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-31-2013, 08:44 PM
  4. Splitting/transposing some contact data easily...
    By so1id in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-22-2012, 09:06 PM
  5. [SOLVED] Splitting input / transposing issue
    By kieranbop in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-17-2012, 08:57 AM
  6. Replies: 3
    Last Post: 01-19-2011, 10:56 AM
  7. Transposing Row Data To A Column of Cells
    By cheiss8078 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-30-2006, 02:28 PM

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