Excel match multiple columns simultaneously - excel

I need some help with an excel formula. I have 2 tables as on the screenshot below:
The first table "AD Groups & apps" contains all the required AD groups for one application to work. Now I need to match all applications from the second table "Users AD Groups" to the first table and have a result table as the third one "Users Apps".
I need to automate as some applications are dependend on one group, other apps on 2 or 3 AD groups (group names are exactly like the ones on the screenshot - not really userfriendly)
Few assumptions:
On the 2nd table there could be groups not related to the required apps
The result table needs to show only application names where all pre-reqs are available
Tried messing with vlookups and index/match but got lost somewhere.
If its not asking too much, any tips on changing the same to show apps where user is member of the first column group, but is missing groups from 2nd/3rd column?

This is not easy to accomplish with a single formula....but you can use this version in H4 confirmed with CTRL+SHIFT+ENTER and copied down the column
=IFERROR(INDEX(D:D,SMALL(IF(FREQUENCY(IF(ISNUMBER(MATCH(A$4:C$11,F$4:F$11,0))+(A$4:C$11=""),ROW(F$4:F$11)),ROW(F$4:F$11))=3,ROW(F$4:F$11)),ROWS(H$4:H4))),"")
That should give you all the D4:D11 values where all specified group values are shown
for a single group that would be easier, e.g. for those where Group 1 only needs to be checked try this version
=IFERROR(INDEX(D:D,SMALL(IF(ISNUMBER(MATCH(A$4:A$11,F$4:F$11,0)),ROW(F$4:F$11)),ROWS(H$4:H4))),"")

Related

I want an excel formula to do vlookup multiple times based on the Vlookup results it got for each Vlookup

I have got a ton of bid-related information from the Government E-procurement site in India. I have columns like Ministry, Organization, Department, and Office which are in a hierarchical fashion like multiple offices inside Department with multiple departments inside an organization and organizations inside a ministry. I have a separate list of accounts that have salespeople aligned to it. Now my problem is to find a formula that will help me align the opportunities to each salesperson. I want the formula to go like this, first, it filters out all the results based on Ministry, then out of those filtered results, it filters out the Organization/Department/Office and returns the value from the list of accounts that have salespeople aligned to it. I also want it to skip if Organization is not present and move on to Department.
Sample of data
I tried using VLOOKUP after text-joining Ministry, Organization, Department, and Office, but it matches only the first word and hence the matches are not accurate.
I had a formula passed down to me but couldn't make any sense of it.
=IFERROR(VLOOKUP([#[Organization Name]],ISR_alignment!$G$2:$H$22,2,FALSE),
IFERROR(INDEX(ISR_alignment!$A$2:$A$72922,MAX(IF(ISERROR(FIND(LOWER(
ISR_alignment!$A$2:$A$72922),LOWER([#MDOOA]))),-1,1)*(ROW(
ISR_alignment!$A$2:$A$72922))-ROW(ISR_alignment!$A$2)+1)),""))

SSRS Cells auto-merge

I'm having trouble unmerging cells on the report.
3 Suppliers for the query
I have a SQL query that shows 3 instances of a supplier (left joined to contact) as shown below. However, when running the report for the query the 3 instance of the supplier is merged into one. This is not desirable in my case because when exporting the report to excel, I'd like to be able to sort columns based on other properties, however, this would not be possible due the the merging of the rows. How can I get results to show individually?
Cells are Merged on the report
Within the properties of each Row Group you can specify which columns to group on. You generally don't need a separate group for each field, but that's OK. In your last group, the one called "(Details)", if it is not grouped by anything, it will show one row per line of results from the query. So take a look at what it's grouped by. As long as the rows are in your dataset, the report will group or show them based on how you configure the grouping here. Grouping on nothing means it will show all rows.
Another tip is to align the end of your header textbox with the line of one of your columns. This will prevent it from creating an extra column in Excel for the "City" field.
Your report does not need all of those groupings - the SSRS grouping is not like SQL. You should only group when you want to aggregate data on that field. Normally you might have a company with its address in various fields in one group but you only need to group once on the Company Name or (preferably) ID - not on each field and not a separate group for each. You could then show details of various invoices in other columns that aren't grouped.
But since you want to display the company data on each row, you would not want ANY grouping on the company.
To fix your issues, remove all the groupings (but not the rows) and just leave the detail group (which doesn't have a Grouping).
You can check out MS Docs: Understanding Groups for a better explanation.

Data Query based on the drop down selection based on the dependent/independent drop down validation list

Screenshot 1:
Screenshot 2:
Hi Guys,
Need help with the Data Query based on the drop down selection based on the dependent/independent drop down validation list
Sample Images attached
I tried various formulas but was not able to get it working.
I cannot use INDIRECT because these drop down list are independent (or may be dependent)
I have a Metrics Table in my Consolidated Sheet and i have 10 teams (Team 1, Team 2...Team 9), 3 Environments (Production, Non Prod, No Field, All).
I have 10 other Sheets (Team 1, Team 2... Team 9). Each Sheet has same Metrics Table for All, Production, Non Prod, No Field. From Team 1 Sheet to Team 9 Sheet same format.
In the Consolidated, it is the same Metrics Table and format, however i have put 2 drop down Validation Lists. Independent Drop Downs (INDIRECT is not required) or what if that is made as related field and display only when the other Drop down is selected. This looks like a good one. So i will go with the dependent dropdowns
Requirement is, when i select the Team from the Team Drop Down List, and based on the selection from the dependent drop down list that is (Environment) it should pull the data from the respective teams sheet.
Not sure what is the best approach to get this working. Tried vlooks but was not able to achieve.
Hope there is a alternative to get this working.
Regards
Ajay

Pass multiple account variables to single parameter

I am building a financial report. Months as columns, department/account as rows, summing transactions:
I am able to expand departments and see totals by account, I am also able to click on a single account amount and drill through to another report for transactional detail. Say account 70300 for March totaling 14,244. This work wells. The report successfully passes Department 000, account 70300, 201503 for March 2015, showing me the transactional detail for the account.
My issue is being able to drill through for a department, say the 1,063,038 for department 000 for March. I am able to click on the value and pass it actually passes all the accounts with data for the month to the filter Acct, however it returns no data:
I thought it would have something to do with how the separator is stringing the accounts together in my expression. I have tried “,” and “, “. Looking at other reports I have created with multiple criteria selection from a drop down list it always displays selections separated with a comma then a space but that is not working for me. Here is the expression I am using via Text Box Properites -> Action -> Expression:
=IIF(Inscope("matrix1_G_L_Account_No_"),Fields!G_L_Account_No_.Value,Join(LookupSet(Fields!Global_Dimension_2_Code.Value, Fields!Global_Dimension_2_Code.Value, Fields!G_L_Account_No_.Value, "DataSet1"),","))
Any advice is greatly appreciated!

Connecting two columns in MS Excel

I have two columns called Primary Source and Secondary Source in MS Excel. I was wondering if there is anyway I could connect these 2 columns with each other i.e, if I select something from Primary Source, the corresponding value or the various options under that head must be shown in Secondary Source.
Thanks!!!
You provide very little information about your spreadsheet. I think you are after dependent data validation, where the first cell offers a choice of, say "Continent" and you can select "America", "Africa", "Asia", "Europe", etc. and after you have made a selection, the next cell will present a choice of countries in the selected continent.
If that is what you want to do, take a look at dependent data validation at Debra Dalgleish's site here:
http://www.contextures.com/xlDataVal02.html
It involves setting up named ranges for the different options and using Indirect() to create the source for the secondary validation list.

Resources