need macro to deal with 8000 rows to merge items based on helper column

Omran Y

Board Regular
Joined
Jul 17, 2023
Messages
60
Office Version
  1. 2013
Platform
  1. Windows
Hello experts

I look forward from the experts to write macro to deal with more than 8000 rows based on helper column.

I need match helper column (F) with column B based on part of the item , if the part of item in helper column F is matched with column B then should merge for column C,D and insert column E to calculate as I put the formula, but I don't need formula. Also will increase data A:D in BANK sheet and will add more from parts of items in helper column . so I want clear data from row2 in OPERATION sheet when run the macro every time before populate & merge data.
ZX.xlsm
ABCDEF
1DATEOPERATION NAMEDEBITCREDITOPERATION NAME
201/03/2023FIRST BALANCE DATE 31/12/202210,000.00FIRST BALANCE
301/03/2023BB IN TPUT R400-99 CASH PREPAID10,000.00CASH PREPAID
402/03/2023CASH PREPAID BB IN TPUT MM2002,000.00BANK SWIFT
503/03/2023BANK SWIFT FG-100030,000.00PAID BANK
604/03/2023MS.9888888 BANK SWIFT FG-100160,000.00CASH PIAD
705/03/2023PAID BANK MTSWF900002,000.00
806/03/2023BANK SWIFT FGS-1000110,000.00
907/03/2023 CASH PREPAID BB IN TPUT LM7000030,000.00
1008/03/2023INN70000 CASH PIAD6,000.00
1109/03/2023CASH PIAD MN9000 UY6001,000.00
12
BANK



ZX.xlsm
ABCDE
1ITEMOPERATION NAMEDEBITCREDITBALANCE
2
3
4
5
6
OPERATION



expected
ZX.xlsm
ABCDE
1ITEMOPERATION NAMEDEBITCREDITBALANCE
21FIRST BALANCE DATE 31/12/202210,000.0010,000.00
32CASH PREPAID42,000.0052,000.00
43BANK SWIFT100,000.00152,000.00
54PAID BANK2,000.00150,000.00
65CASH PIAD7,000.00143,000.00
OPERATION
Cell Formulas
RangeFormula
E2E2=C2-D2
E3:E6E3=E2+C3-D3


thank you
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
You're welcome, glad to help & thanks for the feedback.:)
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,279
Members
452,630
Latest member
OdubiYouth

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