Copy specific cells based on controls checkbox and paste in the next empty row on a table

nstaab07

New Member
Joined
Dec 12, 2024
Messages
4
Office Version
  1. 365
Platform
  1. Windows
I am fairly new to this, but I am sure there has to be a way for this to be done, but i am struggling. I am wanting to copy cells (A8,C8,F8,G8,H8,K8) based on a control checkbox in cell J8. If the box is checked that data would be pasted in the same sheet in a table (M8:R8) in the next available row. I have multiple rows of data that could be checked/unchecked, and if a box is unchecked, i would like it to be removed from the table. I have cut columns and data from the mini sheet to be able to post on here, but should still give an idea of what i am trying to accomplish. Any and all advice would be appreciated, even if I need to go about this another way. Thanks!
Evan Test.xlsm
ABCDEFGHIJKLMNOPQR
1CHEMICAL/TILLAGE PAGE Input Splits Page
2LAND OWNER:#REF!YEAR PLANTED:#REF!
3FARM NAME:#REF!PREVIOUS CROP:#REF!
4LEGAL:#REF!
5CROP PLANTED:#REF!ACRES:#REF!
6TRACT##REF!FARM #:#REF!
7DateAcres AppliedProductRate/ AcreUnitTotal AppliedUnitPriceCost/AcreSplitTotal CostDateProductTotal AppliedUnitPriceTotal Cost
88/7/2024136Cornerstone 5 Plus18.12Oz19.25Gallons$20.00$ 2.83$ 385.05
98/7/2024136Defy LV-610.07Oz10.70Gallons$5.00$ 0.39$ 53.50
108/7/2024136Dicamba DMA Salt8.05Oz8.55Gallons$6.00$ 0.38$ 51.32
118/7/2024136Boneyard3.22Oz3.42Gallons$22.80$ 0.57$ 78.00
12  
1310/7/202490Cornerstone 5 Plus16.05Oz11.29Gallons$20.00$ 2.51$ 225.70
1410/7/202490Defy LV-610.03Oz7.05Gallons$5.00$ 0.39$ 35.26
1510/7/202490Boneyard3.21Oz2.26Gallons$22.80$ 0.57$ 51.46
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
37  
38  
39  
40  
41  
42  
43  
44TOTAL$ 7.65$ 880.30
Sheet1
Cell Formulas
RangeFormula
I2:I3,I5:I6,D2:D6I2=#REF!
F8:F43F8=(IF(E8="oz",D8*B8/128,IF(E8="Gallon",D8*B8,IF(E8="pound",D8*B8,IF(E8="Dry Ounce",D8*B8,IF(D8="",""))))))
G8:G43G8=IF(E8="oz","Gallons",IF(E8="Gallon","Gallons",IF(E8="Pound","Pounds",IF(E8="Dry Ounce","Ounces",IF(E8="","")))))
I8:I43I8=IF(H8="","",F8*H8/B8)
I44,K44I44=SUM(I8:I43)
K8:K43K8=IF(I8="","",I8*B8)
Cells with Data Validation
CellAllowCriteria
H8:H43List=XLOOKUP(C8,Level1Choice,Level2Result)#
Q8List=XLOOKUP(L8,Level1Choice,Level2Result)#
A8:A43Date>=1/1/2024
M8Date>=1/1/2024
E8:E43List=Units
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
@nstaab07 Welcome.
Assuming Checkboxes in column J, try formula in M8 :
Excel Formula:
=CHOOSECOLS(FILTER(A8:K43,J8:J43=TRUE),1,3,6,7,8,11)


Book1
ABCDEFGHIJKLMNOPQR
1CHEMICAL/TILLAGE PAGEInput Splits Page
2LAND OWNER:#REF!YEAR PLANTED:#REF!
3FARM NAME:#REF!PREVIOUS CROP:#REF!
4LEGAL:#REF!
5CROP PLANTED:#REF!ACRES:#REF!
6TRACT##REF!FARM #:#REF!
7DateAcres AppliedProductRate/ AcreUnitTotal AppliedUnitPriceCost/AcreSplitTotal CostDateProductTotal AppliedUnitPriceTotal Cost
845511136Cornerstone 5 Plus18.12Oz19.2525Gallons202.83125385.0545511Cornerstone 5 Plus19.2525Gallons20385.05
945511136Defy LV-610.07Oz10.699375Gallons50.39335937553.49687545511Boneyard3.42125Gallons22.878.0045
1045511136Dicamba DMA Salt8.05Oz8.553125Gallons60.3773437551.3187545572Cornerstone 5 Plus11.2851563Gallons20225.703125
1145511136Boneyard3.22Oz3.42125Gallons22.80.573562578.004545572Boneyard2.25703125Gallons22.851.4603125
12    
134557290Cornerstone 5 Plus16.05Oz11.28515625Gallons202.5078125225.703125
144557290Defy LV-610.03Oz7.05234375Gallons50.39179687535.26171875
154557290Boneyard3.21Oz2.25703125Gallons22.80.5717812551.4603125
16    
17    
18    
Sheet2
Cell Formulas
RangeFormula
I2:I3,I5:I6,D2:D6I2=#REF!
F8:F18F8=(IF(E8="oz",D8*B8/128,IF(E8="Gallon",D8*B8,IF(E8="pound",D8*B8,IF(E8="Dry Ounce",D8*B8,IF(D8="",""))))))
G8:G18G8=IF(E8="oz","Gallons",IF(E8="Gallon","Gallons",IF(E8="Pound","Pounds",IF(E8="Dry Ounce","Ounces",IF(E8="","")))))
M8:R11M8=CHOOSECOLS(FILTER(A8:K43,J8:J43=TRUE),1,3,6,7,8,11)
I8:I18I8=IF(H8="","",F8*H8/B8)
K8:K18K8=IF(I8="","",I8*B8)
Dynamic array formulas.


HTH
 
Upvote 0
@Snakehips, Thanks for your help, this worked perfectly!! Everything I was trying was much more complicated and tedious, but your solution was simple and fast. Thanks Again!
 
Upvote 0
One more ask, I have 2 more "pages" if you will, that are set up exactly like the "chemical/tillage page". Is it possible to add those filters in to this formula as well?

the ranges would be M8:W43, V8:V43 and Y8:AI43 , AH8:AH43

thanks again!
 
Upvote 0
Assuming your Input Split 'Page' is now columns. AK:Ap. try the below formula in AK8

Excel Formula:
=IFERROR(LET(ary,VSTACK(A8:K43,M8:W43,Y8:AI43),CHOOSECOLS(FILTER(ary,INDEX(ary,,10)=TRUE),1,3,6,7,8,11)),"")
 
Upvote 0
Solution

Forum statistics

Threads
1,224,749
Messages
6,180,731
Members
452,995
Latest member
isldboy

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