Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Lynn
 
Posts: n/a
Default How to change number to text in new column from another worksheet?

Worksheet 1 : Contains information in numbers eg. 123456
Worksheet 2 : Contains information in numbers eg 123456 and belongs to James.

I need to add text eg 'James' next to that number eg.'123456' in Worksheet
1 and in a new column. The numbers may repeat within the worksheet 1.
Therefore, i need excel to run the selection and changes automatically.

How can i do that? What sort of formating or tools that i need to use?
Really appreciate if you could help me. Thank you in advance.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max
 
Posts: n/a
Default How to change number to text in new column from another worksheet?

One way ..

In Sheet2, assume the numbers are col A,
corresponding names in col B

In Sheet1, assume the numbers are running in A2 down,
and we want the names extracted in col B

Put in B2:

=IF(ISNA(MATCH(A2,Sheet2!A:A,0)),"",
INDEX(Sheet2!B:B,MATCH(A2,Sheet2!A:A,0)))
Copy B2 down

Unmatched numbers (if any) will return blanks: ""
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--
"Lynn" wrote in message
...
Worksheet 1 : Contains information in numbers eg. 123456
Worksheet 2 : Contains information in numbers eg 123456 and belongs to

James.

I need to add text eg 'James' next to that number eg.'123456' in

Worksheet
1 and in a new column. The numbers may repeat within the worksheet 1.
Therefore, i need excel to run the selection and changes automatically.

How can i do that? What sort of formating or tools that i need to use?
Really appreciate if you could help me. Thank you in advance.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Lynn
 
Posts: n/a
Default How to change number to text in new column from another worksh

Thank you so much max... really appreciate your help.. it worked!! but, there
is a slight problem.. it has this message stated in visual basic :
Compile error :
Expected:List seperator or )

But i followed exactly what you have wrote. Really appreciate your help.

Thank you..



"Max" wrote:

One way ..

In Sheet2, assume the numbers are col A,
corresponding names in col B

In Sheet1, assume the numbers are running in A2 down,
and we want the names extracted in col B

Put in B2:

=IF(ISNA(MATCH(A2,Sheet2!A:A,0)),"",
INDEX(Sheet2!B:B,MATCH(A2,Sheet2!A:A,0)))
Copy B2 down

Unmatched numbers (if any) will return blanks: ""
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--
"Lynn" wrote in message
...
Worksheet 1 : Contains information in numbers eg. 123456
Worksheet 2 : Contains information in numbers eg 123456 and belongs to

James.

I need to add text eg 'James' next to that number eg.'123456' in

Worksheet
1 and in a new column. The numbers may repeat within the worksheet 1.
Therefore, i need excel to run the selection and changes automatically.

How can i do that? What sort of formating or tools that i need to use?
Really appreciate if you could help me. Thank you in advance.




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max
 
Posts: n/a
Default How to change number to text in new column from another worksh

Not very sure what's happening with the "slight problem", Lynn,
but try this version with commas replaced by semicolons

=IF(ISNA(MATCH(A2;Sheet2!A:A;0));"";
INDEX(Sheet2!B:B;MATCH(A2;Sheet2!A:A;0)))

--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--
"Lynn" wrote in message
...
Thank you so much max... really appreciate your help.. it worked!! but,

there
is a slight problem.. it has this message stated in visual basic :
Compile error :
Expected:List seperator or )

But i followed exactly what you have wrote. Really appreciate your help.

Thank you..



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
creating a bar graph Johnfli Excel Discussion (Misc queries) 0 October 26th 05 08:16 PM
How to change text format .126 to number format 0.126 ? vitality Excel Worksheet Functions 2 October 6th 05 01:02 PM
Comparing a list to a Calendar worksheet. PatrickL Excel Worksheet Functions 0 August 25th 05 04:21 PM
Sort or Filter option? Mcobra41 Excel Worksheet Functions 3 February 23rd 05 07:22 PM
Change column Number vrs Text an Excel Worksheet Functions 2 January 28th 05 12:22 PM


All times are GMT +1. The time now is 08:59 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"