+ Reply to Thread
Results 1 to 12 of 12

Correcting a formula to remove old references

  1. #1
    Forum Contributor
    Join Date
    12-15-2005
    MS-Off Ver
    Office 2007
    Posts
    346

    Correcting a formula to remove old references

    In this formula:

    =IF(AND(OR(AND(Search!$B$2="ALL",OR(Search!$M$3="",N3=Search!$M$3))),OR(AND(Search!$B$4="All",OR(Search!$M$5="",O3=Search!$M$5)),AND(B3=Search!$B$4,OR(Search!$M$5="",O3=Search!$M$5))),OR(Search!$B$6="ALL",G3=Search!$B$6),OR(Search!$B$7="ALL",H3=Search!$B$7),OR(Search!$B$8="ALL",I3=Search!$B$8),OR(Search!$B$9="",ISNUMBER(SEARCH(Search!$B$9,J3))),OR(IF(ISNUMBER(Search!$X$29),AND(C3>=TODAY()-Search!$X$29,C3<=TODAY()),AND(C3>=Search!$B$10,C3<=Search!$B$11)))),COUNT(K$2:K2)+1,"")

    I need to remove referrences to: $M$3, N3, $M$5, and O3.

    Here is a screen shot of the highlighted code:
    Formula.PNG

    When I try to do it I mess up the original coding.

    Thanks for any help,
    Nick

  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
    52,946

    Re: Correcting a formula to remove old references

    not every1 can open .png files, myself included. It would be far better if you could upload a sample of your file, showing what you have, and an example of your expected outcome. Thanks

    edit: however, looking at your formula, would this work for you?....

    Please Login or Register  to view this content.
    Last edited by FDibbins; 09-16-2012 at 06:23 PM.
    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 ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Correcting a formula to remove old references

    How about this:

    Please Login or Register  to view this content.
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  4. #4
    Forum Contributor
    Join Date
    12-15-2005
    MS-Off Ver
    Office 2007
    Posts
    346

    Re: Correcting a formula to remove old references

    Thanks for the help, attached is a sample. I input your code FDibbins, it works except for the drop down on B2 on the Search Sheet.

    I attached a sample file.

    Thanks for the help.
    Nick
    Attached Files Attached Files

  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
    52,946

    Re: Correcting a formula to remove old references

    the formula you gave in your 1st post is not the same as the formulas in your file. i will work on your file and see what i can come up with

  6. #6
    Forum Contributor
    Join Date
    12-15-2005
    MS-Off Ver
    Office 2007
    Posts
    346

    Re: Correcting a formula to remove old references

    Sorry your right, I deleted two two rows on the Search Sheet that were not being used, that probably changed the cell references.

  7. #7
    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
    52,946

    Re: Correcting a formula to remove old references

    in your formula, what is...ISNUMBER(SEARCH(Search!$B$9,J3))),...supposed to be doing? you seem to have an extra search in there?

  8. #8
    Forum Contributor
    Join Date
    12-15-2005
    MS-Off Ver
    Office 2007
    Posts
    346

    Re: Correcting a formula to remove old references

    Someone originally made the formula for me, I edited as needed. It's possible that something might have been left where it was not needed.

  9. #9
    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
    52,946

    Re: Correcting a formula to remove old references

    ok, i can understand that, hoever the entire formula is a bit of a mess, and is very confusing to edit.

    can you walk me thu what you are trying to achieve, i can probably reconstruct your formula in a far simpler way?

  10. #10
    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
    52,946

    Re: Correcting a formula to remove old references

    I will (probably) be unavailable for the next 2 day, if you can wait that long, cool, if not maybe some1 else can help you?

  11. #11
    Forum Contributor
    Join Date
    12-15-2005
    MS-Off Ver
    Office 2007
    Posts
    346

    Re: Correcting a formula to remove old references

    Sure. The sheet named "Data" is where we input all the information. The sheet named "Search" is where we can narrow down the search.

    For example we can search by employee, Observed By, ACT, Appearance, Pass All, and Comments or any combination of all those.

    The track back days on the "Search" sheet is the amount of days back it will pull data from, unless a start date and end date are entered on the "Search Sheet"

  12. #12
    Forum Contributor
    Join Date
    12-15-2005
    MS-Off Ver
    Office 2007
    Posts
    346

    Re: Correcting a formula to remove old references

    No problem, I will leave this till tomorrow afternoon. If no other replies I can start a new post with my most updated information.

    Thanks for looking.

+ 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