csehz
asked on
Excel 2000 - Concatenate
Dear Experts,
Could you please check the attached file on Sheet1, it is a pivot which counts which item is produced on which machines.
Is there possibility I thought maybe to a kind of vlookup combination, which in column F could list all the machines in one cell where an item is produced?
Basically if there is any non blank cell in the items row, that means that it is produced on that certain header
thanks,
ConcHeaders.xls
Could you please check the attached file on Sheet1, it is a pivot which counts which item is produced on which machines.
Is there possibility I thought maybe to a kind of vlookup combination, which in column F could list all the machines in one cell where an item is produced?
Basically if there is any non blank cell in the items row, that means that it is produced on that certain header
thanks,
ConcHeaders.xls
You could easily do this with a VB macro though, is this an option?
ASKER
Would it be that easier? :-)
Yes sure could be an option I would be glad to use :-))
thanks in advance
Yes sure could be an option I would be glad to use :-))
thanks in advance
ASKER
Anyway I have checked your solution as Excel formula, as I can see in H-I-J columns you did row values from the headers, and concatenated those in K.
Finally yes it is also a kind of solution, so if in VBA would not be I am also okay with this.
Basically the base pivot comes from Access as crosstab query, and there originally I could list the Machine names so your H-I-J formula would not be needed.
Thanks for the idea :-)
Finally yes it is also a kind of solution, so if in VBA would not be I am also okay with this.
Basically the base pivot comes from Access as crosstab query, and there originally I could list the Machine names so your H-I-J formula would not be needed.
Thanks for the idea :-)
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Barry thanks, on my machine in formulas the , used to be as ; so applied like
=SUBSTITUTE(IF(B2<>"";", "&B$1;"")&IF(C2<>"";", "&C$1;"")&IF(D2<>"";", "&D$1;"")&IF(E2<>"";", "&E$1;"");", ";"";1)
But that works perfectly on the example.
In the real live file unfortunately there are 32 columns, but maybe I will try to list all of them
=SUBSTITUTE(IF(B2<>"";", "&B$1;"")&IF(C2<>"";", "&C$1;"")&IF(D2<>"";", "&D$1;"")&IF(E2<>"";", "&E$1;"");", ";"";1)
But that works perfectly on the example.
In the real live file unfortunately there are 32 columns, but maybe I will try to list all of them
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
csehz,
The macro will work for a table of any size, so long as there is a blank column immediately to the right of the table, and no blanks in Column A. You'll have to adjust the macro to put the results into the column of your choice, I used G.
The macro will work for a table of any size, so long as there is a blank column immediately to the right of the table, and no blanks in Column A. You'll have to adjust the macro to put the results into the column of your choice, I used G.
ASKER
Thanks it works great :-)
Thanks very much the help both of you
Thanks very much the help both of you
ASKER
Ragnarok89 yes in live I will have to modify but no problem with it the logic is good and works, thanks
Copy-of-ConcHeaders.xls