Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
mvhutton
 
Posts: n/a
Default Comparing data and updating spreadsheets

I have two spreadsheets with Last Name and First Name columns. What I would
like to do is compare the Last Name and First Name fields in Spreadsheet A to
the same fields in Spreadsheet B. If there's a match, I would like to take
the UserID from Spreadsheet A and update the UserID column in Spreadsheet B.
What is the easiest way to accomplish this?
  #2   Report Post  
bj
 
Posts: n/a
Default

when you say update the User ID on sheet two, is there an existing number
which will be changed. if so, I would add a new column with the old IDs on
sheet two and add a new IDcolumn with
=if(iserror(sumproduct(--(Sh1!Lastrange=last),--(Sh1!firstrange=first))),oldid,sumproduct(--(Sh1!Lastrange=last),--(Sh1!firstrange=first),Sh1!IDrange))
with the appropriate cells a

"mvhutton" wrote:

I have two spreadsheets with Last Name and First Name columns. What I would
like to do is compare the Last Name and First Name fields in Spreadsheet A to
the same fields in Spreadsheet B. If there's a match, I would like to take
the UserID from Spreadsheet A and update the UserID column in Spreadsheet B.
What is the easiest way to accomplish this?

  #3   Report Post  
mvhutton
 
Posts: n/a
Default

Whoops! What I want to do is update the UserID column in Spreadsheet B if the
names match and the UserID in Spreadsheet B is blank.

"bj" wrote:

when you say update the User ID on sheet two, is there an existing number
which will be changed. if so, I would add a new column with the old IDs on
sheet two and add a new IDcolumn with
=if(iserror(sumproduct(--(Sh1!Lastrange=last),--(Sh1!firstrange=first))),oldid,sumproduct(--(Sh1!Lastrange=last),--(Sh1!firstrange=first),Sh1!IDrange))
with the appropriate cells a

"mvhutton" wrote:

I have two spreadsheets with Last Name and First Name columns. What I would
like to do is compare the Last Name and First Name fields in Spreadsheet A to
the same fields in Spreadsheet B. If there's a match, I would like to take
the UserID from Spreadsheet A and update the UserID column in Spreadsheet B.
What is the easiest way to accomplish this?

  #4   Report Post  
bj
 
Posts: n/a
Default

Trythe previous recommendation and changing the equation to
=if(and(oldid="",not(iserror(sumproduct(--(Sh1!Lastrange=last),--(Sh1!firstrange=first)))),sumproduct(--(Sh1!Lastrange=last),--(Sh1!firstrange=first),Sh1!IDrange),oldid)

I would add the step of copying the newid and paste special values over the
oldid range before new data is added to Sh1!
"mvhutton" wrote:

Whoops! What I want to do is update the UserID column in Spreadsheet B if the
names match and the UserID in Spreadsheet B is blank.

"bj" wrote:

when you say update the User ID on sheet two, is there an existing number
which will be changed. if so, I would add a new column with the old IDs on
sheet two and add a new IDcolumn with
=if(iserror(sumproduct(--(Sh1!Lastrange=last),--(Sh1!firstrange=first))),oldid,sumproduct(--(Sh1!Lastrange=last),--(Sh1!firstrange=first),Sh1!IDrange))
with the appropriate cells a

"mvhutton" wrote:

I have two spreadsheets with Last Name and First Name columns. What I would
like to do is compare the Last Name and First Name fields in Spreadsheet A to
the same fields in Spreadsheet B. If there's a match, I would like to take
the UserID from Spreadsheet A and update the UserID column in Spreadsheet B.
What is the easiest way to accomplish this?

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
Updating External Data tillyosu Excel Discussion (Misc queries) 0 July 11th 05 05:26 PM
Updating Excel spreadsheets over the Internet? Dan Merkel Excel Discussion (Misc queries) 1 May 20th 05 04:44 PM
Updating Excel Data on Multiple Sheets Juana Cafe Excel Worksheet Functions 3 February 28th 05 09:04 PM
Updating calculations automatically when i enter in new data chica_guapa Excel Discussion (Misc queries) 1 February 8th 05 10:17 PM
Updating calculations + graph when i enter in new data WITHOUT OFF superman Excel Worksheet Functions 0 February 2nd 05 05:05 PM


All times are GMT +1. The time now is 06:12 AM.

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

About Us

"It's about Microsoft Excel"