2

Column A has first name. Column B has last name. I need column C to be "display name" (first name and last name separated by a space). I assume this involves the concatenate function.

Bonus Question: Column D is email address. I need column E to be "username" (everything in email address left of the @ symbol). I assume this involves some regular expression function.

2 Answers 2

5

For the first part, yes you need CONCATENATE, for example:

=CONCATENATE(A1, " ", B1)

For the second, something like:

=MID(D1,1,FIND("@",D1)-1)

will give you everything up to the @ of an e-mail address.

3
  • Yeah, the part I couldn't figure out was to copy the formula down to all of the cells in the column. A shortcut method for doing this is to double-click the fill handle while cell C2 is selected. The fill handle is the darker square dot in the lower right corner of the cell pointer. Source: mrexcel.com/tip074.shtml Dec 3, 2012 at 22:53
  • Any idea on the second formula? Dec 3, 2012 at 22:54
  • Just updated the answer for the 2nd part Dec 3, 2012 at 22:55
2

Since variety spices life, here are some other options. Note that the ampersand "&" is the concatenation operator.

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .