list formula

Ev1lZer0

New Member
Joined
Sep 26, 2022
Messages
34
Office Version
  1. 365
Platform
  1. Windows
I am hoping to generate a list that would list out every instance of a certain category across multiple sheets.

I am running a spreadsheet that has 12 sheets (one for each month) and I am hoping to have a 13th page that would list out every expense on that spreadsheet sorted by category. Each instance would have to list a range as i would want to know the card used, date it happened, description, category and cost. all of which is manually input by me. I would also want this list to update as i input more information. either automatically or right-clicking ans selecting update would work. I'm open to pivot tables if that's that best solution and if they work across multiple sheets, im also open to a list formula or other options i haven't considered.

This may not be explained well, and I may need to answer some questions to get what I want. I have listed two examples, and these appear exactly the same on every page. I have also included a list of categories i use.

Credit Card
Credit CardDateDescriptionCategoryAmount
Double Cash1/1/2023God Squad ChurchCharitable Giving: Tithe$102.50
Costco1/2/2023TwitchCharitable Giving: Tithe$10.82
Costco1/5/2023CC Payment - Costco$827.18
Costco1/7/2023WalmartGroceries$16.61
Costco1/7/2023WalmartGroceries$60.60
Costco1/7/2023CostcoGroceries$1.62
Double Cash1/8/2023Tickets: Cubs/MarinersSavings: Travel / Vacations$76.00
Costco1/8/2023Ay CarambaGroceries$9.47
Amazon1/9/2023Amazon - Laundry BagsGroceries$8.97
Amazon1/11/2023Amazon - Card SleevsAllowance: Johns$16.19
Amazon1/14/2023Crystal LightGroceries$29.41
Double Cash1/15/2023CC Payment - Double$1,565.15
Amazon1/15/2023CC Payment - Amazon$186.74
Amazon1/17/2023Christmas LightsSavings: Christmas Decor$37.91
Amazon1/18/2023Food Saver BagsGroceries$21.17
Costco1/12/2023CostcoGroceries$82.05
Costco1/17/2023Red RobbinDating & Entertainment$41.52
Costco1/19/2023SQ CoffeeCharitable Giving: Blessing Money$6.50
Costco1/19/2023Costco GasVehicle: Fuel$51.41
Costco1/21/2023WraysGroceries$0.38
Costco1/12/2023Costco Groceries$10.77
Costco1/25/2023CC Payment - Costco$432.73
Double Cash1/15/2023nteract MinistriesCharitable Giving: Offerings & Missions$30.00
Double Cash1/15/2023HYTTOUBNCharitable Giving: Blessing Money$104.00
Double Cash1/18/2023LH AtlantaCharitable Giving: Blessing Money$54.14
Double Cash1/19/2023EtsySavings: Baby$14.80
Double Cash1/19/2023SpectrumHousehold: Utilities: Spectrum$54.99
Double Cash1/19/2023Studio EHair Cut$39.10
Double Cash1/20/2023NWMNCharitable Giving: Tithe$280.00
Double Cash1/20/2023Stone ChurchCharitable Giving: Tithe$102.20
Double Cash1/20/2023AG - DuesCharitable Giving: Tithe$25.00
Double Cash1/21/2023Jewlers MutualExpense: AFL ($180), Costco ($65), Amazon ($130), Ring ($65), & Ring Ins. ($50), Keeper ($38), iCloud ($36)$47.00
Double Cash1/21/2023Steins - Door lock & Sprinkler TimerNew Home$111.33
Double Cash1/21/2023Ace - Trager drip TraysGroceries$42.05
Amazon1/25/2023CC Payment - Amazon$88.49
Double Cash1/25/2023Integrity InspectionsNew Home$525.00
Amazon1/31/2023Movie RentalDating & Entertainment$6.49
Double Cash1/27/2023IsagenixGroceries$609.28
Costco1/24/2023DQ Dating & Entertainment$7.13
Costco1/26/2023Apple MusicDating & Entertainment$12.34
Costco1/26/2023Apple MusicGroceries$12.34
Costco1/28/2023WraysGroceries$13.02


Debit Card
NotesAccountDateDescriptionCategoryTransfer FundsAmount $$$
Chase1/13/2022Expense: AFL ($180), Costco ($65), Amazon ($130), Ring ($65), & Ring Ins. ($50), Keeper ($38), iCloud ($36)Chase Savings$50.00
Chase1/13/2022Expense: Car InsuranceChase Savings$85.00
Chase1/13/2022Expense: Home InsuranceChase Savings$95.00
Chase1/13/2022Expense: Household: Property TaxChase Savings$310.00
Chase1/13/2022Savings: Travel / VacationsChase Savings$350.00
Chase1/13/2022Savings: GeneralChase Savings$857.00
Chase1/13/2022BabyChase Savings$300.00
Chase1/13/2022InvestmentsChase Savings$300.00
Chase1/3/2023Erin's December Tithe$335.14
Chase1/3/2023Tickets MLBChase Savings$29.05
Chase1/5/2023MortgaeHousehold: Mortgage$1,436.81
Chase1/5/2023CC Payment - Costco$827.18
Chase1/5/2023Cascade GasHousehold: Utilities: Cascade Natural Gas$128.41
$1,547.04Chase1/10/2023YC Payroll - Erin$1,211.06
$2,646.17Chase1/10/2023YC Payroll - John$2,056.52
Chase1/13/2023Tickets Mariner/CubsChase Savings$76.00
Chase1/13/2023Savings: Christmas DecorChase Savings$40.00
Chase1/15/2023CC Payment - Double$1,565.15
Chase1/15/2023CC Payment - Amazon$186.74
Chase1/17/2023WiseCharitable Giving: Offerings & Missions$30.00
Chase1/18/2023Apple Cash - Erins DécorAllowance: Erins$48.00
Chase1/18/2023Pacific PowerHousehold: Utilities: Pacific Power$85.81
Chase1/20/2023ZellePhone$44.28
Chase1/23/2023Christmas LightsChase Savings$37.91
Chase1/23/2023Ring Ins & Baby AnnouncementChase Savings$61.80
Check # 2019Chase1/23/2023Escrow for 4406New Home$7,000.00
Chase1/23/2023Escrow for 4406Chase Savings$7,000.00
Chase1/24/2023Interest$0.03
Chase1/25/2023CC Payment - Costco$432.73
Chase1/25/2023CC Payment - Amazon$88.49
1589.6Chase1/25/2023YC Payroll - Erin$1,251.37
2674.4Chase1/25/2023YC Payroll - John$2,077.38
Chase1/25/2023YC Reimbursment - mialage$30.63
Chase1/25/2023Student Loans$60.00
Check # 2020Chase Savings1/26/2023Savings TransferMorgan$1,000.00
Chase Savings1/26/2023Savings: General$0.83
Chase1/27/2023VerizonPhone$290.29
Morgan1/31/2023Interest$0.64


