Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-01-2016, 01:42 PM
patidallas22 patidallas22 is offline Problems with linking to other spreadsheets Windows XP Problems with linking to other spreadsheets Office 2007
Novice
Problems with linking to other spreadsheets
 
Join Date: Mar 2012
Posts: 12
patidallas22 is on a distinguished road
Default Problems with linking to other spreadsheets

I am having issues trying to link to other password encrypted spreadsheets. My formula is below but unless I have the other two spreadsheets open I get "#VALUE!" in the cell instead of the actual value.



When I first open the "master" spreadsheet, I enter that password and then it asks if I want to update links (which I do), so I click update. Then it wants the password for both the other two spreadsheets (which I enter). It does not open the other two spreadsheets, but I do expect it to put in the value instead of showing #VALUE!. Below is my formula. I even tried to go into Excel Options and choosing everything that protects you from opening bad spreadsheets and I still don't get the updated value. The cell value still shows as percentage, so I don't think that is the problem. Any assistance would be greatly appreciated.

=(SUMIF([Testcase_No_2PW_Protect.xlsm]Sheet1!$A:$A,$B12,[Testcase_No_2PW_Protect.xlsm]Sheet1!$E:$E))+(SUMIF([Testcase_No_3PW_Protect.xlsm]Sheet1!$A:$A,$B12,[Testcase_No_3PW_Protect.xlsm]Sheet1!$E:$E))
Reply With Quote
  #2  
Old 02-01-2016, 05:06 PM
macropod's Avatar
macropod macropod is offline Problems with linking to other spreadsheets Windows 7 64bit Problems with linking to other spreadsheets Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

This has nothing to do with the use of passwords, but with the fact that SUMIF references to external workbooks only work when those workbooks are open. You would get the same outcome without the passwords.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 02-02-2016, 04:48 AM
xor xor is offline Problems with linking to other spreadsheets Windows 10 Problems with linking to other spreadsheets Office 2013
Expert
 
Join Date: Oct 2015
Posts: 1,097
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default

Use SUMPRODUCT instead of SUMIF.

And by the way - never use full column references in array- or array like formulas (such as SUMPRODCT). Some may find it easy and elegant, but it is really a bad habit.
Reply With Quote
  #4  
Old 02-03-2016, 02:06 PM
patidallas22 patidallas22 is offline Problems with linking to other spreadsheets Windows XP Problems with linking to other spreadsheets Office 2007
Novice
Problems with linking to other spreadsheets
 
Join Date: Mar 2012
Posts: 12
patidallas22 is on a distinguished road
Default Thanks

Thanks, I didn't know I couldn't use sumif outside of the workbook. I'll go with your advice.
Reply With Quote
  #5  
Old 02-03-2016, 10:37 PM
xor xor is offline Problems with linking to other spreadsheets Windows 10 Problems with linking to other spreadsheets Office 2013
Expert
 
Join Date: Oct 2015
Posts: 1,097
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default

Please remember that SUMPRODUCT has different syntax from SUMIF.
I think the formula should be something like:

SUMPRODUCT(([Testcase_No_2PW_Protect.xlsm]Sheet1!$A:$A =$B12)*([Testcase_No_2PW_Protect.xlsm]Sheet1!$E:$E))+SUMPRODUCT(([Testcase_No_3PW_Protect.xlsm]Sheet1!$A:$A=$B12)*([Testcase_No_3PW_Protect.xlsm]Sheet1!$E:$E))

You should use only the required range in the formulas (for example A5:A1000, E5:E1000) instead of full column references (A:A, E:E).
Reply With Quote
Reply

Tags
#value!, links, updates



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with linking to other spreadsheets combining spreadsheets Jagerfred Excel 1 01-12-2016 12:42 PM
Problems with linking to other spreadsheets Merging Two Spreadsheets buechler66 Excel Programming 1 03-25-2015 11:57 AM
Problems with linking to other spreadsheets Joining two (or more) spreadsheets without use of a 'ghost' Richard121 Excel 2 02-16-2015 01:38 PM
Problems with linking to other spreadsheets Can't open spreadsheets kaygeea Excel 7 10-05-2011 08:00 AM
Problems with linking to other spreadsheets Merging two spreadsheets BrazzellMarketing Excel 5 04-26-2011 01:51 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:13 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft