+ Reply to Thread
Results 1 to 5 of 5

Thread: Formatting

  1. #1
    Registered User
    Join Date
    02-16-2010
    Location
    Tallinn, Estonia
    MS-Off Ver
    Excel 2003
    Posts
    11

    Formatting

    I need to export products into another shop, now the attributes are as follows:

    code size qty size qty size qty
    3456 M 5 L 5 XL 5

    In the new shop it should be, each on different row:

    code size qty
    3456 M 5
    3456 L 5
    3456 XL 5

    Is there any way doing it automatically to avoid doing it 1 by one? Thanks for you help!

  2. #2
    Forum Guru darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Colorado, US
    MS-Off Ver
    2007
    Posts
    2,140

    Re: Help needed in formatting

    See attached. I put an example in Sheet 1 and the new table in Sheet 2. hth.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    02-16-2010
    Location
    Tallinn, Estonia
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Formatting

    Thank you very much indeed! You saved me a lot of work!

  4. #4
    Registered User
    Join Date
    02-16-2010
    Location
    Tallinn, Estonia
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Formatting

    Hello again. I can't figure out how to make it that it will fetch data from sheet 1 till column O (now it is till column G). Would you like to fix this? Thank you!

  5. #5
    Forum Moderator teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    2003 & 2010
    Posts
    10,042

    Re: Formatting

    Hi,

    Just change the references to column G to O in the formulas.

    this in cell A3, copied down

    Code:
    =IF(COUNT(INDEX(Sheet1!$B:$B,MATCH(A2,Sheet1!$A:$A,0)):INDEX(Sheet1!$O:$O,MATCH(A2,Sheet1!$A:$A,0)))>COUNTIF($A$1:$A2,A2),A2,INDEX(Sheet1!$A:$A,MATCH(A2,Sheet1!$A:$A,0)+1))
    this in cell B2, copied down

    =INDEX(Sheet1!$A:$O,MATCH($A2,Sheet1!A:A,0),COUNTIF($A$2:$A2,$A2)*2)

    this in cell C2, copied down

    =INDEX(Sheet1!$A:$O,MATCH($A2,Sheet1!A:A,0),COUNTIF($A$2:$A2,$A2)*2+1)
    teylyn
    Microsoft MVP - Excel
    At Excelforum, you can say "Thank you!" by clicking the icon below the post.

    Avoid pie charts with more than two data points. Why? See here (pdf, 559 kb). The only acceptable pie chart is here.

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.2.0