Create list by combining for specific tab contains colors

Alaa mg

Active Member
Joined
May 29, 2021
Messages
378
Office Version
  1. 2019
Hello

I give this sample . each sheet could be 2000 rows and every time I will add new tab and highlight by red & yellows color , I want combining sheets contains red color tab alone and yellows color tab alone

so the result in red color tab by sum for each sheet alone based on sheet name .

red sheet should brings name in column C based on sheet name and sum the whole columns(DEBIT,CREDIT ) and in column BALANCE should subtract DEBIT from CREDIT for each sheet alone and insert TOTAL row to sum the TOTAL for whole names as I put the formulas , should clear data in red & yellows sheets when every time run the macro before brings data again and the same thing for Yellows sheet like RED sheet .

aq
ABCDE
1DATEDescribeDEBITCREDITBALANCE
205/01/2022NOT PAID12331233
306/01/2022NOT PAID12332466
407/01/2022PAID2000466
508/01/2022PAID40066
ALA


aq
ABCDE
1DATEDescribeDEBITCREDITBALANCE
208/01/2022OPENING0
309/01/2022NOT PAID20002000
411/01/2022NOT PAID200010003000
511/01/2022NOT PAID200040001000
ALN


aq
ABCDE
1DATEDescribeDEBITCREDITBALANCE
208/01/2022OPENING5000
309/01/2022NOT PAID600011000
411/01/2022NOT PAID2000100012000
511/01/2022NOT PAID2000400010000
612/01/2022PAID30007000
713/01/2022PAID20005000
814/01/2022PAID10004000
915/01/2022PAID30001000
AMN


aq
ABCDE
1DATEDescribeDEBITCREDITBALANCE
208/01/2022OPENING3000
309/01/2022NOT PAID1000013000
411/01/2022NOT PAID300016000
511/01/2022NOT PAID200018000
612/01/2022PAID100017000
713/01/2022PAID80009000
814/01/2022PAID50004000
915/01/2022PAID30001000
MNA


result

aq
ABCDE
1ITEMNAMEDEBITCREDITBALANCE
21ALA2466240066
32ALN600050001000
4TOTAL846674001066
RED
Cell Formulas
RangeFormula
E2,E4E2=C2-D2
C4:D4C4=SUM(C2:C3)


aq
ABCDE
1ITEMNAMEDEBITCREDITBALANCE
21AMN1000014000-4000
32MNA1500017000-2000
4TOTAL2500031000-6000
YELLOWS
Cell Formulas
RangeFormula
E2:E4E2=C2-D2
C4:D4C4=SUM(C2:C3)

and see the picture Tab color to understand because XL2BB doesn't show
1.PNG
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)

Forum statistics

Threads
1,224,787
Messages
6,180,950
Members
453,008
Latest member
GRTMAN

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