+ Reply to Thread
Results 1 to 8 of 8

Excel 2007 : Want to make a Order List

Hybrid View

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

    Want to make a Order List

    I have already upload the attachment here.

    I want to make a order list but don't how to set the formula in excel, hope anyone can help me, it's important for me, please

    1.) If the value in the Quantity (column D) is >=1, then will copy all the row to the Order (A13) if <1, skip it

    2.) Will have the total weight after the order list was made, e.g. we have 47 kg in my list, then check back the cost from sheet "weight", that is $15 and paste it in somewhere in the order list

    Hope these 2 question no need to use the VB program.

    Thx everyone
    Attached Files Attached Files
    Last edited by terrywai; 05-25-2009 at 12:44 PM.

  2. #2
    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.

  3. #3
    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.

  4. #4
    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

  5. #5
    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

  6. #6
    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

    If you start adding more "products" you will need to begin thinking about using VBA instead... the formula will become bigger and less efficient, otherwise.

  7. #7
    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
    If you start adding more "products" you will need to begin thinking about using VBA instead... the formula will become bigger and less efficient, otherwise.
    Sorry, because i still learning for the VBA and my program knowlege is equal to 0....... do you have any reference about that?

  8. #8
    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

    Try posting the question in the Programming forum with all details (do not add complications as you go along as you did with this thread)

+ 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