ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Can I use concatenate with Index(match) function? (https://www.excelbanter.com/excel-discussion-misc-queries/197817-can-i-use-concatenate-index-match-function.html)

Lynn Bales

Can I use concatenate with Index(match) function?
 
I have two workbooks, workbook one contains a list of employee numbers,
firstname, lastname. Workbook two contains the employee number. I would like
to index workbook one, matching on the emp number and concatenate firstname
lastname into a single cell. Is that possible with a formula or do I need a
macro?

Thanks in advance!

Gary''s Student

Can I use concatenate with Index(match) function?
 
You can do it with a formula. Something like:

=VLOOKUP() & VLOOKUP()

where the first call get the first name and the second call gets the last
name.
--
Gary''s Student - gsnu200798


"Lynn Bales" wrote:

I have two workbooks, workbook one contains a list of employee numbers,
firstname, lastname. Workbook two contains the employee number. I would like
to index workbook one, matching on the emp number and concatenate firstname
lastname into a single cell. Is that possible with a formula or do I need a
macro?

Thanks in advance!


Peo Sjoblom[_2_]

Can I use concatenate with Index(match) function?
 
=VLOOKUP(A2,otherworkbook_array,2,0)&" "&VLOOKUP(A2,otherworkbook_array,3,0)

something like that, where otherworkbook_array is the data with the emp #,
first and last names,
the number 2 tells the formula to return the first name from the 2nd column
and the 3 to return the last name from the
3rd column. A2 is the first cell with employee numbers



--


Regards,


Peo Sjoblom

"Lynn Bales" wrote in message
...
I have two workbooks, workbook one contains a list of employee numbers,
firstname, lastname. Workbook two contains the employee number. I would
like
to index workbook one, matching on the emp number and concatenate
firstname
lastname into a single cell. Is that possible with a formula or do I need
a
macro?

Thanks in advance!




Lynn Bales

Can I use concatenate with Index(match) function?
 
Thank you both for the formula. I understand the concept but it doesn't seem
to be working. I've made sure that I've sorted both sps by the emplopyee
number and I've even copied the exact employee number to the other sheet and
for some reason I'm getting N/A if I use ,0. If I set it to TRUE it works but
gives me incorrect data.

"Peo Sjoblom" wrote:

=VLOOKUP(A2,otherworkbook_array,2,0)&" "&VLOOKUP(A2,otherworkbook_array,3,0)

something like that, where otherworkbook_array is the data with the emp #,
first and last names,
the number 2 tells the formula to return the first name from the 2nd column
and the 3 to return the last name from the
3rd column. A2 is the first cell with employee numbers



--


Regards,


Peo Sjoblom

"Lynn Bales" wrote in message
...
I have two workbooks, workbook one contains a list of employee numbers,
firstname, lastname. Workbook two contains the employee number. I would
like
to index workbook one, matching on the emp number and concatenate
firstname
lastname into a single cell. Is that possible with a formula or do I need
a
macro?

Thanks in advance!






All times are GMT +1. The time now is 06:43 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com