collecting two sheets in listbox on userform

Hasson

Active Member
Joined
Apr 8, 2021
Messages
406
Office Version
  1. 2016
Platform
  1. Windows
hi
I need code merge duplicate items based on COL B in two sheets so when merge values in COL G as two sheets should show in listbox and subtracting between two columns in list box
as in last column in listbox
sheet1
COLLECT COL.xlsm
ABCDEFG
1DATEBBTINV NONAMEQTYPRICETOTAL
21/1/2021bfg-hy1invn-as1asz-1200.00$350.00$70,000.00
31/2/2021bfg-hy2invn-as2asz-265.00$600.00$39,000.00
41/3/2021bfg-hy3invn-as3asz-380.00$700.00$56,000.00
51/4/2021bfg-hy4invn-as4asz-454.00$500.00$27,000.00
61/5/2021bfg-hy5invn-as5asz-534.00$400.00$13,600.00
71/6/2021bfg-hy6invn-as6asz-612.00$200.00$2,400.00
81/7/2021bfg-hy1invn-as7asz-145.00$400.00$18,000.00
91/8/2021bfg-hy2invn-as8asz-278.00$500.00$39,000.00
101/9/2021bfg-hy3invn-as9asz-354.00$900.00$48,600.00
111/10/2021bfg-hy4invn-as10asz-421.00$800.00$16,800.00
121/11/2021bfg-hy5invn-as11asz-555.00$670.00$36,850.00
131/12/2021bfg-hy6invn-as12asz-666.00$431.00$28,446.00
sheet1
Cell Formulas
RangeFormula
G2:G13G2=E2*F2



sheet2
COLLECT COL.xlsm
ABCDEFG
1DATEBBTINV NONAMEQTYPRICETOTAL
21/1/2021bfg-hy1invn-as1asz-1200.00$400.00$80,000.00
31/2/2021bfg-hy2invn-as2asz-265.00$700.00$45,500.00
41/3/2021bfg-hy3invn-as3asz-380.00$800.00$64,000.00
51/4/2021bfg-hy4invn-as4asz-454.00$800.00$43,200.00
61/5/2021bfg-hy5invn-as5asz-534.00$700.00$23,800.00
71/6/2021bfg-hy6invn-as6asz-612.00$600.00$7,200.00
81/7/2021bfg-hy1invn-as7asz-145.00$400.00$18,000.00
91/8/2021bfg-hy2invn-as8asz-278.00$700.00$54,600.00
101/9/2021bfg-hy3invn-as9asz-354.00$1,000.00$54,000.00
111/10/2021bfg-hy4invn-as10asz-421.00$1,000.00$21,000.00
121/11/2021bfg-hy5invn-as11asz-555.00$700.00$38,500.00
131/12/2021bfg-hy6invn-as12asz-666.00$800.00$52,800.00
Sheet2
Cell Formulas
RangeFormula
G2:G13G2=E2*F2





expected result in listbox
1.PNG
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"

Forum statistics

Threads
1,224,832
Messages
6,181,231
Members
453,026
Latest member
cknader

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