+ Reply to Thread
Results 1 to 16 of 16

9 Item List=(3 Columns, 10 Rows) --> 1 Row (40 columns (blank in between the 10 items))

  1. #1
    Registered User
    Join Date
    08-15-2014
    Location
    Madison, WI
    MS-Off Ver
    2008 (Mac)
    Posts
    28

    9 Item List=(3 Columns, 10 Rows) --> 1 Row (40 columns (blank in between the 10 items))

    Greetings, All!, Happy New Year!!
    (yes the title is misleading; I couldn't go back and edit it; I'm using a 9 Item list that in original form is 9 rows, two columns; I want to create a 1 row list of these 9 items with 2 cells in between each (one cell with the text DERIVATIVE, one blank cell; Sorry)
    Can you help me do something that I can use every day to greatly speed up my Projects...

    I have a 9 item list that in my Master Sheet (as I call it) takes up 2 columns. I need to copy these data from the master sheet and paste them into 1 row, with a cell that says DERIVATIVE and a blank cell in between each 2 cell item...

    9780618804788* HMM GA EPUPIL EDTN ON CD-ROM LV1 07
    9780618804849* HMM GA ETCHER EDTN ON CD-ROM LV1 07
    9780618813247* HMM GA ONLN EPE 1YR SNGL USR LV1 07
    9780618813544* HMM GA ONLN EPE 6YR SNGL USR LV1 07
    9780618813605* HMM GA ONLN ETE 1YR SNGL USR LV1 07
    9780618813667* HMM GA ONLN ETE 6YR SNGL USR LV1 07
    9780618590315* MATH GEORGIA PUPIL EDITION LVL 1 07
    9780618590469* MATH GEORGIA TE VOL 1 LEVEL 1 07
    9780618590476* MATH GEORGIA TE VOL 2 LEVEL 1 07

    Turning this list into 1 row that looks like
    9780618799954* HMM GA UNIT RESOURCES BOOKLET L1 07 DERIVATIVE 9780618590247* HMM GA ASSESSMENT GUIDE LEVEL 1 07 DERIVATIVE 9780618804610*........
    and so on... this 9 item list in my Master sheet is actually 26 items, and there are times when I may have to start with a 90 item list into one row with the Derivative and blanks...

    Can this bed done more easily (and less strain on the speed of the spreadsheet) than on a separate sheet, making the 2 column list a 3 column list (adding DERIVATIVE), then cutting each line and scrolling, pasting, scrolling cutting, scrolling pasting, scrolling... yeah, that's a pain...
    basically i need to transpose the list, but with 2 added cells in between.. whether its a 10 item list or a 200 item list...

    anyone? Thanks again; i heart you all!
    Last edited by chriscovino; 01-02-2015 at 12:50 PM. Reason: Changed example list from 10->9

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: 9 Item List=(3 Columns, 10 Rows) --> 1 Row (40 columns (blank in between the 10 items)

    It's not very clear how your data is laid out, so please attach a sample workbook, with (manual) examples of how the data should appear when transposed.

    Pete

  3. #3
    Registered User
    Join Date
    08-15-2014
    Location
    Madison, WI
    MS-Off Ver
    2008 (Mac)
    Posts
    28

    Re: 9 Item List=(3 Columns, 10 Rows) --> 1 Row (40 columns (blank in between the 10 items)

    Here is an example spreadsheet;
    The two column list you'll see first is how i will at first see the data (2 columns)
    I need to copy the data from the master sheet as found in column 1 and paste it to 1 Row, which is what you'll see next.EXCEL FORUM LIST TO 1 ROW.xls

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: 9 Item List=(3 Columns, 10 Rows) --> 1 Row (40 columns (blank in between the 10 items)

    I'm not sure I follow the logic of your "Derivatives", as there seems to be a gap in your examples. If you want the first record in cells A20 and B20 (for example), then the second record in E20:F20, and the 3rd record in I20:J20, and so on, then you can put this formula in A20:

    =INDEX($A$2:$B$15,INT((COLUMNS($A:A)-0)/4)+1,1)

    and this one in B20:

    =INDEX($A$2:$B$15,INT((COLUMNS($A:B)-0)/4)+1,2)

    (NOTE: the only difference is the number at the end of the formula, coloured red), and then you can copy that pair of formulae into E20:F20, I20:J20 etc.

    Hope this helps.

    Pete

  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: 9 Item List=(3 Columns, 10 Rows) --> 1 Row (40 columns (blank in between the 10 items)

    I haven't figured out the gap either. This generates the output without the gaps though.

    In A21 for example and fill across:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by FlameRetired; 01-02-2015 at 07:04 PM.

  6. #6
    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: 9 Item List=(3 Columns, 10 Rows) --> 1 Row (40 columns (blank in between the 10 items)

    Figured out the "gap", however the very last "DERIVATIVE" & "gap" did not come through.

    Will this suffice?
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Edit: Now it doesn't catch all the rows.....my apologies.
    Last edited by FlameRetired; 01-02-2015 at 07:34 PM.

  7. #7
    Registered User
    Join Date
    08-15-2014
    Location
    Madison, WI
    MS-Off Ver
    2008 (Mac)
    Posts
    28

    Re: 9 Item List=(3 Columns, 10 Rows) --> 1 Row (40 columns (blank in between the 10 items)

    The data that I am selecting are either derivatives or SE/TE Common Spec (publishing terms), and so once I have the list of data that I need to add to one of the lines of the spreadsheet, i am going to have to add the list of products (2 columns), and then add either DERIVATIVE or SE/TE Common Spec, and then a blank space before the next...
    If its easier, I can just copy the ten items in the list, add the DERIVATIVE after it, then I have a 3 column list x 10 (or more) items, and I just need to turn it into a 1 row list, with a blank in between...
    does that help?

  8. #8
    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: 9 Item List=(3 Columns, 10 Rows) --> 1 Row (40 columns (blank in between the 10 items)

    Quote Originally Posted by chriscovino View Post

    ............If its easier, I can just copy the ten items in the list, add the DERIVATIVE after it, then I have a 3 column list x 10 (or more) items, and I just need to turn it into a 1 row list, with a blank in between...
    does that help?
    Or possibly a four "column" source list like this?

    Row\Col
    A
    B
    C
    D
    E
    1
    2
    9780618804627* HMM GA BLENDED USE PLAN GUIDE L2 07 DERIVATIVE
    <blank>
    3
    9780618804795* HMM GA EPUPIL EDTN ON CD-ROM LV2 07 DERIVATIVE
    <blank>
    4
    9780618804856* HMM GA ETCHER EDTN ON CD-ROM LV2 07 DERIVATIVE
    <blank>
    5
    9780618813261* HMM GA ONLN EPE 1YR SNGL USR LV2 07 DERIVATIVE
    <blank>
    6
    9780618813551* HMM GA ONLN EPE 6YR SNGL USR LV2 07 DERIVATIVE
    <blank>
    7
    9780618813612* HMM GA ONLN ETE 1YR SNGL USR LV2 07 DERIVATIVE
    <blank>
    8
    9780618813674* HMM GA ONLN ETE 6YR SNGL USR LV2 07 DERIVATIVE
    <blank>
    9
    9780618896349* HMM GA PERFORMANCE TASK GDE LV 2 07 DERIVATIVE
    <blank>
    10
    9780618799961* HMM GA UNIT RESOURCES BOOKLET L2 07 DERIVATIVE
    <blank>
    11
    9780618804672* HMM GEORGIA HOMEWORK BOOK LVL 2 07 DERIVATIVE
    <blank>
    12
    9780618804733* HMM GEORGIA PRACTICE BOOK LVL 2 07 DERIVATIVE
    <blank>
    13
    9780618590322* MATH GEORGIA PUPIL EDITION LVL 2 07 DERIVATIVE
    <blank>
    14
    9780618590483* MATH GEORGIA TE VOL 1 LEVEL 2 07 DERIVATIVE
    <blank>
    15
    9780618590490* MATH GEORGIA TE VOL 2 LEVEL 2 07 DERIVATIVE
    <blank>
    16

  9. #9
    Registered User
    Join Date
    08-15-2014
    Location
    Madison, WI
    MS-Off Ver
    2008 (Mac)
    Posts
    28

    Re: 9 Item List=(3 Columns, 10 Rows) --> 1 Row (40 columns (blank in between the 10 items)

    I could definitely create a list like that; Would it then be easy to turn that into a 1 row list?? Thank you in advance, as always!!

  10. #10
    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: 9 Item List=(3 Columns, 10 Rows) --> 1 Row (40 columns (blank in between the 10 items)

    I will attempt it later this evening.

  11. #11
    Registered User
    Join Date
    08-15-2014
    Location
    Madison, WI
    MS-Off Ver
    2008 (Mac)
    Posts
    28

    Re: 9 Item List=(3 Columns, 10 Rows) --> 1 Row (40 columns (blank in between the 10 items)

    Thank you, Flame!! I've spent over five hours researching this today, and I am thinking that an OFFSET function might help?

  12. #12
    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: 9 Item List=(3 Columns, 10 Rows) --> 1 Row (40 columns (blank in between the 10 items)

    Was able to get to it sooner than I expected.

    Try this (I used A20) and fill across to BD20:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    It turns out that the fourth column of source data was not necessary. The formula generates a fortunate error every forth column/cell. I used IFERROR to turn that into the blanks separating each record.

    I noticed you uploaded an XLS file. Your profile says Mac 2008. I am not familiar with Mac versions. Are there backwards compatibility considerations? If so the formula will need to be modified.

    File is attached. Formula row highlighted.

  13. #13
    Registered User
    Join Date
    08-15-2014
    Location
    Madison, WI
    MS-Off Ver
    2008 (Mac)
    Posts
    28

    Re: 9 Item List=(3 Columns, 10 Rows) --> 1 Row (40 columns (blank in between the 10 items)

    I'm actually using Excel 2011 (Mac's Version of 2010)... I will try this in the morning; Thank you SOOOOOO much!

  14. #14
    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: 9 Item List=(3 Columns, 10 Rows) --> 1 Row (40 columns (blank in between the 10 items)

    You're welcome. Look forward to your feedback.

  15. #15
    Registered User
    Join Date
    08-15-2014
    Location
    Madison, WI
    MS-Off Ver
    2008 (Mac)
    Posts
    28

    Re: 9 Item List=(3 Columns, 10 Rows) --> 1 Row (40 columns (blank in between the 10 items)

    Flame,
    Seeing that this formula clearly worked in the example I provided, i decided to try to apply it to the current scenario I had... briefly, I have a Master Data sheet, and two more sheets- 1 where I will paste the list, and one where I'll enter the formula and get the result....
    This: =IFERROR(INDEX($A$2:$C$15,CEILING(COLUMNS($A:A)/4,1),LOOKUP(COLUMNS($A:A),MOD(COLUMNS($A:A),4))),"")

    turned into : =IFERROR(INDEX(Sheet2!A1:C44,CEILING(COLUMNS($A:A)/4,1),LOOKUP(COLUMNS($A:A),MOD(COLUMNS($A:A),4))),"")
    and my result was... 9780618984954* DERIVATIVE 0 0 0 0 0 0 0 0 0 0 0 (I stopped dragging at this point)
    I didn't get the 44 products like i was hoping; Did I do something wrong?

  16. #16
    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: 9 Item List=(3 Columns, 10 Rows) --> 1 Row (40 columns (blank in between the 10 items)

    Try using absolute addressing in your first argument in INDEX. That range needs to be "anchored" or the formula will start referencing a different range as you drag across. This Sheet2!$A$1:$C$44 and not this Sheet2!A1:C44

+ 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. Combine Line Items From Columns/List
    By BrewsterBruiser in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 07-31-2014, 10:17 AM
  2. A column with mixed item list needs to be sorted out in separate columns
    By vishal karmocha in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 05-27-2014, 06:21 PM
  3. Replies: 1
    Last Post: 04-07-2014, 05:35 PM
  4. How to create drop down list in Excel where each list item is based on two columns?
    By matkiros in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-11-2012, 08:50 AM
  5. [SOLVED] convert 10,000 item column into 1,000 rows by 10 columns
    By McDuck in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-23-2006, 02:55 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