L
Legacy 287428
Guest
Hello there!
Been a while since I have posted as the forums have been so helpful. I am working on a summary sheet for a personal finance sheet where the data I am pulling from has 7 columns, and as many rows are in a year. Essentially what I am trying to have the cell in question do is query Column A (year), and Column B (week), locate what row that is, and I want one cell to return "Expenditures to date" (Column F), then the second cell returns "Income to date" (Column G).
The example below is a simplified table of what I am using - If I am trying to pull the Annual Cumulative Credit for week 29 of 2020 it should return 1200 even though there are other week 29's in the table.
I had used the following function to return the result moderately successfully, but when I tried linking the data to the cells in the other work sheet I keep getting #N/A. What worked is (H1 is the year, H2 is the week):
I am using Windows 10, and Excel 2016 and cant use XLOOKUP unfortunately.
Been a while since I have posted as the forums have been so helpful. I am working on a summary sheet for a personal finance sheet where the data I am pulling from has 7 columns, and as many rows are in a year. Essentially what I am trying to have the cell in question do is query Column A (year), and Column B (week), locate what row that is, and I want one cell to return "Expenditures to date" (Column F), then the second cell returns "Income to date" (Column G).
The example below is a simplified table of what I am using - If I am trying to pull the Annual Cumulative Credit for week 29 of 2020 it should return 1200 even though there are other week 29's in the table.
I had used the following function to return the result moderately successfully, but when I tried linking the data to the cells in the other work sheet I keep getting #N/A. What worked is (H1 is the year, H2 is the week):
=INDEX(G2:G4,MATCH(H1&H2,A2:A4&B2:B4,0))
followed by CTRL+SHIFT+ENTERI am using Windows 10, and Excel 2016 and cant use XLOOKUP unfortunately.
Year | Week | Weekly Debit | Weekly Credit | Annual Cumulative Debit | Cumulative Debit Adjusted Positive | Annual Cumulative Credit |
2017 | 29 | 20 | 50 | -500 | 500 | 800 |
2018 | 29 | 40 | 55 | -600 | 600 | 900 |
2019 | 29 | 25 | 60 | -600 | 600 | 1000 |
2020 | 29 | 60 | 65 | -700 | 700 | 1200 |