vbanoob1234
New Member
- Joined
- Aug 8, 2016
- Messages
- 26
Hello everyone,
I have a workbook with several worksheets of accounts, and I have a "Master" worksheet that contains the list of all the accounts on Column A.
I want a macro that goes through each worksheet,
go through row 1 to 100 in Column A
if Column A contains the word, "Subtotal", "Total", "Tax", then pull Column B in the corresponding row.
Eg. John Smith worksheet (Sheet 2)
Column A Column B
Pipe $100
Water Tank $500
Subtotal $600
Tax $50
Total $650
Eg. Carl John worksheet (Sheet 3)
Column A Column B
Heater $500
Furnace $1000
Subtotal $1500
Tax $100
Total $1600
Master Worksheet (wanted Outcome)
Column A Column B Column C Column D (fixed)
Account Name Subtotal Tax Total (fixed)
John Smith $600 $50 $650
Carl John $1500 $100 $1600
Thank you!
I have a workbook with several worksheets of accounts, and I have a "Master" worksheet that contains the list of all the accounts on Column A.
I want a macro that goes through each worksheet,
go through row 1 to 100 in Column A
if Column A contains the word, "Subtotal", "Total", "Tax", then pull Column B in the corresponding row.
Eg. John Smith worksheet (Sheet 2)
Column A Column B
Pipe $100
Water Tank $500
Subtotal $600
Tax $50
Total $650
Eg. Carl John worksheet (Sheet 3)
Column A Column B
Heater $500
Furnace $1000
Subtotal $1500
Tax $100
Total $1600
Master Worksheet (wanted Outcome)
Column A Column B Column C Column D (fixed)
Account Name Subtotal Tax Total (fixed)
John Smith $600 $50 $650
Carl John $1500 $100 $1600
Thank you!
Last edited: