How to extract partial data from one sheet to another using a single formula in Google Sheets

KBurn123

New Member
Joined
Jul 29, 2024
Messages
1
Office Version
  1. 2021
Platform
  1. Windows
Before I start, here's a copy of the sheets I'm using: Here's a copy of the sheet I'm using: https://docs.google.com/spreadsheets/d/1Y079euBk63RYcgFOPjBFwMlPi53SUAIgZ-h69_o9Hsc/edit?usp=sharing

I have two sheets, Expenses and Tax Deductibles. The Expenses sheet has it's data filled via a Google form where I track date of purchase, the category it fits, whether it's tax deductible, etc. The "Is this tax deductible" column filled with "Yes" or "No" data. I want to take all the cells that have "Yes" and take all the data from those rows and populate the Tax Deductibles sheet with it.

The Tax Deductibles sheet would sort this data by category and date (Specifically month by month) and display the totals for each category for each month. Dates are UK Format.

This is how the Expenses Sheet looks:

DateItemDeductible?CategoryAmount
24/05/24PhoneNoBills£10
25/05/24AccountantYesBills£200
26/05/24GasYesBills£75
01/06/24ApplesNoFood£1
01/06/24LunchYesFood£15
13/07/24ElectricYesBills£40

And this is how the Tax Deductibles Sheet currently looks:

MonthBillsFoodTravelOther
May 24£275£0£0£0
June 24£0£0£0£0
July 24£0£0£0£0
Sep 24£0£0£0£0
Oct 24£0£0£0£0

But this is how Tax Deductibles should look:

MonthBillsFoodTravelOther
May 24£275£0£0£0
June 24£0£15£0£0
July 24£40£0£0£0
Sep 24£0£0£0£0
Oct 24£0£0£0£0


The formula I'm currently using in the Tax Deductibles sheet is as follows:

Code:
=sumifs(Expenses!$F:$F,Expenses!$E:$E,$B1,Expenses!$D:$D,"Yes",index(eomonth(Expenses!$B:$B,)),eomonth(A$2,))

So this works for the first cell (B2 in the Google sheet), but it doesn't seem to work when expanded across other cells in the same column or row (Or any others for that matter).

The numbers in the tables here are slightly different than the data in the actual sheet I've linked but the point is still the same.

For reference I've added some images of the actual tables so you can see how they actually look:

Tax Deductibles Sheet

Screenshot 2024-07-26 151014.png


Expenses Sheet

Screenshot 2024-07-26 151044.png


Any help would greatly appreciated as this has been stumping me for a while. Thanks!
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

Forum statistics

Threads
1,221,090
Messages
6,157,868
Members
451,447
Latest member
Adam Gore

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