Copy specific columns after column contains BALANCES word in the header

Hasson

Active Member
Joined
Apr 8, 2021
Messages
399
Office Version
  1. 2016
Platform
  1. Windows
Hello
I would macro to deal with 2000 names in CLS sheet and 5000 rows for duplicates names in VB sheet.
in CLS sheet should show result in G:L after match NAME column between two sheets .
in VB sheet will contains duplicates names . so should merge amount for DEBIT,CREDIT columns when show in J,K columns in CLS sheet.
I don't want power query I don't used to use it , so I don't need it.


HS ‫‬.xlsx
ABC
1DATENAMEBALANCES
211/08/2024AHHGGJ-15,100.00
312/09/2024AHHGGJ-22,500.00
411/08/2024AHHGGJ-328,200.00
511/09/2024AHHGGJ-439,368.00
612/09/2024AHHGGJ-52,370.00
7TOTAL77,538.00
CLS
Cell Formulas
RangeFormula
C7C7=SUM(C2:C6)


HS ‫‬.xlsx
ABCDEF
1DATENAMEVMNDEBITCREDITTOTAL
211/08/2024AHHGGJ-1REC2,000.002,000.00
312/09/2024AHHGGJ-2PPA1,200.00-1,200.00
413/09/2024AHHGGJ-2REC3,000.003,000.00
514/09/2024AHHGGJ-1REC1,200.001,200.00
615/09/2024AHHGGJ-2PPA100.00-100.00
716/09/2024AHHGGJ-3REC2,000.002,000.00
817/09/2024AHHGGJ-4REC1,500.001,500.00
918/09/2024AHHGGJ-5REC1,000.001,000.00
10TOTAL10,700.001,300.009,400.00
VB
Cell Formulas
RangeFormula
F2:F10F2=D2-E2
D10:E10D10=SUM(D2:D9)

I expect result like this

HS ‫‬.xlsx
ABCDEFGHIJKL
1DATENAMEBALANCESDATENAMEBALANCESDEBITCREDITTOTAL
211/08/2024AHHGGJ-15,100.0011/08/2024AHHGGJ-15,100.003,200.008,300.00
312/09/2024AHHGGJ-22,500.0012/09/2024AHHGGJ-22,500.003,000.001,300.004,200.00
411/08/2024AHHGGJ-328,200.0011/08/2024AHHGGJ-328,200.002,000.0030,200.00
511/09/2024AHHGGJ-439,368.0011/09/2024AHHGGJ-439,368.001,500.0040,868.00
612/09/2024AHHGGJ-52,370.0012/09/2024AHHGGJ-52,370.001,000.003,370.00
7TOTAL77,538.00TOTAL77,538.0010,700.001,300.0086,938.00
CLS
Cell Formulas
RangeFormula
L2:L6L2=I2+J2-K2
C7,I7:L7C7=SUM(C2:C6)

thanks in advanced
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

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