Copy cell from one sheet to another using checkboxes

will_lower

New Member
Joined
Aug 23, 2024
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I am building a quoting tool within a price file, and as part of this, I have a sheet with the price file on it, and a sheet that will function as a shopping basket, with a blank quoting template.
I am trying to make this as easy as possible by implementing checkboxes (or equivalent), in order to allow the user to check items from the price table, and then press a button that will copy all the selected part codes in column A to the basket sheet.

If there is a better way to do this that I haven't considered, I would also like to hear it - otherwise, any help is much appreciated.

Thanks
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
You could do something like this:
Book1
ABC
1Part CodePrice
2P12310a
3P23420a
4P34525
5P45625
6P56720
7P67825a
8P78910
9P89015
10P90020
11P00015a
Price File


Book1
ABCD
1PartsPriceQtyTotal
2P12310110
3P234205100
4P67825250
5P00015115
6 
7 
8 
9 
10 
11 
12
13175
Basket
Cell Formulas
RangeFormula
A2:B5A2=FILTER('Price File'!A2:B11,'Price File'!C2:C11="a","")
D2:D11D2=IF(C2>0,B2*C2,"")
D13D13=SUM(D2:D11)
Dynamic array formulas.


Not knowing how your sheets are setup, this is just a guess. You can use checkboxes, but they are very tedious to setup. I like to set the font of a column to Webdings, and type a lowercase 'a' to get a checkmark. Then, you can use the FILTER() function like above to include rows where col C = 'a'.
 
Upvote 1
Solution
You could do something like this:
Book1
ABC
1Part CodePrice
2P12310a
3P23420a
4P34525
5P45625
6P56720
7P67825a
8P78910
9P89015
10P90020
11P00015a
Price File


Book1
ABCD
1PartsPriceQtyTotal
2P12310110
3P234205100
4P67825250
5P00015115
6 
7 
8 
9 
10 
11 
12
13175
Basket
Cell Formulas
RangeFormula
A2:B5A2=FILTER('Price File'!A2:B11,'Price File'!C2:C11="a","")
D2:D11D2=IF(C2>0,B2*C2,"")
D13D13=SUM(D2:D11)
Dynamic array formulas.


Not knowing how your sheets are setup, this is just a guess. You can use checkboxes, but they are very tedious to setup. I like to set the font of a column to Webdings, and type a lowercase 'a' to get a checkmark. Then, you can use the FILTER() function like above to include rows where col C = 'a'.
Thanks for your reply, I will give this a go - exactly what I was looking for, and much simpler than other solutions I had been attempting.
Much appreciated.
 
Upvote 0
Thanks for your reply, I will give this a go - exactly what I was looking for, and much simpler than other solutions I had been attempting.
Much appreciated.
You're welcome, and happy to help.
 
Upvote 0
You could do something like this:
Book1
ABC
1Part CodePrice
2P12310a
3P23420a
4P34525
5P45625
6P56720
7P67825a
8P78910
9P89015
10P90020
11P00015a
Price File


Book1
ABCD
1PartsPriceQtyTotal
2P12310110
3P234205100
4P67825250
5P00015115
6 
7 
8 
9 
10 
11 
12
13175
Basket
Cell Formulas
RangeFormula
A2:B5A2=FILTER('Price File'!A2:B11,'Price File'!C2:C11="a","")
D2:D11D2=IF(C2>0,B2*C2,"")
D13D13=SUM(D2:D11)
Dynamic array formulas.


Not knowing how your sheets are setup, this is just a guess. You can use checkboxes, but they are very tedious to setup. I like to set the font of a column to Webdings, and type a lowercase 'a' to get a checkmark. Then, you can use the FILTER() function like above to include rows where col C = 'a'.
I've implemented this a bit differently - instead of having a check column, the quantity column doubles as the check column, so any row with a quantity entered in the price file carries over to the basket, which then calculates the total cost - result of this can be seen below. Only issue is, this means that you cannot edit the quantity in the basket, which isn't ideal. Is there any solution to this, other than simply reverting back to using a check column instead of the quantity column?

Thanks - Will
1724752444326.png
1724752090151.png
 
Upvote 0
Not without using VBA. An event code to trigger when you enter a quantity on the Price sheet would copy the data to the Basket, which you could then edit on the Basket sheet, but it wouldn't edit the qty entered on the Price sheet. You could use a second code on the Basket sheet to trigger if you do edit a qty to update the Price sheet. Let me know if you'd like to see this option.
 
Upvote 0

Forum statistics

Threads
1,223,880
Messages
6,175,154
Members
452,615
Latest member
bogeys2birdies

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