Combine Data From Multiple Cells

BY STANELY ZAROWIN

Q: I have an inventory-tracking problem. We record the inventory in our retail stores with Excel. Each item is identified with three sets of numbers. For example, a three-digit code (248) indicates the store’s identity, another three-digit code (564) signifies the department, and a four-digit code (1223) is for the product— and each is recorded in a separate column, like this:

 

 

Our tracking would be much easier if, at times, we could combine the codes into one number. Can you help?

 

A: What you want to do is concatenate—that funny word which means to connect or link. In computer lingo it means to gather data from several cells and combine them into one cell, which is what you want to do.

 

The basic use of Excel’s Concatenate function is:

 

=CONCATENATE(text1, text2, text3,…)

The screenshot of the spreadsheet below illustrates the Concatenate function with the example inventory codes supplied above, with column F showing the linked code.

 

 

Notice also how I created spaces between the assembled codes by inserting pairs of quote marks (“), like this:

 

=CONCATENATE(text1,” “,text2,” “,text3,”…)

 

You can streamline this process by using the ampersand (&), which in Excel programming means Concatenate. Here is the above formula using the ampersand rather than the Concatenate function:

 

 

Or, if you want to add a dash (-) between the groups of data, add dashes within the quote marks, as shown below:

 

 

SPONSORED REPORT

How to make the most of a negotiation

Negotiators are made, not born. In this sponsored report, we cover strategies and tactics to help you head into 2017 ready to take on business deals, salary discussions and more.

VIDEO

Will the Affordable Care Act be repealed?

The results of the 2016 presidential election are likely to have a big impact on federal tax policy in the coming years. Eddie Adkins, CPA, a partner in the Washington National Tax Office at Grant Thornton, discusses what parts of the ACA might survive the repeal of most of the law.

COLUMN

Deflecting clients’ requests for defense and indemnity

Client requests for defense and indemnity by the CPA firm are on the rise. Requests for such clauses are unnecessary and unfair, and, in some cases, are unenforceable.