Link to home
Start Free TrialLog in
Avatar of csehz
csehzFlag for Hungary

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
Avatar of ragnarok89
ragnarok89

This is close...
Copy-of-ConcHeaders.xls
You could easily do this with a VB macro though, is this an option?
Avatar of csehz

ASKER

Would it be that easier? :-)

Yes sure could be an option I would be glad to use :-))

thanks in advance
Avatar of csehz

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 :-)
SOLUTION
Avatar of barry houdini
barry houdini
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of csehz

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
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
Avatar of csehz

ASKER

Thanks it works great :-)

Thanks very much the help both of you
Avatar of csehz

ASKER

Ragnarok89 yes in live I will have to modify but no problem with it the logic is good and works, thanks