+ Reply to Thread
Results 1 to 7 of 7

If workbook not found then give 0 value

  1. #1
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    If workbook not found then give 0 value

    hi,
    i am getting data from linking cell

    Please Login or Register  to view this content.
    there is a problem in above formula
    if workbook not found its giving answer = 97

    while i need 0

    thank you
    Use Code-Tags for showing your code :
    Please mark your question Solved if there has been offered a solution that works fine for you
    If You like solutions provided by anyone, feel free to add reputation using STAR *

  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,944

    Re: If workbook not found then give 0 value

    If it cannot find the WB, I dont see how it can give any value, it should only return a #REF error.

    To get rid of that error...
    =iferror(COUNTA('Z:\42766\Jan 2 Dec 2014\1.12.16\[30.6.17.XLSB]TOTAL BC VC'!$C$4:$C$100),"")
    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
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: If workbook not found then give 0 value

    Probably your excel remeber last value

    external.jpg

    try un-tick this option and check values again

  4. #4
    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,944

    Re: If workbook not found then give 0 value

    Quote Originally Posted by sandy666 View Post
    Probably your excel remeber last value

    Attachment 523819

    try un-tick this option and check values again
    Good point. To test, use F9 (recalc)

  5. #5
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: If workbook not found then give 0 value

    F9 doesn't work
    You need go to DATA tab , Edit links, Break a link (or change source or whatever...) and delete value after break

    who said: give me a break?
    Last edited by sandy666; 06-18-2017 at 02:41 AM.

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

    Re: If workbook not found then give 0 value

    F9 will cause an error to show, rather than the value

  7. #7
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: If workbook not found then give 0 value

    I just tested, linked cell, it shows value, eg. 88. saved my workbook, deleted external source, hit F9 and 88 is visible now like before, becaue I've ticked option like above.
    If it will be un-ticked, we will see error , probably but I am too lazy to check it again

    btw. office track connected files, if I move one file to another place path in link will change to be correct, (probably) especially if both of files are open when "external" is moved.

    That is why we've values in OPs attachment without external file.
    Last edited by sandy666; 06-18-2017 at 02:53 AM.

+ 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] First check in range c4:c if data found then run the code other give msgbox
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-18-2017, 11:06 AM
  2. [SOLVED] If Nothing is Found Then Give Alert
    By jrnewport1115 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-17-2014, 10:55 AM
  3. Search cell values from range in another workbook and copy found row to a 3rd workbook.
    By SierraKilo78 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-09-2014, 01:09 PM
  4. If cell says Not Found then give me details from another cell
    By Iain Garey in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-13-2014, 08:14 AM
  5. [SOLVED] Code to give message if Filtered value not found in data
    By dinesh_ltjd in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-29-2013, 12:12 PM
  6. [SOLVED] How to find a cell value and when found give a value from other cell range.
    By tegno in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-02-2013, 04:09 PM
  7. give a value based on data found in a column - put need a value from it's row
    By hoolie in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-02-2009, 12:03 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