+ Reply to Thread
Results 1 to 9 of 9

Possible to simplify this formula further?

  1. #1
    Registered User
    Join Date
    05-09-2011
    Location
    *
    MS-Off Ver
    Excel 2010
    Posts
    44

    Possible to simplify this formula further?

    Hi, I am trying to compare two workbooks and identify the cells which have been changed. I managed to get the formula working however I'm hoping to simplify it further and possibly removing the need to copy and paste a "concatenate" formula on the workbook2.

    Here's what I'm doing :

    1) Open workbook2 and on the last column (column I), I'll paste CONCATENATE(A7,E7,H7) formula. I do the same for all the tabs

    2) Open workbook1 and on the last column, I'll paste IF(ISERROR(VLOOKUP(CONCATENATE(A7,E7,H7),'[Document.xls]Sheet1'!$I:$I,1,FALSE)),"Updated","Not Updated").

    3) Repeat Step 2 for all the tabs in workbook1

    What it does then is to compare both values from Workbook1 and Workbook2 and if there is a match it will return the value "Not Updated", if there is a variance it will return "Updated" instead.

    I'm trying to figure out a way to remove step 1 which is to manually paste the formula as I have multiple tabs. Does anyone have any solutions to do this?

    Appreciate your input.

    Thanks in advance

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Possible to simplify this formula further?

    you can shorten the formula slightly to =A7&E7&H7

    Then, to copy across a number of worksheets, 1st group them together - click the 1st sheet, scroll if needed until you can see the last sheet you want, then hold shift and click the last sheet.

    Now, whatever you do on 1 sheet will be "punched through" to all the other sheets in the groups...if you copy that formula down 230 lines on 1 sheet, it will be copied down 20 lines on all sheets.

    When you have finished, DONT forget to ungroup - click on a sheet that is not in the group, or right-click a sheet name in the group and select ungroup
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Possible to simplify this formula further?

    =if(countifs('[Document.xls]Sheet1'!$a:$a,a7,'[Document.xls]Sheet1'!$e:$e,e7,'[Document.xls]Sheet1'!$h:$h,h7)>0,"Updated","Not Updated")

  4. #4
    Registered User
    Join Date
    05-09-2011
    Location
    *
    MS-Off Ver
    Excel 2010
    Posts
    44

    Re: Possible to simplify this formula further?

    Thanks for your responses. Would it be possible to incorporate the concatenate formula (workbook 2) into the vlookup formula (workbook 1) by any chance?

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Possible to simplify this formula further?

    maybe....

    =IF(ISERROR(VLOOKUP(A7&,E7&H7,'[Document.xls]Sheet1'!$I:$I,1,FALSE)),"Updated","Not Updated")

  6. #6
    Registered User
    Join Date
    05-09-2011
    Location
    *
    MS-Off Ver
    Excel 2010
    Posts
    44

    Re: Possible to simplify this formula further?

    hmm ... i'm trying to replace the table array with a concatenate. Tried the following but it doesn't work. Do you happen to know any alternatives to this?

    =IF(ISERROR(VLOOKUP(A7&,E7&H7,'[Document.xls]Sheet1'CONCATENATE(A7,E7,H7),1,FALSE)),"Updated","Not Updated")

  7. #7
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Possible to simplify this formula further?

    This is the Error Part of your formula

    [Document.xls]Sheet1'CONCATENATE(A7,E7,H7)

    The above one should be a range reference....

    For Comparing A7&,E7&H7 with '[Document.xls]Sheet1'CONCATENATE(A7,E7,H7) don't need vlookup function just a = is enough in this case...


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Possible to simplify this formula further?

    sorry, i left a , in there

    =IF(ISERROR(VLOOKUP(A7&E7&H7,'[Document.xls]Sheet1'!$I:$I,1,FALSE)),"Updated","Not Updated")

  9. #9
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Possible to simplify this formula further?

    Pl try this in Workbook1. There is no necessity to concatenate in Document (Workbook2).

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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