IF > Value Put in Cell

tfowlerusa

New Member
Joined
Mar 28, 2017
Messages
13
I have a sheet where I am trying to pull only the cell where the value is greater the 3 and put them in column H & I within the same sheet. I have a list in Table 1 where if "F" is > the 3 with conditional formatting on. Is there a way to pull only data from Table 1 with Qty > then 3 and match it like in Table 2 columns "H" & "I"? ( I manually created the columns in Table 2 ) Thank you.

Table 1
[TABLE="class: grid, width: 200"]
<tbody>[TR]
[TD="align: center"]E[/TD]
[TD="align: center"]F[/TD]
[/TR]
[TR]
[TD]<style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style>[TABLE="width: 0"]
<tbody>[TR]
[TD="align: center"]Event/Vendor/Tool[/TD]
[/TR]
[TR]
[TD="align: center"]JQ05-AMAT-EMO[/TD]
[/TR]
[TR]
[TD="align: center"]JXD1-AMAT-TSA[/TD]
[/TR]
[TR]
[TD="align: center"]JS07-AMAT-He FLOW[/TD]
[/TR]
[TR]
[TD="align: center"]JS07-AMAT-LOST PLASMA[/TD]
[/TR]
[TR]
[TD="align: center"]JO01-LAM-LOST PLASMA[/TD]
[/TR]
[TR]
[TD="align: center"]JS05-AMAT-IMPEDENCE FAULT[/TD]
[/TR]
[TR]
[TD="align: center"]JQ04-AMAT-HO Defect[/TD]
[/TR]
[TR]
[TD="align: center"]JLD2-AMAT-HEATER[/TD]
[/TR]
[TR]
[TD="align: center"]JO01-LAM-PLY[/TD]
[/TR]
[TR]
[TD="align: center"]JQ04-AMAT-UV Lamp[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]<style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style>[TABLE="width: 0"]
<tbody>[TR]
[TD="align: center"]Tx Wafer Qty[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[/TR]
[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FF9900]#FF9900[/URL] , align: center"]8[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[/TR]
[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FF9900]#FF9900[/URL] , align: center"]6[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]

Table 2
[TABLE="width: 200"]
<tbody>[TR]
[TD="align: center"]H[/TD]
[TD="align: center"]I[/TD]
[/TR]
[TR]
[TD]<style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style>[TABLE="width: 0"]
<tbody>[TR]
[TD="align: center"]Event/Vendor/Tool[/TD]
[/TR]
[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFF00]#FFFF00[/URL] , align: center"]Avg Per Week[/TD]
[/TR]
[TR]
[TD="align: center"]JS07-AMAT-LOST PLASMA[/TD]
[/TR]
[TR]
[TD="align: center"]JQ04-AMAT-UV Lamp[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]<style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style>[TABLE="width: 0"]
<tbody>[TR]
[TD="align: center"]Tx Wafer Qty[/TD]
[/TR]
[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFF00]#FFFF00[/URL] "][/TD]
[/TR]
[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FF9900]#FF9900[/URL] , align: center"]8[/TD]
[/TR]
[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FF9900]#FF9900[/URL] , align: center"]6[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Maybe something like this...

Code:
Sub CreateYourTable()
Dim Cntr As Integer


    With Sheets("sheet1")
        .Range("H:I").ClearContents
    
        For Cntr = 1 To Application.WorksheetFunction.CountA(.Range("E:E")) - 1
            If .Range("E1").Offset(Cntr, 1) > 3 Then
                .Range("H1").Offset(Application.WorksheetFunction.CountA(.Range("H:H")), 0).Value = .Range("E1").Offset(Cntr, 0).Value
                .Range("I1").Offset(Application.WorksheetFunction.CountA(.Range("I:I")), 0).Value = .Range("E1").Offset(Cntr, 1).Value
            End If
        Next Cntr
    End With
End Sub
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,915
Members
452,366
Latest member
TePunaBloke

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