Using IF statement > 0 to copy data from separate worksheet - Need help - Brain Fried

jclegg42002

New Member
Joined
Sep 6, 2014
Messages
12
Office Version
  1. 365
Platform
  1. Windows
So I am stuck and I know this has to be an easy fix... I have always used this forum (for years) because it actually has smart people running it! Could anyone help?

Sheet1 contains the following data starting at row 9 (to row 80):

Bid UnitShort DescriptionUnitQtyUnit Rate (1)TotalLong DescriptionSupplier Response Notes/Comments
WNI-100Install / Mount Antenna or Integrated AntennaPer Node
$304.62​
WNI-105Install / Mount Additional Antenna or Integrated AntennaPer Antenna
$257.75​
WNI-110Install / Mount RadioPer Node
$275.33​

if QTY is > 0 (aka 1 or whatever numeric character)

I want to copy that whole row to Sheet2 - I am trying to capture the Bid Unit / Short Description / Unit / Qty / Total / Supplier Comments (this is for change order requests, and I figure copying the whole row would just be easiest)

Can someone make me feel stupid real fast on how I would reach this goal?
Thanks ahead of time!!!!
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Try this macro:
VBA Code:
Sub CopyRows()
    Application.ScreenUpdating = False
    With Cells(9, 1).CurrentRegion
        .AutoFilter 4, ">0"
        ActiveSheet.AutoFilter.Range.Offset(1).Copy Sheets("Sheet2").Cells(Sheets("Sheet2").Rows.Count, "A").End(xlUp).Offset(1)
    End With
    Range("A1").AutoFilter
    Application.ScreenUpdating = True
End Sub
 
