extract data from sheet to another based on specific date

abdo meghari

Well-known Member
Joined
Aug 3, 2021
Messages
651
Office Version
  1. 2019
Hello
I want extracting data from BRAND sheet to BALANCE sheet based on date=09/02/2023(dd/mm/yyyy) in column A
but should not repeat extracting to the bottom for BALANCE sheet , should clear data for BALANCE sheet before brings data from BRAND sheet.
MM with corrected CBs v03 a (2).xlsm
ABCDEFGH
1DATECODEBRANDTYPEORIGINQTYPRICETOTAL
209/02/2023BSJG580120020BS 1200R20G580JAP200.002,200.00440,000.00
309/02/2023BSTG580120020BS 1200R20G580THI250.002,000.00500,000.00
409/02/2023BSJR187120020BS 1200R20R187JAP300.002,100.00630,000.00
509/02/2023BSTR187120020BS 1200R20R187THI350.002,200.00770,000.00
609/02/2023BSJG580120024BS 1200R24G580JAP400.003,000.001,200,000.00
710/02/2023BSTG582120024BS 1200R24G582THI450.002,800.001,260,000.00
811/02/2023BSJR23070016BS 700R16R230JAP500.00800.00400,000.00
912/02/2023BSJR23075016BS 750R16R230JAP550.00900.00495,000.00
1013/02/2023BSJVSJ75016BS 750R16VSJJAP600.001,300.00780,000.00
1114/02/2023BSJVSJ140020BS 1400R20VSJJAP650.002,000.001,300,000.00
1215/02/2023BSJR180140020BS 1400R20R180JAP700.003,500.002,450,000.00
BRANDS


before

MM with corrected CBs v03 a (2).xlsm
DEFGHIJK
1DATECODEBRANDTYPEORIGINQTYPRICETOTAL
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
BALANCE


after
[
MM with corrected CBs v03 a (2).xlsm
DEFGHIJK
1DATECODEBRANDTYPEORIGINQTYPRICETOTAL
209/02/2023BSJG580120020BS 1200R20G580JAP200.002,200.00440,000.00
309/02/2023BSTG580120020BS 1200R20G580THI250.002,000.00500,000.00
409/02/2023BSJR187120020BS 1200R20R187JAP300.002,100.00630,000.00
509/02/2023BSTR187120020BS 1200R20R187THI350.002,200.00770,000.00
609/02/2023BSJG580120024BS 1200R24G580JAP400.003,000.001,200,000.00
BALANCE
 
It worked for me. This is what I got:
DATECODEBRANDTYPEORIGINQTYPRICETOTAL
2023-02-09BSJG580120020BS 1200R20G580JAP200.0002,200.000440,000.000
2023-02-09BSTG580120020BS 1200R20G580THI250.0002,000.000500,000.000
2023-02-09BSJR187120020BS 1200R20R187JAP300.0002,100.000630,000.000
2023-02-09BSTR187120020BS 1200R20R187THI350.0002,200.000770,000.000
2023-02-09BSJG580120024BS 1200R24G580JAP400.0003,000.0001,200,000.000
 
Upvote 0

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
OMG !:eek:

I figure out the reason causes this problem . in your code using hyphen in date, but for me is slash , I changed in your code to slash .
now it works perfectly (y)
thanks very much :)
 
Upvote 0

Forum statistics

Threads
1,224,813
Messages
6,181,107
Members
453,021
Latest member
Justyna P

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