Find the last value after a search in Excel - excel-formula

I have created an excel spreadsheet to track some loans. When I do a search to filter out a period of dates, I want to highlight the last payment value of that search. How do I highlight that number?
I've been looking at various formulas but I'm not sure which one to use

Related

Make excel filter and actualize automatically

I have two sheets, one with a dashboard and another one with the data I need.
In data sheet: So many lines, that I filter by date. I need to know in Weeks, every record that contains in that, for example: I need to know how many records do I have in Week 43 (18-24 OCT). For that, I manually apply a filter and I count the number of records.
In dashboard sheet: I show the number of registers I got in the datasheet.
I want to automatize all this process, I want to do a formula in the dashboard sheet that can filter and show automatically the number of records I got in week X, excluding some variables I have in another column. The column I need contains letters and numbers, random (I need to sum these records, separated by date in weeks). All that I don't need to filter, what I need to exclude from my search starts with AWBXXX (random numbers too).
Example here:
What I need to filter, in green. What I don't need, red.
Please, help! :D

Is it possible to use a formula to find if there is more than one occurrence of a date within an excel table?

I am attempting to make a calendar in excel that will show when people are out of the office that will highlight the calendar based off the inputs each person makes to the corresponding table. The problem I am running into is how to highlight a cell in the calendar when two or more people are out of the office on that day, the closest I can get is only showing the highlighting for one person or the other, not both.
For example, if person A and person C are both out of the office on 6/1/2019, I would like for that date to show up in a different color than either of the headers for person A or C.
Also, this calendar will be stored in a shared location that automatically disables the use of macros, so I am only able to use formulas and conditional formatting. Thanks for any suggestions!
One thing you can do is to have a separate list in which you have a list of dates and the number of occurrence of each date. Then you should add a conditional-formatting that colors dates with count of more than 1 and change the conditional-formatting of each person and check this count, if it is 1, then you apply the format.
You can use conditional formating with the following formula:
=COUNTIF($AJ$2:$AS$31,AJ2)>1
and apply it to AJ2:AS31

Return a value relative to every instance of a search term

I have a spread sheet populated with dates (Months) and revenue figures. The sheet is structured with numerous tables all containing these month-revenue pairings but they are not all in the same columns.
I need to be able to search the whole range of cells for a given month and then each time the month is found I need to look across for the revenue figure (5 cells to the right) and return the answer.
The answer returned needs to give the total figure for all instances of the search term.
VLookup won't work because there are multiple tables and they are not all lined up.
Any advice would be very gratefully received.
Thanks
You should use a VBA script for that, IMHO this is not possible to do in a formula. Here is a rough outline what you need to do:
Define an array of the month names as they appear in you sheet
Iterate this array and for each month name find all cells containing it (this might help)
Iterate all cells of each month and do your calculation based on this cell (find a cell with a certain offset or whatever)
If you cen provide a more specific description of your problem (preferably with example data/images), maybe we can give you a more specific answer.

Autopopulate Excel invoice using vlookup

I'd like to auto-populate an invoice in Excel from data I enter into a lesson roster (blank_monthly.xlsx).
Here I fill in the lesson cost under the date each time they come for tuition.
In the invoice sheet I would like to start writing a customer's name into a cell, I'd like the rest of the table to populate with information from the current month's customer roster.
Can I use =vlookup for this to reference the cell I type the client's name into which then pulls all the other information?
If your names are split on the invoice sheet, but not the lesson plan, then you can use VLOOKUP with wildcards as below
Lesson Plan sheet
Invoice sheet
* in the VLOOKUP function will match any characters.
=VLOOKUP("*"&$A2&"*",Sheet2!$A$2:$G$4,2,FALSE)
If your names aren't split then you can just omit the wildcard search, as below.
=VLOOKUP($A2,Sheet2!$A$2:$G$4,2,FALSE)
Currently if no matches are found then the function will return 0. If you just want a blank cell, then you can nest the function in an IF
=IF(VLOOKUP($A2,Sheet2!$A$2:$G$4,2,FALSE)=0,"",VLOOKUP($A2,Sheet2!$A$2:$G$4,2,FALSE))
VLOOKUP documentation is HERE. You should read up on it.
I assume your data sheet will contain 3 columns like: name, date of lesson and number of lessons. You then want to produce a nice report that your illustrated. The short answer is 'Yes', you can use VLOOKUP provided that you only have one row in your datasheet per person per day and you have a column with the concatenation of Name and date. Otherwise, you have to use SUMIFS. I recommend SUMIFS because it would be cleaner formula.
The name is easy to match. Date should handle itself, as long as you don't try to control Excel's magic. Date is stored as a number. The cell formatting makes it look like a date. Concatenate your Month, Day, Year to the proper format and use the DATEVALUE function.
If you have your anchors ($) correct, you should be able to copy and paste the formula. If you don't want to see 0s on your summary report, don't IF in the formula, control it using cell formatting - custom 0;;.
If you are familiar with Table vs Range, use table. Your formula will look nicer and you don't have to worry about extending your range as you acquire more lessons.

Excel Advanced Filtering Issues - Advice Needed

So basically I have a main table, and I want to filter that data to another table (normally easy) but I want this based upon 2 criteria. e.g. I want to filter the data of a specific department but only for the current month. The way I display the current month in the main table is by inserting the date from a userform and then by formatting that cell to just display the month. However, when using advanced filter I use the column headings that I want to filter e.g. department: mens, month: november (worked out using =now() then formatting to just display the month) but when I'm running the filter it's not picking out the information at all.
I think this lies with the way the month is worked out and displayed but I can't figure out another way to do this. Any help is greatly appreciated.
I'm also open to trying a new method of just selecting data for the current month if anyone has a cleaner way, as I'm sure there is one.
You have to use a formula in your criteria to specify what month you want to extract. But it's not terribly intuitive. Take a look at this sample. My starting list is the range A1:B7. My criteria is in range D1:E2. The Department is straightforward; I just entered "3". (Obviously, without the quotes.) But instead of a Month criteria, I added "GetMonth" and entered the formula shown in the formula bar. You can name this whatever you want, but it can't be the same as one of the headers in your source list. (Yeah, I checked.) The formula checks to see if the current month of the date in cell B2 is 12, which is December, and returns TRUE or FALSE. You could use 11 for November. The advanced filter will apply the reference to cell B2 that's in the formula in a relative fashion to all cells in the Month column. And Viola! my output in range A10:B11 is what you'd expect it to be.

Resources