+ Reply to Thread
Results 1 to 5 of 5

Formula giving a #value error if i closed referenced workbook

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

    Formula giving a #value error if i closed referenced workbook

    hi,
    i am using this formula to get value from another workbook
    Please Login or Register  to view this content.
    this is working properly if workbook is open,
    if i close 3.9.19.xlsb as referenced in formula then this formula giving an error #value

    hope some one will help
    thanx
    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
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Formula giving a #value error if i closed referenced workbook

    COUNTIFS will not work with a closed workbook. You have to use SUMPRODUCT instead. Since I can't see what you are doing, I can't really help any further. Can you mock up two sheets to show me?
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

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

    Re: Formula giving a #value error if i closed referenced workbook

    ok, thanks for the replya Mod.
    Please Login or Register  to view this content.
    i have two workbook at my desktop first one's name is 3.9.19 and second one'e name is 4.9.19

    i want to count the value according to three criteria, in workbook name 3.9.19

    Untitled.jpg
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Formula giving a #value error if i closed referenced workbook

    Without testing

    =sumproduct(('[3.9.19.xlsx]OL BC'!$B$10:$B$1000=G6)*('[3.9.19.xlsx]OL BC'!$H$10:$H$1000>=O6)*('[3.9.19.xlsx]OL BC'!$H$10:$H$1000<149))

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

    Re: Formula giving a #value error if i closed referenced workbook

    Quote Originally Posted by davsth View Post
    Without testing

    =sumproduct(('[3.9.19.xlsx]OL BC'!$B$10:$B$1000=G6)*('[3.9.19.xlsx]OL BC'!$H$10:$H$1000>=O6)*('[3.9.19.xlsx]OL BC'!$H$10:$H$1000<149))
    Super
    its working properly

    thanks #davsth

+ 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] Vlookup to external workbook giving runtime or syntax error.
    By damngroundhog in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-24-2019, 09:55 PM
  2. =COUNTIF with a referenced closed workbook
    By benjii19 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-09-2016, 08:44 AM
  3. Copy from closed workbook - error message
    By Brontosaurus in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-20-2010, 11:27 AM
  4. Replies: 2
    Last Post: 10-13-2009, 12:23 PM
  5. Run-time error 438 when trying to update a closed workbook
    By paraxis in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-26-2008, 06:07 AM
  6. Pull Range From Closed Workbook Into Another VBA error
    By cyrus417 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-18-2007, 06:57 PM
  7. [SOLVED] Value error on closed workbook links
    By Stuart in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-11-2006, 02:00 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