Solved

MS Excel Query

Posted on 2012-04-10
7
422 Views
Last Modified: 2012-04-12
Hi All,

I am trying to combine 3 columns into 1. I have a column for First Name, Last Name and Middle initial.  My combined cloumn is: Last Name+', '+First Name+' '+Middle initial.

The problem is, if the person does not have a middle initial then nothing is shown.

How do I get My combined column to reflect the Last Name and First name only if no middle initial is present.

Thank you in advance.
0
Comment
Question by:Reyesrj
  • 4
  • 2
7 Comments
 
LVL 16

Accepted Solution

by:
Peter Kwan earned 250 total points
ID: 37826538
Let's say, column A stores Last name,  column B stores first name and column C stores middle intial, and the final combined results stored in column D:

Formula in column D:
=A1 & ", " & B1 & IF(C1 <> "",  " " & C1, "")
0
 

Author Comment

by:Reyesrj
ID: 37826628
Thanks, but that's in the spreadsheet.  How do I combine the columns in MS Excel database query?
0
 
LVL 9

Assisted Solution

by:anthonymellorfca
anthonymellorfca earned 250 total points
ID: 37834717
what's the external data file type and source? are you on a pc or mac ? which version excel?

any chance a small data example? easier to play with. edit how big is the data source, hundreds thousands or millions of records? this problem sounds familiar.
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 

Author Comment

by:Reyesrj
ID: 37835574
Currently there are about 600 records in Access 2007.  It is anticipated to increase by 100 per week.  I experience this all time.  It’s that blank or NULL field that creates the problem.  What I have done in the past is combine the first name and last name into one column and leave the middle initial in a separate column.   Then combine the combined name column with the middle initial column in the excel table.
Thanks

Sample pic
0
 

Author Comment

by:Reyesrj
ID: 37835623
Sorry, the pic was for my other question.
0
 

Author Closing Comment

by:Reyesrj
ID: 37835863
This is what I found:

In MS Excel Database Query Wizard, you use ampersand "&" instead of a plus sign "+".  So the formula would look like this:

LastName & ', ' & FirstName & ' ' & MiddleName

Thanks to ALL
0
 
LVL 9

Expert Comment

by:anthonymellorfca
ID: 37836333
thanks!
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Drop Down List with Unique/Distinct Values (enhancing the Combo-Box with a few steps and a little code) David miller (dlmille) Intro Have you ever created a data validation list from a database field or spreadsheet column (e.g., Zip Codes or Co…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

743 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now