Category
Allowance: Erins
Allowance: Johns
ATM Fees & Other Fees
Charitable Giving: Blessing Money
Charitable Giving: Offerings & Missions
Charitable Giving: Tithe
Clothing: Erins
Clothing: Johns
Dating & Entertainment
Expense: AFL ($180), Costco ($65), Amazon ($130), Ring ($65), & Ring Ins. ($50), Keeper ($38), iCloud ($36)
Expense: Car Insurance
Expense: Home Insurance
Expense: Household: Property Tax
Fitness
Gifts
Groceries
Hair Cut
Household: Décor
Household: Small Appliances
Household: Furnishings
Household: Home Improvement
Household: Mortgage
Household: Utilities: Cascade Natural Gas
Household: Utilities: Nob Hill Water
Household: Utilities: Pacific Power
Household: Utilities: Spectrum
Household: Utilities: Yakima Waste
Medical
New Home
Personal Enrichment
Phone
Savings: Christmas Decor
Savings: General
Savings: Travel / Vacations
Student Loans
Vehicle: Erins Car Maintenance
Vehicle: Fuel
Savings: Baby
Savings: Investments
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
are the columns identical in each sheet? Are there other merged cells beneath the 1st row (I'm assuming Debit Card/Credit Card is 1st Row)?
Yes and No are the answers, then you can use VSTACK to aggregate. then do pivot tables or UNIQUE and FILTERING as you want.
 
Upvote 0
Your assumptions are correct. The first row states debit card and is merged over the inputs you see above. And credit card and merged over the inputs above. There are no other merged cells below the first row. The columns are identical in each sheet.

Of the options you mentioned, what would be the easiest. To state again, I’m hoping to end up with one very long list that lists every row and sorts them by category then by date.

It’s only just occurred to me that since the columns are different for debit card and credit card, I may end up with two lists. And that is fine.
 
Upvote 0
When I asked about identical columns, I meant for the entire workbook. The credit and debit worksheets look different:
mr excel questions 27.xlsm
ABCDE
20Debit Card
21NotesAccountDateDescriptionCategory
22Credit Card
23Credit CardDateDescriptionCategoryAmount
Ev1lZer0_DebitCard


did you mean that debit sheets are all alike? and credit sheet are all alike?
 
Upvote 0
Ah. Yes, your questions makes more sense now. What you just said is correct.

As such, I am open to two tables: one for debit and the other for credit.
 
Upvote 0
Okay.
1. All worksheets must be sorted first by type then whatever month sequence you want, but it is important to have the credit together and debit together with no other worksheet intervening.

2. create a credit worksheet, in cell A1 paste:
Excel Formula:
=VSTACK(Ev1lZer0_CreditCardJan!A2:E2,FILTER(VSTACK(Ev1lZer0_CreditCardJan:SheeEv1lZer0_CreditCardMar!A1:E20),
ISNUMBER(VSTACK(Ev1lZer0_CreditCardJan:SheeEv1lZer0_CreditCardMar!B1:B20)),""))

3. create a debit worksheet in cell A1 paste:
Excel Formula:
=VSTACK(
Ev1lZer0_DebitCardJan!A2:E2,
FILTER(VSTACK(Ev1lZer0_DebitCardJan:Ev1lZer0_DebitCardMar!A3:E30),
ISNUMBER(VSTACK(Ev1lZer0_DebitCardJan:Ev1lZer0_DebitCardMar!C3:C30)),""))


The two formulas are aggregating only 3 worksheets, you'll need to update this for the set up of your worksheets.

The best option for you however, is to do this is power query. I am not proficient in that to give a solution there. But it is relatively easy.
Do some YouTube searches for ExcelIsFun or Leila Gharani, or Minda Treacy and you'll find some great resources for Power Query and other excel features.
 
Upvote 0
Okay, I am not having luck with this. and part of the reason is because I don't want to resort my main data.

What if i did a unique formula for each category and just had the data expanded to capture the columns i needed it to. it would automatically only pull the category and be sorted by date.
 
Upvote 0
The formula should not sort anything. I'm asking you to just keep the worksheets in an order that the worksheet part of the reference will work. Otherwise you have to click/type every worksheet to enter them into the VSTACK formula. Instead of :

Sheet1:Sheet12!B1:F30 you would have to type:

Sheet1!B1:F30,Sheet2!B1:F30,Sheet3!B1:F30,Sheet4!B1:F30,Sheet5!B1:F30,Sheet6!B1:F30,Sheet7!B1:F30,Sheet8!B1:F30,Sheet9!B1:F30,Sheet10!B1:F30,
Sheet11!B1:F30,Sheet12!B1:F30

and all this is doing is aggregating your data so you can do other reporting on it.
 
Upvote 0
OH! I love that, I have always done the long form. I like that I don't have to now!

I still am at a loss though. I don't understand how to modify the formula that you provided above.

if i told you the format for the names of my tabs are MMMYY (JAN23).
 
Upvote 0
You'll have to change them to Credit202301(JAN23) and Debit202301(JAN23)... etc. but i'd suggest taking the parens out. it probably is no difference but i do not like using excel key symbols, and parens are definitely used by excel. Change them to something short and easy to recognize and easy to edit.
Not sure if you can use DEB or CRD and a number, as excel may think it is a cell reference. but you could do DEB or CRD with an underscore and a short date description
(If you use a space you will have to wrap the sheet name in apostrophes which is a pain).
 
Upvote 0

Forum statistics

Threads
1,215,335
Messages
6,124,327
Members
449,155
Latest member
ravioli44

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