Solved

Excel formulaes

Posted on 2012-03-20
5
178 Views
Last Modified: 2012-04-03
I require to be able to count the number of times a GPO policy setting has been set across multiple GPOs.  I had this initial idea...My columns would be

COLUMN TITLE
A             SCOPE
B             POLICY SETTING NAME  
C             POLICY SETTING VALUE
D             POLICY SETTING PATH
E             GPO

I was going to do a =countif(B4:B70,"[POLICY NAME]

That would count the amount of times a policy setting has been set across all my GPOs.  I would then like it to explicitly list for me the GPOs in which the setting appears on a different sheet?
0
Comment
Question by:cmatchett
5 Comments
 
LVL 50

Expert Comment

by:Ingeborg Hawighorst
ID: 37744949
Hello,

you could use the autofilter to filter the table by the value you want to see. Or, using Advanced Filter you could create a new table (albeit on the same sheet, but with a little VBA that can be moved to a different sheet).

cheers, teylyn
0
 
LVL 4

Expert Comment

by:ltsweb
ID: 37745217
You should use a Pivot Table.  You can pivot on Column E and then do a count everytime it appears.  When you click on the count, Excel will create a table of just the GPO with all of the fields you have in your original table.

If you want to provide a sample Excel sheet, I will add the Pivot.

If you want to try it yourself, highlight the table, then Insert, Pivot Table.  Verify you have the correct range.

In the Pivot Table Field List, pull down the GPO column (or whichever value you wish to isolate) into Row Labels and pull it down again into the Values box.  Make sure it says "Count"

It will build a table and then you can click on the count value to display all the GPO entries that match.

Hope it works!
0
 
LVL 50

Expert Comment

by:barry houdini
ID: 37745225
Assuming your data is in a sheet called Data then in your summary sheet assume you have the name in A1 and the COUNTIF formula in A2 then in A4 down to list the GPOs try

=IF(ROWS(A$4:A4)>A$2,"",INDEX(Data!E$4:E$70,MATCH(1,INDEX((Data!B$4:B$70=A$1)*(COUNTIF(A$3:A3,Data!E$4:E$70)=0),0),0)))

copy that down, when GPOs are exhausted for that name you get blanks

I'm assuming that all GPOs are different

regards, barry
0
 

Accepted Solution

by:
cmatchett earned 0 total points
ID: 37781055
thanks for your help on this one guys.  I ended up creating an Access database.
0
 

Author Closing Comment

by:cmatchett
ID: 37799947
i ended up using microsoft soft access
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This Article is a follow-up to my Mappit! Addin Article (http://www.experts-exchange.com/A_2613.html), it was inspired by an email posting I made to EUSPRIG (http://www.eusprig.org/index.htm), I will briefly cover: 1) An overvie…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa‚Ķ

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question