Upvote 0
5_MATRIX_COR.xlsb
ABCDEFG
9Bid UnitShort DescriptionUnitQtyUnit Rate (1)TotalSupplier Response Notes/Comments
10WNI-100Install / Mount Antenna or Integrated AntennaPer Node$304.62 
11WNI-105Install / Mount Additional Antenna or Integrated AntennaPer Antenna$257.75 
12WNI-110Install / Mount RadioPer Node$275.33 
13WNI-115Install / Mount Additional RadioPer Radio$222.60 
14WNI-120Install Fiber Jumper (Fiber Demarc to Radio)Foot$1.00$4.69$4.69testies
15WNI-125Install Power Circuit Load Side (Electrical Panel to Radio)Foot$4.69 
16WNI-130Install Power Circuit Line Side (Power Co. to Electrical Panel)Foot$5.86 
17WNI-135Install RF Jumper Cable (Antenna to Radio)Foot$5.86 
18WNI-140Install / Mount Outdoor RectifierPer Node$152.31 
19WNI-145Install / Mount Outdoor Additional RectifierPer Rect.$128.88 
20WNI-150Install / Mount Fiber Mux or BoxPer Mux/Box$152.31 
21WNI-155Install Integrated Antenna/Antenna/Radio Stealth or Shroud up to 3 RadiosPer Node$468.64 
22WNI-160Install / Mount Meter Socket & or Load CenterPer Node$205.03 
23WNI-165Install Utility Pedestal Per Node$351.48 
24WNI-170Install Ground RodPer Rod$58.58 
25WNI-175Install H-FramePer Node$503.79 
26WNI-180Install Splitter/Di-Tri-Quad plexer/filterPer Device$70.30 
27WNI-185Install Ground Mounted Cabinet or ShroudPer Node$339.76 
28WNI-190Mobilization - New Build when New/Replaced Pole by SupplierPer Node$1,591.85 
29WNI-195Mobilization - New Build when using Existing PolePer Node$1,082.46 
30WNI-200Mobilization - Overlay/ModificationPer Node$668.58 
31WNI-205Mobilization - Repair/TroubleshootPer Node$1.00$318.37$318.37tesies2
32WNI-210Mobilization - Adder Install Above PowerPer Node$573.07 
33WNI-215Mobilization - Adder Directional BorePer Node$2,027.59 
34WNI-220Mobilization - Adder Mechanical TrencherPer Node$636.74 
35WNI-225Mobilization - Adder Reinstate Asphalt or Concrete If Using MachineryPer Node$795.92 
36WNI-230Mobilization - Adder Long Distance >100 mile Radius VZW Warehouse to SitePer Node$732.25 
37WOS-100General LaborHr$61.27 
38WOS-105Electrician or Tower TechHr$95.60 
39WOS-110General Operative & Bucket TruckHr$110.48 
40PT-100Permit Supplier Submit/Pickup AllPer Node$527.22 
41PT-105Permit Supplier Pickup AllPer Node$205.03 
42PT-110Permit Supplier Submit/Pickup Electrical or TrenchingPer Node$292.90 
43P-100Install Direct Bury Pole (Wood, Concrete, Steel, Composite) new locationPer Node$966.57 
44P-105Replace Direct Bury Pole (Wood, Concrete, Steel, Composite) existing locationPer Node$1,318.05 
45P-110Install Anchor Base Pole (Concrete, Steel, Composite) on new foundationPer Node$1.00$790.83$790.83
46P-115Remove Anchor Base Pole (Concrete, Steel, Composite)Per Node$556.51 
47P-120Replace Anchor Base Pole (Concrete, Steel, Composite) reuse foundationPer Node$1,171.60 
48P-125Install Pole Anchor Base Concrete FoundationPer Node$4,686.41 
49P-130Install Pole Anchor Base Precast Concrete FoundationPer Node$2,929.00 
50P-135Replace Pole FoundationPer Node$6,150.91 
51P-140Install Helical Anchor FoundationPer Node$1,113.02 
52P-145Adder Rock Excavation for direct bury pole or foundationFoot$76.15 
53P-150Install or Replace PhotocellPer Node$1.00$70.30$70.30
54P-155Install New Light FixturePer Node$199.17 
55P-160Replace Light FixturePer Node$246.04 
56WDC-100Construction – New Underground 1x2" HDPE (Mechanical) - 6" to 12" coverFoot$5.86 
57WDC-101Construction – New Underground 1x2" HDPE (Mechanical) - 13" to 24" coverFoot$7.03 
58WDC-102Construction – New Underground 1x2" HDPE (Mechanical) - 25" to 36" coverFoot$8.20 
59WDC-103Remove and Reinstate Asphalt (2" Increments)Sq Ft$15.23 
60WDC-104Remove and Reinstate Concrete (2" Increments)Sq Ft$15.23 
61WDC-105Construction – New Underground 1x2" HDPE (Bore)Foot$11.21 
62WDC-106Place Handhole (up to 3' x 3')Each$527.22 
63WDC-120Construction – Direct BuriedFoot$7.03 
64WDC-121Construction - New Underground MicroTrenchFoot$21.09 
65WDC-130Construction Hand Dig - Flex Pipe or Conduit - up to 18" coverFoot$8.79 
66WDC-131Construction Hand Dig - Flexible Pipe or Conduit - 19" to 24" coverFoot$9.67 
67WDC-132Construction Hand Dig - Flexible Pipe or Conduit - 25" to 36" coverFoot$10.54 
68WDC-133Construction Hand Dig Adder - Flex Pipe or Conduit - add'l depth in 6" incrementsFoot$2.34 
69WDC-200Construction - Existing Underground (VZ owned/3rd party) Include MicroductFoot$4.10 
70WDC-300Construction - Install Aerial Fiber Cable (New/Overlash)Foot$2.34 
71WDC-500Fiber Cable Prep/Splicing/Testing (Loose Tube)Fiber$36.32 
72WDC-510Fiber Cable Prep/Splicing/Testing (Ribbon)Fiber$30.46 
73WDMISC-1New Underground (Mechanical) through Rock in 6" increments (Adder WDC-1xx)Foot$11.72 
74WDMISC-2New Underground (Bore) through Rock (Adder WDC-105)Foot$36.98 
75WDMISC-3Fiber Cable & Tracer Wire Installation (Adder WDC-1xx/WDC-200)Foot$1.76 
76WDMISC-4Microduct Installation (Adder WDC-1xx)Foot$2.64 
77WDMISC-5Microcable Installation within Microduct (Adder WDC-120/WDMISC-4)Foot$2.05 
78WDE-100Fiber Drop Design UndergroundPer Drop$2,226.04 
79WDE-105Fiber Drop Design AerialPer Drop$2,226.04 
Sheet1
Cell Formulas
RangeFormula
F10:F79F10=D10*E10
 
Upvote 0
5_MATRIX_COR.xlsb
ABCDEFGH
2MATRIX CHANGE ORDER FORM
3
4Project Name :GN INDY ####Purchase Order#NMIK123456
5
6Date:3/21/2020Change Order Amount (CO) $ 1,184.18
7
8Original Contract Amount (OCA)$11,111.00
9
10Total Change Order to Date (COTD)$0.00
11(Total for all CO's to date, but not including this one)
12
13THIS CHANGE ORDER AMOUNT (CO)$1,184.18
14
15Revised Contract Amount$12,295.18
16
17This Change Order is Necessary Due to:
18If the rows are > 0 I want them to display here.
19and here
20and here
21and here
Sheet2
Cell Formulas
RangeFormula
B4B4=Sheet1!C3
E4E4=Sheet1!C5
B6B6=Sheet1!C7
E6E6=Sheet1!F81
B8B8=Sheet1!C6
B13B13=E6
B15B15=SUM(B8+B10+B13)
 
Upvote 0
What version of Xl are you using?
 
Upvote 0
Thanks for that, if you modify you account seetings you can display that under your avatar, so people don't have to ask every time.

How about
+Fluff.xlsm
ABCDEFGH
1
2MATRIX CHANGE ORDER FORM
3
4Project Name :0Purchase Order#0
5
6Date:0Change Order Amount (CO)0
7
8Original Contract Amount (OCA)0
9
10Total Change Order to Date (COTD)0
11(Total for all CO's to date, but not including this one)
12
13THIS CHANGE ORDER AMOUNT (CO)0
14
15Revised Contract Amount0
16
17This Change Order is Necessary Due to:
18WNI-120Install Fiber Jumper (Fiber Demarc to Radio)Foot14.74.686405testies
19WNI-205Mobilization - Repair/TroubleshootPer Node1318318.3699tesies2
20P-110Install Anchor Base Pole (Concrete, Steel, Composite) on new foundationPer Node1791790.83090
21P-150Install or Replace PhotocellPer Node17070.296080
22       
23       
24
Sheet2
Cell Formulas
RangeFormula
B4B4=Sheet1!C3
E4E4=Sheet1!C5
B6B6=Sheet1!C7
E6E6=Sheet1!F81
B8B8=Sheet1!C6
B13B13=E6
B15B15=SUM(B8+B10+B13)
A18:G23A18=IFERROR(INDEX(Sheet1!A$10:A$100,AGGREGATE(15,6,(ROW(Sheet1!A$10:A$100)-ROW(Sheet1!A$10)+1)/(Sheet1!$D$10:$D$100>0),ROWS(A$18:A18))),"")
 
Upvote 0
Updated profile, my apologies for that... also is there any way to force the return values to come in as currency? When I use your formula it changes the cell formatting?
 
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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