Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Substitute the value from another Workbook

I have two workbooks, first contained the Login_name and Full_name,
second workbook contained Login_name and other fields, Login_name will
be the index field, I want to create a report/worksheet to show the
Full_name with the other fields together in replacing the Login_name.
How is it possible?
thanks
huang
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 108
Default Substitute the value from another Workbook

Unless you need it to be done with a program for some reason, I'd just use
the VLOOKUP worksheet function. In your first workbook you have a list of
login names and the person's name for each; in the second workbook you have a
list of possible login names with additional columns showing more information
(last logon date, default group, last date the user changed the password,
maybe the CICS OPID, whatever).

Let's assume that the second workbook is at T:\Dpt archives\InfoSec\MVS.xls,
the sheet you want is named UserIDs, and on that sheet the login ID is in
column A and the other data is to the right. In the first workbook the login
ID is also in column A and the name is in B. You want to capture, oh, say
the default TSO prefix for each ID, so starting with row 3, in column C of
the first workbook you type this formula:

=VLOOKUP(A3, 'T:\Dpt archives\InfoSec\[MVS.xls]!UserIDs'!A:K,5,0)

This means you want to take the value in A3 and look for it in column A of
the second workbook. When it finds the userID value in that column, you want
to work out to the 5th column and put it here (that is, in A3 of the first
workbook). The '0' means you insist on the UserID being an exact match; if
it isn't, an error will show in this cell instead of a match on the UserID
that's closest to the one you asked for.

You can look up VLOOKUP for more details, but that should get you started.

--- "Mr_Huang" wrote:
I have two workbooks, first contained the Login_name and Full_name,
second workbook contained Login_name and other fields, Login_name will
be the index field, I want to create a report/worksheet to show the
Full_name with the other fields together in replacing the Login_name.
How is it possible?

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
=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE.... max. limit 8 :( [email protected] Excel Discussion (Misc queries) 6 May 22nd 08 05:33 PM
Substitute mrbalaje Excel Discussion (Misc queries) 2 March 15th 07 07:47 AM
substitute for = CEN7272 - ExcelForums.com Excel Worksheet Functions 3 August 15th 05 09:08 PM
substitute AMK Excel Worksheet Functions 1 June 13th 05 01:23 AM
Substitute chr(39) Jos Vens[_2_] Excel Programming 5 December 27th 04 09:11 AM


All times are GMT +1. The time now is 05:07 PM.

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"