+ Reply to Thread
Results 1 to 6 of 6

#Value Error fix when using multiple files

Hybrid View

  1. #1
    Registered User
    Join Date
    11-05-2014
    Location
    pasadena, ca
    MS-Off Ver
    2013
    Posts
    5

    #Value Error fix when using multiple files

    I have been searching everywhere and I cant seem to figure out how to solve this issue, any help would be much appreciated. The issue is that at my work we build our financial model using multiple excel files and link from one to the other. The issue I have is that when using sumif/sumifs I get the #value error unless all the files that are being linked are open (as you can imagine this can be kinda annoying). I am trying to return a value based on a couple conditions, both month and year. Below is a basic example of the issue, the left table is one file and the right is a different independent file. If I want to enter a formula in file #2 that would return the sum of payments from the table #1 based on the month (row 4) and year (row 3), I would normally use sumifs. But would like to get away from this to avoid the #value error. Also, attached an excel file as an example of what i am trying to do. Thanks in advance!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: #Value Error fix when using multiple files

    Hi,

    an attempt.

    Using the data layout you shared, maybe sumproduct could help.


    Formula: copy to clipboard
    =SUMPRODUCT($B$5:$F$6*($B$2:$F$2=I2))



    Regards
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  3. #3
    Registered User
    Join Date
    11-05-2014
    Location
    pasadena, ca
    MS-Off Ver
    2013
    Posts
    5

    Re: #Value Error fix when using multiple files

    Can you use sumproduct using two conditions (month and year - rows 3 and 4)?

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: #Value Error fix when using multiple files

    Let us know your Sumif formula so that we can give you the exact Sumproduct formula


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  5. #5
    Registered User
    Join Date
    11-05-2014
    Location
    pasadena, ca
    MS-Off Ver
    2013
    Posts
    5

    Re: #Value Error fix when using multiple files

    The formula I use now is (=+SUMIFS($B$5:$F$5,$B$3:$F$3,I3,$B$4:$F$4,I4)+SUMIFS($B$6:$F$6,$B$3:$F$3,I3,$B$4:$F$4,I4). Looking up by year and month. If linking to another file it does not work and returns the #value error. Attached below is the example.
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: #Value Error fix when using multiple files

    Hi,

    sumproduct is quite flexible.

    In I5 and to the right:


    Formula: copy to clipboard
    =SUMPRODUCT($B$5:$F$6*($B$3:$F$3=I3)*($B$4:$F$4=I4))


    Regards
    Last edited by canapone; 11-06-2014 at 01:55 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. Compile Error - Importing multiple CSV files via GetOpenFilename
    By lgjmac in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-07-2013, 08:48 AM
  2. Replies: 9
    Last Post: 02-12-2013, 04:15 PM
  3. Importing multiple large .csv files for analysis (Run Time Error - 7)
    By xxtoddyxx in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-11-2012, 11:36 AM
  4. refer multiple external csv files returns #VALUE! error in vlookup function
    By dryice1993 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-28-2012, 06:21 AM
  5. Correcting format error in multiple files
    By Criterium in forum Word Programming / VBA / Macros
    Replies: 0
    Last Post: 02-08-2010, 06:16 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