+ Reply to Thread
Results 1 to 4 of 4

If identical value found in two cells (different spreadsheets) then update main sheet

  1. #1
    Registered User
    Join Date
    07-21-2011
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2007/2010
    Posts
    11

    If identical value found in two cells (different spreadsheets) then update main sheet

    Hello all! I am VERY much looking forward to seeing if you might be able to help me with this... I spent about 4 hours at work trying to get this working and was totally unsuccessful with little progress. any help is VERY MUCH WELCOMED in advance!

    I believe this is relatively simple for excel guru's, but I could be wrong. I even installed the plugin zlookup to do this, but couldn't get it working. Here is the scenario

    Spreadsheet 1 (called Master.xls) and Spreedsheet 2 (called DailyReportData.xls) are seen below.

    My goal is to say the following: If Master.xls has an identical cell in column A to a cell in Column A of DailyReportData.xls, for that row update column B in Master.xls using the data from Column B of DailyReportData.xls. Here is a sample using real data:



    So if, for example, IF AN IDENTICAL IP ADDRESS EXIST IN BOTH MASTER.XLS'S COLUMN A AND DAILYREPORTDATA.XLS'S COLUMN A -- THEN TAKE THE 'LAST DATE REFERENCED' VALUE FROM DAILYREPORTDATA.XLS AND WRITE THAT TO MASTER.XLS so that the most recent data is in the master file.

    This needs to be done for every identical IP address match found between the two sheets.

    I have also attached a spreadsheet with the same data as above, formatted nicely.


    Thank you so much in advance and if you need more information, please ask!
    Attached Files Attached Files
    Last edited by arthurbr; 07-22-2011 at 02:32 AM. Reason: Removed data from post ( see sheets)

  2. #2
    Valued Forum Contributor
    Join Date
    05-23-2011
    Location
    Lahore PK
    MS-Off Ver
    Excel 2007, 2013
    Posts
    627

    Re: If identical value found in two cells (different spreadsheets) then update main s

    Hi kwondra34

    find the formula in the attatched file
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    07-21-2011
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2007/2010
    Posts
    11

    Re: If identical value found in two cells (different spreadsheets) then update main s

    Azam,

    With a little trickery, I was able to adapt this to work between spreadsheets and not just between tabs!! This is so wonderful. Thank you so much.

    Here is the modification to your formula for those interested:

    =IF(ISNA(VLOOKUP($F7,[Daily.xlsx]DailyReport!$C$2:$F$200,2,0))=TRUE,$L7,VLOOKUP($F7,[Daily.xlsx]DailyReport!$C$2:$F$200,4,0))
    (The formula above -- mainly given to me by Azam -- works for different spreadsheets as opposed to different tabs. If you only want to modify different tabs, see his submission.

    I hope that makes sense

    Thank you so much for your time -- this was very important to me.
    Last edited by kwondra34; 07-21-2011 at 04:11 PM.

  4. #4
    Valued Forum Contributor
    Join Date
    05-23-2011
    Location
    Lahore PK
    MS-Off Ver
    Excel 2007, 2013
    Posts
    627

    Re: If identical value found in two cells (different spreadsheets) then update main s

    it is nice to read that it is wroking for you

    Kindly note that first formula is using vlookup function and second formula is using index+match funcitons and both are giving same results

    If your problem is solved, mark your thread as Solved: Click the Edit button on your first post in the thread, Click Go Advanced, select [SOLVED] from the Prefix dropdown, then click Save Changes.
    Last edited by Azam Ali; 07-22-2011 at 02:31 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1