+ Reply to Thread
Results 1 to 8 of 8

Excel 2007 : Want to make a Order List

Hybrid View

  1. #1
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Want to make a Order List

    Put this formula in A13

    =IF(ROWS($A$1:$A1)>COUNTIF($D$2:$D$7,">=1"),"",INDEX(A$2:A$7,SMALL(IF($D$2:$D$7>=1,ROW($D$2:$D$7)-ROW($D$2)+1),ROWS($A$1:$A1))))
    Then hold the CTRL and SHIFT keys down and hit ENTER. You will notice { } brackets appear around the formula. Then copy the formula down and across to column D.

    Note: If you don't want VBA involved, you will need to allow for some blank rows underneath so that the cells will either fill or be "blank" based on your quantities....

    Note2: If you make adjustments to this formula, you will have to reconfirm it with CTRL+SHIFT+ENTER each time, and then re-copy it over to the other cells.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  2. #2
    Registered User
    Join Date
    05-22-2009
    Location
    HK
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: Want to make a Order List

    Sorry, NBVC, can i help me one more
    i modify the list now
    if i use your formula into the list, how and where i paste it.

    Now, i have 2 product list, and also the same condition, if the quantity column is >=1, paste the whole row to the "Order" Sheet

    Thanks NBVC
    Attached Files Attached Files
    Last edited by terrywai; 05-22-2009 at 02:36 PM.

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Want to make a Order List

    See attached...

    Formula in A2:

    =IF(ROW()-1<=COUNTIF(Product1!$D$2:$D$8,">=1"),INDEX(Product1!A$2:A$8,SMALL(IF(Product1!$D$2:$D$8>=1,ROW(Product1!$D$2:$D$8)-ROW(Product1!$D$2)+1),ROW()-1)),IF(ROW()-COUNTIF(Product1!$D$2:$D$8,">=1")-1<=COUNTIF(Product2!$D$2:$D$8,">=1"),INDEX(Product2!A$2:A$8,SMALL(IF(Product2!$D$2:$D$8>=1,ROW(Product2!$D$2:$D$8)-ROW(Product2!$D$2)+1),ROW()-COUNTIF(Product1!$D$2:$D$8,">=1")-1)),""))
    confirmed with CTRL+SHIFT+ENTER and copied across 4 columns and down to row 17 (to cover all 8 items from each product sheet).
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    05-22-2009
    Location
    HK
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: Want to make a Order List

    Quote Originally Posted by NBVC View Post
    See attached...

    Formula in A2:

    =IF(ROW()-1<=COUNTIF(Product1!$D$2:$D$8,">=1"),INDEX(Product1!A$2:A$8,SMALL(IF(Product1!$D$2:$D$8>=1,ROW(Product1!$D$2:$D$8)-ROW(Product1!$D$2)+1),ROW()-1)),IF(ROW()-COUNTIF(Product1!$D$2:$D$8,">=1")-1<=COUNTIF(Product2!$D$2:$D$8,">=1"),INDEX(Product2!A$2:A$8,SMALL(IF(Product2!$D$2:$D$8>=1,ROW(Product2!$D$2:$D$8)-ROW(Product2!$D$2)+1),ROW()-COUNTIF(Product1!$D$2:$D$8,">=1")-1)),""))
    confirmed with CTRL+SHIFT+ENTER and copied across 4 columns and down to row 17 (to cover all 8 items from each product sheet).
    How about if i want to add one more list in this??
    =IF(ROW()-1<=COUNTIF(Product1!$D$2:$D$8,">=1"),INDEX(Product1!A$2:A$8,SMALL(IF(Product1!$D$2:$D$8>=1,ROW(Product1!$D$2:$D$8)-ROW(Product1!$D$2)+1),ROW()-1)),
    IF(ROW()-COUNTIF(Product1!$D$2:$D$8,">=1")-1<=COUNTIF(Product2!$D$2:$D$8,">=1"),INDEX(Product2!A$2:A$8,SMALL(IF(Product2!$D$2:$D$8>=1,ROW(Product2!$D$2:$D$8)-ROW(Product2!$D$2)+1),ROW()-COUNTIF(Product1!$D$2:$D$8,">=1")-1)),""))
    IF(ROW()-COUNTIF(Product2!$D$2:$D$8,">=1")-1<=COUNTIF(Product3!$D$2:$D$8,">=1"),INDEX(Product3!A$2:A$8,SMALL(IF(Product3!$D$2:$D$8>=1,ROW(Product3!$D$2:$D$8)-ROW(Product3!$D$2)+1),ROW()-COUNTIF(Product2!$D$2:$D$8,">=1")-1)),""))
    After i add "Product3", and add the above code but i can't accept, what's wrong of my code

    Thx
    Attached Files Attached Files

+ Reply to Thread

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.6.0 RC 1