Populate different prices across sheets based on option button &combobox

Alaa mg

Active Member
Joined
May 29, 2021
Messages
375
Office Version
  1. 2019
Hi
I want after select for each combobox separately should brings the price from multiple sheets(BTT,MTT,STT) as to QTY should just bring from sheet TOTAL based on match column B across sheets. so the idea when select item from combobox and select optionbutton cost then should search across sheets(BTT,MTT,STT) the column COST if the item just is existed and repeated in the same sheet then should populate the price for each textbox based on select for each combobox based on last price for last duplicated item but if the items is existed for next sheet whether the item is repeated or not then should populate based on last sheet the item is existed and ignore that sheet precede it . for instance the cost in sheets BTT,MTT for item ATR-100 =11.5,13,12 then should populate 12 another example if there is just in the same sheet lik ATR-101 then the cost will be last price for duplicate item , 10.5,9 then should populate 9
the same thing about opionbutton sales like the optionbutton cost
last thing as I mentioned from the beginning populate QTY IN MULTIPLE TEXTBOXES after select from multiple comboboxes should be based on sheet TOTAL
here some examples
when select optionbutton & combobox should populate values in textboxes
1.PNG


2.PNG



data in sheets
MODIFYIN.xlsm
ABCDE
1DATECODEQTYSALESCOST
201/01/2022ATR-1001212.311.5
302/01/2022ATR-1011113.310.5
403/01/2022ATR-1021114.310
501/01/2022ATR-100121113
602/01/2022ATR-10111129
704/01/2022ATR-1031113.315
805/01/2022ATR-1041115.311
906/01/2022ATR-1091115.311
1003/02/2022ATR-11011012
BTT


MODIFYIN.xlsm
ABCD
1DATECODEQTYCOST
203/02/2022ATR-102311
304/02/2022ATR-103411
405/02/2022ATR-104512
501/02/2022ATR-100112
601/02/2022ATR-102115
703/02/2022ATR-1081210
803/02/2022ATR-110311
904/02/2022ATR-1111212
1004/02/2022ATR-11121212
1105/02/2022ATR-11131212
1206/02/2022ATR-11141212
1307/02/2022ATR-11151212
1408/02/2022ATR-11161212
1509/02/2022ATR-11171212
1610/02/2022ATR-11181212
1711/02/2022ATR-11191212
1812/02/2022ATR-11201212
1913/02/2022ATR-11211212
2014/02/2022ATR-11221212
MTT


MODIFYIN.xlsm
ABCD
1DATECODEQTYSALES
201/03/2022ATR-100114
304/03/2022ATR-103417
405/03/2022ATR-104518
501/03/2022ATR-100115
602/03/2022ATR-101216
703/03/2022ATR-102316
803/03/2022ATR-101217
904/03/2022ATR-103317
1005/03/2022ATR-107317
1104/02/2022ATR-111113
1203/02/2022ATR-110314
1303/02/2022ATR-1110314
1404/02/2022ATR-1111314
1505/02/2022ATR-1112314
1606/02/2022ATR-1113314
1707/02/2022ATR-1114314
1808/02/2022ATR-1115314
1909/02/2022ATR-1116314
STT



MODIFYIN.xlsm
ABC
1ITEMCODEQTY
21ATR-100200
32ATR-101300
43ATR-102400
54ATR-103500
65ATR-104600
76ATR-105601
87ATR-106602
98ATR-107603
109ATR-108604
1110ATR-109605
1211ATR-110606
1312ATR-111607
1413ATR-112608
1514ATR-113609
1615ATR-114610
1716ATR-115611
TOTAL


thanks
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Forum statistics

Threads
1,223,228
Messages
6,170,875
Members
452,363
Latest member
merico17

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