This is probably an FAQ so apologies.
I can do all the below in PowerShell by using Group object, sort object, select object and the pipeline, but excel is a program I don't know well so I am struggling to nest output arrays together as I would in PowerShell [probably this completely the wrong way to conceptualise the solution in excel].
This is the overview of what I am after.
I have a set of data (a MS active directory export) and I am looking to summarise aspects of that data set in adjacent columns on a separate tab in excel.
Something like a total count of a given AD container and then in the next column 23 of that total are blue and of those 23 blue 4 are straight and of those 4 straight 2 are glued and the other 2 are rough. if I can describe that in excel formulas, I can solve all my display requirements.
The point is that some columns depend on referencing the members of the previous columns output and then re-querying the original dataset to evaluate other columns of that data and totalling it. I realise that the grouping from a previous column will be lost inside the formula since I only want to display the total in each case.
In more specific detail:
I need to summarise different elements of all the users in each OU in scope, there are about 90 OU's with 35000 users.
1. Initially I want a column (sorted descending) with the count of users in each OU - some have 25 and others 10000 or so.
2. Then I want a adjacent column with the number of users in each of those OU's which have a password older than three years - (which is less than for excel since it will be a smaller integer between that date and 01/01/1900 or whenever excel starts from.)
- So this is a dynamic array selection on the main data set passed to a "countif date is less than" in my head - but I can't get that to work. . . so.
3. I need to also display in the next column how many of the accounts in this OU meet another criteria.
- So this needs to reference the cells returned in #2 and then query another column for text "TRUE" or "FALSE" or other conditions.
I think those cover off the three types of things I need to do.
To recap all queries against the 35000 rows of the original data need to be constrained by the Organisational Unit [Ad container]. Some future queries depend on (reference) a collection [dynamic range] from a previous query and interrogate other columns using that [dynamic] range as the row references.
Is this simply too complex for excel or if not is it better done with a pivot table or a bunch of specific queries and helper tabs / cells if needed?
I have attached a sample 10 rows of data [obviously not real data] to demonstrate how it is organised.
Thanks in advance.
Bookmarks