How extract group information from Excel file - excel

Good morning in my timezone.
I received an Excel file with a lot of rows and columns.
When i use a filter in each column i am able to see all the values the column has when i pick each drop down button.
Question :
How can i select and copy all the values of each filter?
Something very similar to group by in SQL.
Thanks in advance
Best regards

I marked this question as Off-Topic, because I think it belongs to superuser and there you find your solution: How do I get the distinct unique values in excel
I wrote this as answer, because the answer does not exist on SO (but on superuser).

Related

Getting the header of the two matching criterias, for multiple tables

Hoping you can help me out.
I have a total of three tables here. I've been trying to figure out a formula that will give me the header (the names) of the two criteria specified in H1 and H2. I was able to get the result I want, but for the first table only (Hailey).
The problem is to find out who among the three teachers handled the "subject" within the specified month as well.
Also, I couldn't figure out how to get all the results if ever there are two names that match the criteria. Thank you in advance for your help.
as Jeeped said above this is essentially bad database/table methodology but it is not hard to fix, what you need to do is create three columns one for the name, subject and month.
Then what you can do is just run a simple SQL/Google Query to find out who is doing what.
I've created a template based of your screenshot above but with three columns, have a play around and if you redesign your spreadsheet just let us know and we can help you to design a query for your issue.
use the drop downs to get your desired query, if you select name & month you get that range, if you select a month you get all names for that month.
https://docs.google.com/spreadsheets/d/1yERKtQocnVqopqh6CCn6Rdj143bYyr_IjSDnzCLSm_8/edit?usp=sharing

Excel Advance Filter not working

I have a sheet in which there is a column which mentions some tags.Now i am try to follow the advance filtering to see the data for 2 or 3 tags only but it's not working for me.
I have create a sample excel sheet in which i have taken S.no and Name. In that sheet I am able to apply the filter.I am not able to understand why it's not working in my sheet.
As per the snapshot i want to filter data for 2 tags <NbOfTxs> <CreDtTm>.Please check if anybody can help.
Thanks,
Advanced filter in Excel has the hidden ability of regex (regular expression).
Your data just happened to have some special characters used in regex, i.e "<"
So when you want to filter for <NbOfTxs>, I think Advanced Filter will interpret this as "return all entries that larger than <NbOfTxs> meaning anything would come after <NbOfTxs> in the dictionary, for example: <Pst>, <NcOfTxs>, etc.
I don't know the reasons why you want to use Advanced Filter but maybe you can do normal filter or pivot if it still helps achieve your ultimate goal.
Similar question here:
Advanced Filter criteria does not work for more than one criterion
You can read more on this feature of Advanced Filter here (from above question):
http://searchengineland.com/advanced-filters-excels-amazing-alternative-to-regex-143680

How can I Use autofilter in Excel if the person is occurring in two columns?

I've a game schedule where I do the referee nominations - please see the file
I want to be able to filter the columns gym, date and referee. I know how to do that on gym and dates, with the Autofilter. My problem is the referees, because the same referee can appear in bot columns referee 1 and 2 . Can you suggest any solution to this problem?
My second question is: I want to list each referees partners, thought to solve this with Pivot table - is pivot table the best solution, or du you have any other solution?
Thanks in advance for your help
Peter
file: https://www.dropbox.com/s/p798eq4u89...lish.xlsx?dl=0
MY COMMENT: I didn't look at your file but a generic approach to "normalizing" this list is to put all referees in the same column and create another column for whether they're #1 or #2 in that instance. This generally make pivoting and other data analysis easier.
So again, I haven't looked at your sheet (because I'm careful that way) and unfortunately SO doesn't let you post a picture yet, so this is just how I'd do it based on your words:
To the left is the table and to the right the pivot. You can see the referee number column that I proposed in the table. I didn't use it in this version of the pivot, but I suppose it might be handy somehow. The pivot shows who's reffing what game and let's you see at a glance that there's two different refs per game, who they are, and that they're getting their days off.
Here's how I set up the pivot:
I hope that gives you some ideas.

What are the supported types for sharepoint lookup columns?

I found that not all fields are supported as lookup fields. I tried to find a supported fields list but haven't been able to find one (google or even msdn)...... So far, I found that Choice, Mutiple Lines of text, Yes/No columns are not supported.
Does anyone have any idea where I could find that list?
According to Microsoft's article on list relationships:
Supported
Single line of text
Number
Date and Time
Unsupported
Multiple lines of text
Currency
Person or Group
Calculated
Hyperlink or Picture
Custom Columns
Yes/No
Choice
Lookup
This is the same answer as Prashant's, but the information is copied in the answer in case the link goes down.
The Microsoft article
referenced in the above answer has a different list for unique value columns. There are more supported fields. Scroll to the bottom of the article and expand the Creating unique columns section to see the list.
You can find all the information here

Excel Lookup with multiple queries

I have a question that I a may not be thinking correctly about. But I have an a long excel file that I pull from somewhere else with the following columns:
Project_Name1, Employee_Name1, Date_Worked1, Hours_Worked1
In another sheet I have these columns
Project_Name2, Employee_Name2, Begin_Date2, End_Date2, Hours_Worked2
This second sheet is filled with data, and works just fine.
However, it turns out that I have some employee names that I do not know that are also working on the same project. I need to figure out the names of the employees and then sum the number of hours they worked for a given period.
So I need a lookup with three criteria:
Project_Name1 = Project_Name2
Employee_Name1 <> {Array of Employee_Name2}
Begin_Date2 <= Date_Worked1 > End_Date2
Returning Employee name.
Once I have the employee name, I can do a sumifs=() and get the total hours they worked no problem.
I have tried a number of combinations of Index Match functions, using ctrl-shift-enter... and have not been able to figure out it. Any help would be greatly appreciated.
What you're talking about doing is extremely complicated and a little bit past what Excel was designed to do by default. However, there are a few workarounds that you can use to attempt to get the information that you're looking for.
It's possible to do multiple-criteria VLOOKUPs and SUMIFs by concatenating fields to make a multi-part identifier (Ex: Insert a new column and have a forumla in it like =A1&B1)
Open a new workbook and use Microsoft Query (I'm not sure if you can select from more than one sheet, but if you can select from multiple sheets like tables you should be able to write a semi-complex query to pull the dataset you want.
http://office.microsoft.com/en-us/excel-help/use-microsoft-query-to-retrieve-external-data-HA010099664.aspx
Use the embedded macro feature and use visual basic script to write out your business logic. (Hotkey is ALT+F11)
One way to do this would be to first create an additional column to the right of entries on the sheet you're trying to pull employee_name from: =ROW()
You could then use an array formula like you were trying to implement to pull the corresponding 'match' row:
{=SUM((project_name1=projectname2)*(employeename1<>employeename2)*(begindate<=date_worked1)*(date_worked1>end_date2)*(match_column))}
You could then use this returned match_column entry within the index as you described to retrieve the appropriate entries.

Resources