Creating order form in Excel 2007; Need to copy entire row if one cell has data

moonpie71

New Member
Joined
Mar 28, 2008
Messages
8
Good afternoon,

I'm trying to create a very simple order form, and would appreciate some assistance. It's been a while since I've done this in Excel, and I couldn't find an answer when I searched. (I may be a lousy searcher, though.)

I want the user to enter a quantity in Column E of the "Common Items" worksheet, and have all the rows with quantities copied to the "Order" worksheet. (On the "Order" copy below, I just did a copy/paste to show the desired effect.)

Excel 2007
ABCDEF
1Item NumberDescriptionUnitPriceQtyTotal
2BX-2B1324X0.9% NaCL 1000ml BagsCS$23.525$117.60
3AB-1966-070.9% NaCL 30ml MDV 25sPK$19.222$38.44
4KE-5150Alcohol Preps MED 200sBX$1.22$0.00
5DY-1113Alcohol Preps MED STR 200sBX$1.30$0.00
6NUT-99990Bandage Cloth 1x3 100sBX$2.73$0.00
7NUT-99991Bandage Cloth 3/4x3 100sEA$6.082$12.16
8NUT-1595033Bandage Cloth FlexibleBX$2.34$0.00

<tbody>
</tbody>
Common Items



Excel 2007
ABCDEF
1Name:
2Deliver to:
3
4Item NumberDescriptionUnitPriceQtyTotal
5BX-2B1324X0.9% NaCL 1000ml BagsCS$23.525$117.60
6AB-1966-070.9% NaCL 30ml MDV 25sPK$19.222$38.44
7NUT-99991Bandage Cloth 3/4x3 100sEA$6.082$12.16
8

<tbody>
</tbody>
Order



I'm pretty sure this can be accomplished with an If/Then, but I'm lost! Optimally, they'd enter their quantities, click on the Order sheet and hit print. Thanks in advance for your kind assistance and reply!

Nancy
 
Last edited:

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Am I right in saying that the user will in put a number in column E on the Order form sheet and then copy the row from copy the relevant row on the Common items? If so, I can see a big flaw as in row 3 and 7 on the Common Items both have a 2 as a quantity. How will do separate these two items?

Would it be easier for the user to select the item number and then copy the row from there?
 
Upvote 0
Am I right in saying that the user will in put a number in column E on the Order form sheet and then copy the row from copy the relevant row on the Common items? If so, I can see a big flaw as in row 3 and 7 on the Common Items both have a 2 as a quantity. How will do separate these two items?

Would it be easier for the user to select the item number and then copy the row from there?


The only column that the user will enter data is Column E. If they need two boxes of the item on row 4, and 2 boxes of the item on row 12, and 7 boxes of the item on row 32, then I need (the entire) rows 4, 12 and 32 copied over. I only entered quantities in Column E as an example.

Thanks for your reply!
 
Upvote 0
Excel Workbook
ABCDEFG
1User Form
2Item NumberDescriptionUnitPriceQtyTotal
3BX-2B1324X0.9% NaCL 1000ml BagsCS$23.521$117.60
4AB-1966-070.9% NaCL 30ml MDV 25sPK$19.22$38.44
5KE-5150Alcohol Preps MED 200sBX$1.22$0.00
6DY-1113Alcohol Preps MED STR 200sBX$1.303$0.00
7NUT-99990Bandage Cloth 1x3 100sBX$2.73$0.00
8NUT-99991Bandage Cloth 3/4x3 100sEA$6.08$12.16
9NUT-1595033Bandage Cloth FlexibleBX$2.344$0.00
10
11Order Sheet
12
13BX-2B1324X0.9% NaCL 1000ml BagsCS$23.521$117.60
14DY-1113Alcohol Preps MED STR 200sBX$1.303$0.00
15NUT-1595033Bandage Cloth FlexibleBX$2.344$0.00
Sheet1



Copy the formula across and change the index range
 
Upvote 0
Spreadsheet Formulas
CellFormula
B13{=IF(ROWS($B$13:B13)>COUNTA($F$3:$F$9),"",INDEX($B$3:$B$9,SMALL(IF($F$3:$F$9<>"",ROW($B$3:$B$9)-ROW($B$3)+1),ROWS($B$13:B13))))}

<tbody>
</tbody>
Formula Array:
Produce enclosing
{ } by entering
formula with CTRL+SHIFT+ENTER!

<tbody>
</tbody>


Copy the formula across and change the index range

Holy cow, you're smart. Am I correct that I paste this in the "Order" worksheet? My "Common Items" worksheet data (not including headers) is in area A2:F76. When I paste the formula in B13 of "Order", and copy it across, the row fills with the word "Description". I'll keep playing with it to see if I can figure it out on my own.

Thanks so much!
 
Upvote 0
No problem at all, glad to help.

Yes, you need this on the Order worksheet. The best way would be create named ranges for
ItemNumber
Description
Unit
Price
Qty
Total columns.

<tbody>
</tbody>

This will make it easier for you to insert it into the Index array.

Any problems let me know.
 
Last edited:
Upvote 0
I'm a newbie to IF formulas and also creating the same order form in a new worksheet. I'm testing above table as example, but your provided formula is not working for me. What am I doing wrong?
 
Upvote 0
You need to use Control+Shift+Enter to apply the formula. This is becuase the Fnction IF can not handle an array by itself, it is an array formula. If you are still having problems post what you have and I try to help.
 
Upvote 0
I have also tried Control+Shift+Enter. I pasted the formula on the 'order form' worksheet and changed the cell numbers.

In 'catalogue' worksheet I have from A1 cel Item Number till F8 cel $0.00. In the second worksheet 'order form' I have the headers from B3 to G3 on a row Item Number - Description - Unit - Price - Qty - Total. On B4 the pasted formula {=IF(ROWS($B$4:B4)>COUNTA($F$2:$F$8),"",INDEX($B$2:$B$8,SMALL(IF($F$2:$F$8<>"",ROW($B$2:$B$8)-ROW($B$2)+1),ROWS($B$4:B4))))}
 
Upvote 0
Here is my excel file in which I want to create registration form and a order form. http://we.tl/WycfOaHx9n
I want to keep up al the orders in the registration sheet with IF out of the catalogue sheet. Thereafter when every new order is made in the registration sheet I want a order form to be printed out. Is it possible to create buttons like 'make' and 'print' in the sheets?
 
Upvote 0

Forum statistics

Threads
1,216,179
Messages
6,129,332
Members
449,502
Latest member
TSH8125

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top