Make excel filter and actualize automatically - excel

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

Related

How to add a calculated column to the results of a FILTER function in Excel?

I think Excels FILTER function is great, especially when combined with SORT, CHOOSECOLS and so on.
What I did not even manage to google, let alone find a solution for is: can I "paste" a calculated columns to the results of FILTER function.
For example:
I have the original data on the left, I want to FILTER the rows where a person had passed a test and then for example COUNT how many times have they passed a test.
It is just an example, it can be how many exams have they took in the first trimester, analogously it could be the total amount billed if you look at customer invoices and so on.
The column with the yellow title is the column that I want "pasted", i.e. calculated.
I could do FILTER and then add formulas in the last column as I did here. But it does not adapt to number of rows being filtered, as below (if Carol passed one test less for example).
How to do it or is it for some reason better to do it fundamentally in another way?
If you have Excel 365 current channel you can use this formula:
=LET(d,A24:D35,
f,FILTER(d,INDEX(d,,4)=TRUE),
sPassed,CHOOSECOLS(f,1),
cnt,MAP(sPassed,LAMBDA(s,ROWS(FILTER(sPassed,sPassed=s)))),
HSTACK(f,cnt))
As COUNTIF doesn't work within MAP, you have to use the FILTER function together with ROWS to count how often a student has passed. .

Argument to find data in large Excel document to later use with other data found

I have a very large Excel document with something like 7500 rows. Not all of the data is needed, but I want to use some of the data to find how long an order takes from start to end (lead time).
I tried starting with the INDEX function to find and out put individual order numbers based on another cells data ("Order has Shipped"). This formula worked, however it only returns the very first Order Number and no others.
My thought here was that I could do one column that pulled all the order numbers based on the "Order has Shipped" requirement. After that, I would do a similar function to give a second column next to the order numbers that showed the correct data and time stamps. After that, I would do two more columns with basically the same information, but to show when the order was first entered and spit out another time stamp. From these two time stamps, I could do a simple function to calculate the difference in time.
I wanted to put these into new columns so I could also find the average lead time, number of orders shipped, and other things.
=INDEX(D:D,MATCH(L11,G:G,0))
Any help would be greatly appreciated.
Try using =IF(L1="Order has Shipped",D1,"") to get the Order Numbers and then you can "Find & Select" and click "Go to Special", then click blanks. This will select all the blank values. Then click delete and it will get rid of all the spaces in the rows so you have all the unique order numbers that have been shipped listed in one column.

Combining Non-Zero Values from Multiple Columns into One in Excel

Every month I get given a budget from one of our clients in a Google sheet, which I need to convert into a SQL query so it can be uploaded into our database. As the number of rows and columns changes, I want to write some formula to semi-automate the process for time saving and mistake elimination.
This budget has spends in multiple columns, which I've managed to write formulas to combine into one column, with the correct details in the columns next to it (see example links below).
How I've transformed the data so far
The issue is this budget per country and partner, then has to be split again across multiple options. This leaves me with three columns worth of spend values, that I'd really like to combine back into one column, and ideally skip out all the zero values.
I've found an array formula on this site that will skip the zeroes, but I can't get it to work on more than one column.
=IFERROR(INDEX($U:$U,SMALL(ROW(myRange)*(myRange<>0),SUMPRODUCT(N(myRange=0))+ROWS($1:1))),"")
From this Question's Answer
Is it possible to write a formula, that skips the zero values down one column, and then starts at the next? And that will also allow me to keep the correct matching details from the other columns alongside it, as well as bring in the column headers for the options as entries in a new column?
Thanks
Edit:
Here is the final format I'm looking for:
There is a concatenated field off the end that combines all the columns. Most of the values are populated by various Vlookups, to transform from the text version, into the database IDs, needed to fill the table.
It's also worth saying, that not being able to skip the zeros, is OK, as I can manually delete them fairly easily.
But as the number of countries and partners can and will change, I want the formula to be able to move column at the end of the dataset.

Excel duplicate date subtraction

I have a table in Excel, with names in Column A, and dates in Column B. Names are present several times for the most part, each carrying a payment date in Column B. So if someone received one payment, the name is there once, with a date. If someone received eight, the name is there eight times, with eight different dates.
What I'm looking for is a method, to take each name (not the occurrence, but the same string), and present the difference of the maximum and the minimum date for every string that is the same (i.e. the date range of payments for every single person).
I tried basically everything in Excel. Conditional formatting and Pivot Tables did not help (the latter can only add, not subtract when using PT). Manual work would take a lot of time even if specifying min and max values for the entries, since the table has 17033 rows with 2218 unique names.
I would be grateful if you could help. I suspect the solution is not that hard, but I cannot really get my head around it.
You can use a standard array formula to list the distinct names e.g. in D2:-
=INDEX($A$2:$A$10000,MATCH(1,(COUNTIF($A$1:$D1,$A$2:$A$10000)=0)*($A$2:$A$10000<>""),0))
Then another one to find the maximum for each name and subtract the minimum:-
=MAX(IF($A$2:B$10000=$D2,$B$2:$B$10000))-MIN(IF($A$2:A$10000=$D2,$B$2:$B$10000))
But these are slow with ~10000 rows - a pivot table is much faster.
I would keep things really simple by putting the minimum and maximum date as value fields in the pivot table and manually adding a formula to subtract one from the other - will post a screenshot later.

Summation of entries with the same date in Excel

I have two columns with data (several thousand rows), one with dates and one with duration (time in hh:ss). However, there's multiple records for each day. Is there any way to add these together based on the date and get one entry per day with the summed value?
Below is a picture showing a subset of my Spreadsheet:
I think what could be very useful to you would be the Consolidate function.
If you click on the Data tab on the menu bar, on the mid-right side is a button called consolidate.
Steps to Success:
Select a range beside your existing values, if you photo is the same I would suggest highlighting all of columns C, and D.
With the columns highlighted press the Consolidate button.
Within consolidate choose Sum for the function, and highlight the data in columns A, and B for the reference.
Make sure to check off Left column in Use Labels In
With dates properly formatted as dates, and times properly formatted as times this should sum all of the times given for a particular date. Test trials were successful.
Let me know if that works for you, commetn if you have any questions.

Resources