Petersburg1
asked on
Listing out of a listing
Dear Experts,
I have a list of values in $A:$A and a corresponding list of values in let's say $B:$B. At another sheet I would like to get a list of all those values which meet a certain criteria...something like countif..
For example in a and in b I have the following:
NIK FC
KAG IT
AMB HC
CAC FC
MGS HC
PPY IT
TNM CEO
YAG SEC
etc..
in sheet2 I want to have now as a result in a column A called FC the following:
FC
NIK
CAC
and in the column B called HC the following:
HC
AMB
MGS
thanks
I have a list of values in $A:$A and a corresponding list of values in let's say $B:$B. At another sheet I would like to get a list of all those values which meet a certain criteria...something like countif..
For example in a and in b I have the following:
NIK FC
KAG IT
AMB HC
CAC FC
MGS HC
PPY IT
TNM CEO
YAG SEC
etc..
in sheet2 I want to have now as a result in a column A called FC the following:
FC
NIK
CAC
and in the column B called HC the following:
HC
AMB
MGS
thanks
ASKER
Hi Teylyn,
I do not want a pivot table, lookin for a formula which allows me to realize that, if possible.
Where to find/switch on this pivot table?
thanks
Nils
I do not want a pivot table, lookin for a formula which allows me to realize that, if possible.
Where to find/switch on this pivot table?
thanks
Nils
Hello,
If you don't want to use a pivot table, why do you want to know how to create one? :-)
Here's how to get started with pivot tables: http://peltiertech.com/Excel/Pivots/pivotstart.htm
To do what you describe without a pivot table is rather complex:
First, you would have to work out the unique values of column B. This would be either manually or by using the Unique switch of the Advanced Filter, then transposing the result to a row (from the column source). This will not be dynamic. -- Compare with: A pivot table will update dynamically upon refresh.
Then you would need to figure out a formula to return the 1st, 2nd, 3rd, etc. match for the desired column header. Not a mean feat with formulas. Refer to http://www.ozgrid.com/Excel/find-nth.htm for a few approaches, neither for the faint-hearted.
You'd also need to know how many items will possibly be returned for each column, so you can cater for the formula to be copied down a sufficient number of rows.
In short: Excel does not come with a simple, native, two or three click solution to present the result in your desired layout.
The two or three click solution can be achieved by a Pivot Table, as I described in my previous post.
You may want to take a step or two back and explain the bigger picture. There may be approaches that differ from your conception of a solution, approaches which may be easier to implement.
If not, I'm afraid the Pivot Table is the most dynamic and flexible, AND easy to create approach.
cheers, teylyn
If you don't want to use a pivot table, why do you want to know how to create one? :-)
Here's how to get started with pivot tables: http://peltiertech.com/Excel/Pivots/pivotstart.htm
To do what you describe without a pivot table is rather complex:
First, you would have to work out the unique values of column B. This would be either manually or by using the Unique switch of the Advanced Filter, then transposing the result to a row (from the column source). This will not be dynamic. -- Compare with: A pivot table will update dynamically upon refresh.
Then you would need to figure out a formula to return the 1st, 2nd, 3rd, etc. match for the desired column header. Not a mean feat with formulas. Refer to http://www.ozgrid.com/Excel/find-nth.htm for a few approaches, neither for the faint-hearted.
You'd also need to know how many items will possibly be returned for each column, so you can cater for the formula to be copied down a sufficient number of rows.
In short: Excel does not come with a simple, native, two or three click solution to present the result in your desired layout.
The two or three click solution can be achieved by a Pivot Table, as I described in my previous post.
You may want to take a step or two back and explain the bigger picture. There may be approaches that differ from your conception of a solution, approaches which may be easier to implement.
If not, I'm afraid the Pivot Table is the most dynamic and flexible, AND easy to create approach.
cheers, teylyn
ASKER
Ok, thanks a lot.
Here the bigger already simplified picture and I guest this should be possible.
In an Excel file A I have a list of employee abbreviations like NIK, KAG, OVS etc. and in the same excel file also a column which is listing their position abbreviation like HC, FC, CEO etc.
In another excel file which is linked with the first one I have several columns for the different job titles like HC and another one with FC and so on and I would like here to get a sorted listing of employees.
All FC employees shall be listed in the FC column and so on.
I know that we never ever will have more than 50 FCs so I could run down a formula which either gives me the value or "" empty space.....
I think it should be something like vlookup or sumproduct or countif and give me as result not a number but the abbreviation and in this way it should result into a listing?
thanks
Nils
Here the bigger already simplified picture and I guest this should be possible.
In an Excel file A I have a list of employee abbreviations like NIK, KAG, OVS etc. and in the same excel file also a column which is listing their position abbreviation like HC, FC, CEO etc.
In another excel file which is linked with the first one I have several columns for the different job titles like HC and another one with FC and so on and I would like here to get a sorted listing of employees.
All FC employees shall be listed in the FC column and so on.
I know that we never ever will have more than 50 FCs so I could run down a formula which either gives me the value or "" empty space.....
I think it should be something like vlookup or sumproduct or countif and give me as result not a number but the abbreviation and in this way it should result into a listing?
thanks
Nils
ASKER
Hi again,
just looked that interesting link: http://www.ozgrid.com/Excel/find-nth.htm but although nice still not helping me to come up with the approach.
Helping columns are fine with me too.
I simply need a dynamic list of the FCs in Excel file B for field validation which is coming from Excel A where we have a list of all our employees which is constantly kept up to date....so working with Excel file B would give me at any time an updated list of employee abbreviations which are FCs...(Financial controllers)...
thanks
just looked that interesting link: http://www.ozgrid.com/Excel/find-nth.htm but although nice still not helping me to come up with the approach.
Helping columns are fine with me too.
I simply need a dynamic list of the FCs in Excel file B for field validation which is coming from Excel A where we have a list of all our employees which is constantly kept up to date....so working with Excel file B would give me at any time an updated list of employee abbreviations which are FCs...(Financial controllers)...
thanks
Hello,
So there are different FILES involved, not just different sheets in the same file? That does not make the situation any easier.
Even if you use words like "just" and "simply" and "dynamic" in your question does not mean that the result can be easily achieved with a simple formula. The Ozgrid link posted above has all the information required to look up and return the nth occurrence of a value in a given column, providing a solution for both a formula approach and with VBA as an alternative.
If you've tried the Ozgrid methods and they do not work for you, please post the file(s) with the Ozgrid formula or VBA applied to your source data, so we can have a look at what is going wrong.
cheers, teylyn
So there are different FILES involved, not just different sheets in the same file? That does not make the situation any easier.
Even if you use words like "just" and "simply" and "dynamic" in your question does not mean that the result can be easily achieved with a simple formula. The Ozgrid link posted above has all the information required to look up and return the nth occurrence of a value in a given column, providing a solution for both a formula approach and with VBA as an alternative.
If you've tried the Ozgrid methods and they do not work for you, please post the file(s) with the Ozgrid formula or VBA applied to your source data, so we can have a look at what is going wrong.
cheers, teylyn
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi,
thanks a lot. I found a workable solution but like yours even more!
Also the code is very nice as not helping columns at all are needed
thanks
Nils
Listing-out-of-Listing.xlsx
thanks a lot. I found a workable solution but like yours even more!
Also the code is very nice as not helping columns at all are needed
thanks
Nils
Listing-out-of-Listing.xlsx
you can use a pivot table to group the values by their respective categories. See attached.
cheers, teylyn
Book1.xlsx