Solved

Excel 2000 - Concatenate

Posted on 2011-03-18
10
225 Views
Last Modified: 2012-05-11
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
0
Comment
Question by:csehz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
10 Comments
 
LVL 8

Expert Comment

by:ragnarok89
ID: 35165407
This is close...
Copy-of-ConcHeaders.xls
0
 
LVL 8

Expert Comment

by:ragnarok89
ID: 35165415
You could easily do this with a VB macro though, is this an option?
0
 
LVL 1

Author Comment

by:csehz
ID: 35165444
Would it be that easier? :-)

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

thanks in advance
0
MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

 
LVL 1

Author Comment

by:csehz
ID: 35165499
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 :-)
0
 
LVL 50

Assisted Solution

by:barry houdini
barry houdini earned 250 total points
ID: 35165563
This formula in F2 copied down would get rid of unwanted commas

=SUBSTITUTE(IF(B2<>"",", "&B$1,"")&IF(C2<>"",", "&C$1,"")&IF(D2<>"",", "&D$1,"")&IF(E2<>"",", "&E$1,""),", ","",1)

....but clearly it's impractical for large numbers of columns.

regards, barry
0
 
LVL 1

Author Comment

by:csehz
ID: 35165652
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
0
 
LVL 8

Accepted Solution

by:
ragnarok89 earned 250 total points
ID: 35165757
Here's a macro that will do it
Copy-of-ConcHeaders.xls
0
 
LVL 8

Expert Comment

by:ragnarok89
ID: 35165792
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.
0
 
LVL 1

Author Closing Comment

by:csehz
ID: 35165856
Thanks it works great :-)

Thanks very much the help both of you
0
 
LVL 1

Author Comment

by:csehz
ID: 35165868
Ragnarok89 yes in live I will have to modify but no problem with it the logic is good and works, thanks
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…

622 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