Solved

Compile Data

Posted on 2014-01-17
7
209 Views
Last Modified: 2014-01-17
Trying to build a formula in AH100 that will look in cell Z100:AE:100, and will display the combined data.

For example Z100 is "LGT RAIN"  AC100 is "WINDY",  AH100 would read "LGT RAIN WINDY"
0
Comment
Question by:sandramac
[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
  • 4
  • 2
7 Comments
 
LVL 12

Expert Comment

by:tel2
ID: 39790120
Hi Sandra,

You could use the CONCATENATE() fuction, but it works on individual cells, not ranges of cells, so if you want to concatenate all those, you'd need to do:
    =CONCATENATE(Z100,AA100,AB100,AC100,AD100,AE100)
But do you want to add a space between each cell?
A more concise way is:
    =Z100&AA100&AB100&AC100&AD100&AE100
or if you want a space between cells:
    =Z100&" "&AA100&" "&AB100&" "&AC100&" "&AD100&" "&AE100

The alternative is using a macro (VBA), but probably over-kill for so few cells.

PS: When you wrote: "Z100:AE:100", I assume you meant "Z100:AE100"
0
 
LVL 3

Expert Comment

by:Sreeram
ID: 39790188
HI

you can use one of the below formula


1. =CONCATENATE(Z100," ",AC100)      (*i have used a space inbetween Z100 and AC100)
2. Z100&" "&AC100
0
 
LVL 12

Expert Comment

by:tel2
ID: 39790192
Hi kujumbio,

Sandra has asked for the range Z100 to AE100.  You have provided 2 cells: Z100 and AC100.  Those 2 cells were mentioned just as an example of how the concatenation should work.  So, if you have any solutions which meet her requirements, and don't repeat solutions which have already been provided hours ago, then please provide them.

Good point that the CONCATENATE() function does allow literals (like space), though.  I didn't realise that.  The "...&..." syntax is more concise though.
0
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 

Author Comment

by:sandramac
ID: 39790197
thx guys one question how can i make sure there is only one space between values. For instance if z100 and ae100 only have data in it, i just need that data with one space between them, and not several spaces.
0
 
LVL 12

Accepted Solution

by:
tel2 earned 500 total points
ID: 39790200
This works for me, Sandra:

=TRIM(Z100&" "&AA100&" "&AB100&" "&AC100&" "&AD100&" "&AE100)
0
 

Author Closing Comment

by:sandramac
ID: 39790205
Thanks, that is what I needed.
0
 
LVL 12

Expert Comment

by:tel2
ID: 39790216
Good to hear it, Sandra.

kujumbio, I think I was unnecessarily tough on you.  I'm sorry about that.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
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…
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…

726 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