sum or subtraction based on selected item from combobox on userform

Mussa

Active Member
Joined
Jul 12, 2021
Messages
251
Office Version
  1. 2019
  2. 2010
Hello
I want matching selected comboboxes on userform with sheet B: E and summing or subtraction based on selected from combobox 13
so the numbers for comboboxes & textboxes will be for each row on userform like this
combobox1 combobox2 combobox3 combobox4 ,textbox1
combobox5 combobox6 combobox7 combobox8,textbox2
combobox9 combobox10 combobox11 combobox12,textbox3


so when select SALES from combobox 13 SALES and fill userfrom as in CON1 sheet
so should subtract the QTY from textboxes to column F


when select RET1 from combobox 13 as in CON2 sheet
so should subtract the QTY from textboxes to column F




when select PURCHASE from combobox13 and fill userfrom as in CON3 sheet

so should summing the QTY from textboxes to column F
to become in column F



when select when select RET2 from combobox13 as in as in CON4 sheet

so should summing the QTY from textboxes to column F
to become in column F


so I put the cases in sheets(con1,2,3,4)
here is file
Dropbox
thanks
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Is there any relation between the table in 'Sheet1' and the sheet 'Stock'?
 
Upvote 0

Forum statistics

Threads
1,221,418
Messages
6,159,791
Members
451,589
Latest member
Harold14

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