+ Reply to Thread
Results 1 to 9 of 9

create an order form from an input sheet

Hybrid View

Spark9871 create an order form from an... 03-29-2018, 02:55 PM
63falcondude Re: create an order form from... 03-29-2018, 02:59 PM
Spark9871 Re: create an order form from... 03-29-2018, 03:15 PM
63falcondude Re: create an order form from... 03-29-2018, 03:30 PM
Spark9871 Re: create an order form from... 03-29-2018, 04:04 PM
Alf Re: create an order form from... 03-30-2018, 02:25 AM
Spark9871 Re: create an order form from... 03-30-2018, 03:39 AM
avk Re: create an order form from... 03-30-2018, 03:23 AM
Alf Re: create an order form from... 03-30-2018, 01:13 PM
  1. #1
    Registered User
    Join Date
    07-21-2013
    Location
    Luton, England
    MS-Off Ver
    Excel 2003
    Posts
    9

    create an order form from an input sheet

    Hi
    I'm sure this is a very simple fix.
    I would like to create an order form on a separate sheet from inputted data from another sheet.
    Every time I try, I get annoying gaps where there are no quantities.
    (hopefully) I have attached a sheet of what I want the result to look like.
    Attached Files Attached Files

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: create an order form from an input sheet

    Try this in G6:

    =IFERROR(INDEX(A:A,SMALL(IF($C$6:$C$12<>"",ROW($C$6:$C$12)),ROWS($1:1))),"") Ctrl Shift Enter

    Drag to the right then down.

  3. #3
    Registered User
    Join Date
    07-21-2013
    Location
    Luton, England
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: create an order form from an input sheet

    Hi
    Thanks for your quick reply 63falcondude
    but all I get is #NAME? in all cells

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: create an order form from an input sheet

    I just realized that you are using Excel 2003. IFERROR is not supported in 2003.

    Try this instead:

    =IF(ISERROR(INDEX(A:A,SMALL(IF($C$6:$C$12<>"",ROW($C$6:$C$12)),ROWS($1:1)))),"",INDEX(A:A,SMALL(IF($C$6:$C$12<>"",ROW($C$6:$C$12)),ROWS($1:1)))) Ctrl Shift Enter

  5. #5
    Registered User
    Join Date
    07-21-2013
    Location
    Luton, England
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: create an order form from an input sheet

    Hi 63falcondude
    I know I'm missing something simple here,
    it works great on the first line but all the lines below are blank.
    I dragged across to the right and then down to the bottom of my list.
    sorry for my uselessness (if that is a word)
    Attached Files Attached Files

  6. #6
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,784

    Re: create an order form from an input sheet

    Have you tried using "Autofilter"?

    Select range A5:C12, then "Data" -> "Filter" -> "Autofilter"

    Click "drop-down" "Qty" and click "NonBlanks" then click "Copy"

    Click cell A5 (Sheet2) and select Paste Special + All. Remove "Autofilter" from range A5:C12

    And of course one could easily write a macro to do the job.

    Something like this perhaps:

    Sub filter_copy()
    With ActiveSheet
            .AutoFilterMode = False
            .Range("A5").CurrentRegion.AutoFilter
    End With
    
    Selection.AutoFilter Field:=3, Criteria1:="<>"
    ActiveSheet.AutoFilter.Range.Copy
    
    Sheets("Sheet2").Range("A5").PasteSpecial Paste:=xlAll
    Application.CutCopyMode = False
    
    Range("A5").CurrentRegion.AutoFilter
    
    End Sub
    Alf

  7. #7
    Registered User
    Join Date
    07-21-2013
    Location
    Luton, England
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: create an order form from an input sheet

    Quote Originally Posted by Alf View Post
    Have you tried using "Autofilter"?

    Select range A5:C12, then "Data" -> "Filter" -> "Autofilter"

    Click "drop-down" "Qty" and click "NonBlanks" then click "Copy"

    Click cell A5 (Sheet2) and select Paste Special + All. Remove "Autofilter" from range A5:C12

    And of course one could easily write a macro to do the job.

    Something like this perhaps:

    Sub filter_copy()
    With ActiveSheet
            .AutoFilterMode = False
            .Range("A5").CurrentRegion.AutoFilter
    End With
    
    Selection.AutoFilter Field:=3, Criteria1:="<>"
    ActiveSheet.AutoFilter.Range.Copy
    
    Sheets("Sheet2").Range("A5").PasteSpecial Paste:=xlAll
    Application.CutCopyMode = False
    
    Range("A5").CurrentRegion.AutoFilter
    
    End Sub
    Alf
    Thanks Alf
    That worked perfect

  8. #8
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,277

    Re: create an order form from an input sheet

    Try "G6"
    Ensure "CTRL+SHIFT+ENTER"
    Formula: copy to clipboard
    =IF(ISERROR(INDEX(A:A,SMALL(IF($C$6:$C$12<>"",ROW($C$6:$C$12)),ROWS($5:5)))),"",INDEX(A:A,SMALL(IF($C$6:$C$12<>"",ROW($C$6:$C$12)),ROWS($5:5))))


    In H6"
    Formula: copy to clipboard
    =IF(ISERROR(INDEX(B:B,SMALL(IF($C$6:$C$12<>"",ROW($C$6:$C$12)),ROWS($5:5)))),"",INDEX(B:B,SMALL(IF($C$6:$C$12<>"",ROW($C$6:$C$12)),ROWS($5:5))))

    In "I6"
    Formula: copy to clipboard
    =SUMIF($A$6:$A$12,$G6,$C$6:$C$12)

    Copy paste down


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  9. #9
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,784

    Re: create an order form from an input sheet

    You are welcome

    Thanks for feedback and rep.

    Alf

    Ps Happy Easter

+ 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. Looking to create order form; not sure what to search
    By emsterv in forum Excel General
    Replies: 3
    Last Post: 04-06-2016, 07:18 PM
  2. [SOLVED] VBA to create new sheet from template & rename, then write data from input form to it
    By Nickvi1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-01-2015, 07:42 AM
  3. Try to create a order form
    By Olijan29 in forum Excel General
    Replies: 6
    Last Post: 05-23-2015, 09:18 PM
  4. [SOLVED] Order Form to Summarise Order on another sheet with a Submit Order Button
    By KazzICC in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-01-2014, 03:25 AM
  5. Price list input to sales order form
    By rdiamond in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-18-2013, 01:39 PM
  6. Replies: 9
    Last Post: 04-04-2011, 12:03 AM

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