Forum Discussion
Andrew_Hinson
Apr 08, 2023Brass Contributor
Formula in filtered column
Hi everyone, I wonder if anyone is able to help me. I have a large selection of financial data which comprises various columns which I use to input transactions, line by line. In column C, I have...
mathetes
Apr 08, 2023Silver Contributor
Assuming I am following you, what you're doing and what you want to do, I have a couple of thoughts. First, let me say that I track my finances in a somewhat similar way. And I've learned--assuming you have all these rows and rows of transactions as a legitimate Excel Table--...I've learned that putting formulas into columns in Tables can be tricky unless you are wanting that same formula to be applicable to every row. So be careful, whatever you do.
That said, for this particular need, I would recommend trying what we often call a "helper column," which is to say, do not try to have this added 14 days applied in the same column as the dates for all the other transactions. Instead, have a separate column that tracks what might be called "AdjustedDates" and put the formula there that finds the last date used for that category and then adds 14 to it. You could make that formula particularly smart and have it just copy all other dates as they are, and then that AdjustedDates column becomes the one you use in a Pivot Table, say, if you use that to create monthly reports.
I have a formula I've created that does more or less what I'm suggesting, finding the last date when the category appeared. (You might need to play around to make sense of this; I'm assuming you have that ability.) The XMATCH portion is key, and the -1 there at the end is the key to the key: it is what finds the last match in the column, as opposed to the first, which is what we generally use MATCH and XMATCH to do.
=INDEX([DatesColumn],XMATCH("Category",CategoryColRefs,0,-1))
Andrew_Hinson
Apr 09, 2023Brass Contributor
Hi mathetes
Thank you for such a detailed response! To be honest, I am better than average with Excel but by no means an expert. I am aware of some of the things mentioned in your response, but I may need to do a big of Googling for the others. I am sure I'll work it out!
So truly thank you 🙂
Thank you for such a detailed response! To be honest, I am better than average with Excel but by no means an expert. I am aware of some of the things mentioned in your response, but I may need to do a big of Googling for the others. I am sure I'll work it out!
So truly thank you 🙂
- mathetesApr 09, 2023Silver Contributor
You're welcome. I recommend ExcelJet as a great place for that research. Also YouTube has a wealth of instructional videos.
Feel free to come back and post a copy of your worksheet (perhaps a mock-up rather than the real data) if you'd like a more hands-on example.
- Andrew_HinsonApr 09, 2023Brass ContributorHey mathetes
Thank you. Yes I have spent a lot of time looking at articles on there!
I am currently doing a course on Excel, but haven't got to the index and match bits yet. I'll hang fire and be patient I think; it'll come soon enough.
Thank you again 🙂