+ Reply to Thread
Results 1 to 8 of 8

Formula stopped working?

Hybrid View

natonstan Formula stopped working? 01-13-2016, 03:27 PM
Jonmo1 Re: Formula stopped working? 01-13-2016, 03:31 PM
natonstan Re: Formula stopped working? 01-13-2016, 03:37 PM
Jonmo1 Re: Formula stopped working? 01-13-2016, 03:59 PM
natonstan Re: Formula stopped working? 01-13-2016, 04:35 PM
FDibbins Re: Formula stopped working? 01-13-2016, 04:40 PM
natonstan Re: Formula stopped working? 01-13-2016, 04:44 PM
FDibbins Re: Formula stopped working? 01-13-2016, 04:52 PM
  1. #1
    Registered User
    Join Date
    10-28-2014
    Location
    Texas
    MS-Off Ver
    2013
    Posts
    11

    Formula stopped working?

    I have an IF statement that I've been running for quite a while, here's the formula:

    =IFERROR(HLOOKUP(A5,'W:\Global Currency Support\Currency Rate Reviews\CompetitorReviews\[DigikeyRateReview_08052015.xlsx]CurrenciesAndDeviantSuppliers'!$D$4:$AF$7,4,FALSE),"")

    Now every week I've been using this formula, and simply changing the date in the external file as there's a new file generated every week, now for some reason this has stopped working, can anyone spot anything within the formula that would cause it to stop functioning?

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Formula stopped working?

    Can you define "Stopped working" ?

    What exactly happens, do you get an error (or "" because of the IFERROR) ?
    Do you get the wrong value? What value DO you get, what value did you expect?

    What do you mean by "simply changing the date in the external file" ?
    Are you changing a date that already existed, say in G4, change it from 12/1/2015 to 1/1/2016 ?
    Or are you ADDING new dates to the right? Does the new date exist within the referenced range (A4:AF4) ?

  3. #3
    Registered User
    Join Date
    10-28-2014
    Location
    Texas
    MS-Off Ver
    2013
    Posts
    11

    Re: Formula stopped working?

    Quote Originally Posted by Jonmo1 View Post
    Can you define "Stopped working" ?

    What exactly happens, do you get an error (or "" because of the IFERROR) ?
    Do you get the wrong value? What value DO you get, what value did you expect?

    What do you mean by "simply changing the date in the external file" ?
    Are you changing a date that already existed, say in G4, change it from 12/1/2015 to 1/1/2016 ?
    Or are you ADDING new dates to the right? Does the new date exist within the referenced range (A4:AF4) ?
    Sorry, should have elaborated, when I say "change date" I simply mean I change the date in the file name in the formula, when a new file is generated it puts that days date so I simply change the filename so it uses the latest version of the external file.

    Basically what the formula is giving me is a blank value, the cell is completely blank after I run the formula, when before It would give me the correct percentage.

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Formula stopped working?

    For troubleshooting, I'd remove the IFERROR to make sure we know what the error actually is (probably #N/A)
    That is pretty straight forward, means it didn't find the match for A5 in the external book in A4:AF4

  5. #5
    Registered User
    Join Date
    10-28-2014
    Location
    Texas
    MS-Off Ver
    2013
    Posts
    11

    Re: Formula stopped working?

    I'm now wondering if my other Formula is causing the problem, does anything look odd with this VLOOKUP:

    =VLOOKUP(B2,'W:\Global_Currency_Support\Currency_Rate_Reviews\CompetitorReviews\[DigikeyRateReview_01122016.xlsx]Sheet1'!$A$5:$C$19,3,FALSE)

    Every week the filepath remains the same, just the date at the end of the file changes to that days date, it seems to work but then when I change the date at the end of the file path, it gives me #N/A (The file does exist I should add)

  6. #6
    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: Formula stopped working?

    Are you sure there is actually something to find on the other file?
    If you know that teh data inhe other file really is there, check for leading/trailing spaces in the "found" cell
    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

  7. #7
    Registered User
    Join Date
    10-28-2014
    Location
    Texas
    MS-Off Ver
    2013
    Posts
    11

    Re: Formula stopped working?

    Quote Originally Posted by FDibbins View Post
    Are you sure there is actually something to find on the other file?
    If you know that teh data inhe other file really is there, check for leading/trailing spaces in the "found" cell
    Yes there is data within the range of the VLOOKUP, and on the correct sheet (Sheet1), I should note that whenever I double click the formula and then enter out, it brings up the "Update Values:DigikeyRateReview_01122016.xlsx" box, and when I double click the file again in this box it just goes back to #N/A

  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: Formula stopped working?

    Just because there is data there, doesnt mean what you are looking for is there.

    If you can find what you are looking for (manually) check to see iif they are an exact match. A few ways to do that...

    1. copy the search criteria (B2?) to where you found it's match (you can always CTRL Z to "undo"). If the formula now works, then the 2 cells were not the same
    2. use =B2=your-other-cell FALSE means they dont match
    3. use =exact(B2=your-other-cell) FALSE means they dont match

+ 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. [SOLVED] Formula stopped working - what's wrong ?
    By Lukael in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-12-2016, 01:13 PM
  2. [SOLVED] Formula Suddenly Stopped Working?
    By nesbensen in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-26-2015, 02:28 PM
  3. [SOLVED] Sumproduct Formula Stopped Working
    By avendi in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-13-2014, 03:05 AM
  4. [SOLVED] Formula stopped working
    By adambot in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-20-2014, 12:23 PM
  5. formula stopped working
    By cprpacific in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-04-2013, 10:27 AM
  6. Replies: 3
    Last Post: 05-03-2013, 02:05 PM
  7. Help needed - Formula's stopped working.
    By falconcrest in forum Excel General
    Replies: 5
    Last Post: 01-18-2012, 08:31 AM

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