+ Reply to Thread
Results 1 to 10 of 10

Create link to external file to determine if formula was overwritten

  1. #1
    Forum Contributor Webbers's Avatar
    Join Date
    09-06-2005
    Location
    Poinciana, FL
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    337

    Create link to external file to determine if formula was overwritten

    I have been racking my brain on this one, and I have a feeling this will be simpler than I anticipated. Okay I am including 2 sample files, which provide a visual of my issue. Each month we have to manual adjust PTO (Column M) and pro-rate it for people based on their seniority date (Column J). Now the PTO (Column M) had a formula... it is an if statement here, but I have already reworked it into a table with a VLOOKUP for the process. I am re-working an existing file designed by someone else. I need to be able to do a VLOOKUP in Column M for an external file, using the Employee ID (Column C) and look at the previous workbook... in this case, the August Workbook would look at July. If the formula was not altered, then the result would be the formula in August. However, if July's formula was altered (highlighted in orange), then I would like that altered formula AND (if possible) the conditional formatting of Orange to appear. This is a painstaking manually process that is required. We need to be. The issue I am facing is that there are new records added constantly, plus these records are sorted. So John Smith could be on row 3 in July, and somewhere else in August. Aside from that, I am not wanting to capture the value. If the "default formula" is not listed for that employee ID, I want that formula to be added. Am I living in a fantasy or is this possible?
    Attached Files Attached Files
    ~*~ Sherry ~*~
    Poinciana, FL

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Create link to external file to determine if formula was overwritten

    Posssible with Excel 2013 or above
    O2
    =LEN(FORMULATEXT(INDEX([July.xlsx]Sheet1!$M$2:$M$15,MATCH(C2,[July.xlsx]Sheet1!$C$2:$C$15,))))<99

    M2
    =IF(O2,INDEX([July.xlsx]Sheet1!$M$2:$M$15,MATCH(C2,[July.xlsx]Sheet1!$C$2:$C$15,)),LOOKUP(L2,{0.0001,144;5,160;10,200;20,240}))

    for Excel 2010 , UDF for formulatext is require,check below link

    https://www.excelforum.com/excel-for...or-2007-a.html
    Attached Files Attached Files

  3. #3
    Forum Contributor Webbers's Avatar
    Join Date
    09-06-2005
    Location
    Poinciana, FL
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    337

    Re: Create link to external file to determine if formula was overwritten

    Bo_Ry,

    That is not what I meant. And FYI, I have Office 365. Okay the 1st record (Ian Harris) is highlight (Column M) on July file, and his name on August file (so you know how was manually altered easily for this exercise). The formula for anyone in Column M by default is:

    =IF(AND(L2<>0,L2<5),"144",IF(AND(L2>=5,L2<10),"160",IF(AND(L2>=10,L2<20),"200",IF(AND(L2>=20),"240"))))

    Now since this record was altered, his formula is:

    =8*12

    it is THAT formula I need displayed as a formula within cell M2 rather than the formula above since it is different.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,803

    Re: Create link to external file to determine if formula was overwritten

    Please update your forum profile to show your current version: as you can see, members rely on it being accurate. Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Contributor Webbers's Avatar
    Join Date
    09-06-2005
    Location
    Poinciana, FL
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    337

    Re: Create link to external file to determine if formula was overwritten

    Ali,

    Sorry about that... I forgot the version was part of the profile. It is updated now, and FYI, I use the same version at work and at home.

  6. #6
    Forum Contributor Webbers's Avatar
    Join Date
    09-06-2005
    Location
    Poinciana, FL
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    337

    Re: Create link to external file to determine if formula was overwritten

    I just got an update from the user, and I checked my file, and the data/formulas I provided reflect it already in the original. The manual overrides are simple formulas. For instance the record on row 2 (Ian Harris), has a formula, which was overwritten of =8*12. These are the formulas that I need to capture. It is possible that the override is more complex than that. =1*12+11*13.33 is a perfect example, which is row 7 for Jessica Fraser. The point being none of the overrides have a lengthy IF statement, or now I converted it to a VLOOKUP to make it easier for regular updates. So basically if the formula on the previous worksheet does not contain the formula listed below, I want to pull in the formula that IS listed. Please tell me this is possible. Thanks so very much!!! The table that is the named range of PTO_Hours looks like this:

    years hours
    0 144
    5 160
    10 200
    20 240

    The new formula is: =IFERROR(VLOOKUP($L2,PTO_Hours,2,TRUE),"-")
    Last edited by Webbers; 08-16-2019 at 10:29 AM. Reason: Added formula

  7. #7
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: Create link to external file to determine if formula was overwritten

    Note that Post#6 must have been added while I was working on this proposal, so my proposed solution refers formulas in the original files. If you need help converting to the new set up please upload a current version of the August file.
    I am still a bit unclear as to whether you want to see the "overwritten" formulas from July, or the values those formulas yield.
    I have included both. The formulas are based on the first formula in Bo_Ry's post.
    To show the formula use:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    To show the values use:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Conditional formatting for formulas: =LEN(M2)>3
    Conditional formatting for values: =ISNUMBER(M2)
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  8. #8
    Forum Contributor Webbers's Avatar
    Join Date
    09-06-2005
    Location
    Poinciana, FL
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    337

    Re: Create link to external file to determine if formula was overwritten

    JetMc---

    I will check it out for the user. Thanks!

  9. #9
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: Create link to external file to determine if formula was overwritten

    You're Welcome. If the proposal does what the user wants, please take a moment to mark the thread as 'Solved' using the thread tools menu above your first post. I hope that you have a blessed day.

  10. #10
    Forum Contributor Webbers's Avatar
    Join Date
    09-06-2005
    Location
    Poinciana, FL
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    337

    Re: Create link to external file to determine if formula was overwritten

    Thanks so much. Sorry I was out of town on business again. User is happy!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 09-29-2014, 01:14 AM
  2. Must open external file to link formula
    By Bond007 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-17-2014, 11:03 AM
  3. VBA Code Help - If file overwritten, continue. If file not overwritten, show warning.
    By spoliquin in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-22-2013, 05:03 PM
  4. [SOLVED] Why this formula only works when the external link file is open
    By zjianguk in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-15-2013, 06:18 AM
  5. Determine filesize of external file
    By Kiwwa in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-19-2007, 01:47 AM
  6. Create an external reference link with embedded variable
    By Greentree in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-09-2005, 03:05 PM
  7. Replies: 1
    Last Post: 02-22-2005, 05:06 PM

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