Formula string more than 255 characters not work when the source file is closed

Osama Fawzy

New Member
Joined
Aug 24, 2022
Messages
39
Office Version
  1. 2019
  2. 2016
  3. 2013
Platform
  1. Windows
  2. Mobile
Hi, I have the some formulas (such as the below), them linked in between 3 files and doesn't work and return #VALUE! when the source file closed and return the right value when the source file is opening

=IF(NOT(B2="SU-NMG"),SUMIFS('Z:\Planning & Records Depratments\Aircrafts Technical Data\1-Aircraft''s Status\4-SU-NML\[SU-NML_2022.xlsb]AC TLB'!$C$7:$C$1199,'Z:\Planning & Records Depratments\Aircrafts Technical Data\1-Aircraft''s Status\4-SU-NML\[SU-NML_2022.xlsb]AC TLB'!$B$7:$B$1199,">="&J2,'Z:\Planning & Records Depratments\Aircrafts Technical Data\1-Aircraft''s Status\4-SU-NML\[SU-NML_2022.xlsb]AC TLB'!$B$7:$B$1199,"<="&L2),SUMIFS('[SU-NMG_2022.xlsb]AC TLB'!$C$7:$C$1199,'[SU-NMG_2022.xlsb]AC TLB'!$B$7:$B$1199,">="&J2,'[SU-NMG_2022.xlsb]AC TLB'!$B$7:$B$1199,"<="&L2))
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Sumifs does not work with closed workbooks, you will need to use sumproduct instead.
 
Upvote 0
Thank u, but i tried to use sumproduct , but i can't, please if u know tell me how
 
Upvote 0
Try
Excel Formula:
=IF(NOT(B2="SU-NMG"),SUMPRODUCT('Z:\Planning & Records Depratments\Aircrafts Technical Data\1-Aircraft''s Status\4-SU-NML\[SU-NML_2022.xlsb]AC TLB'!$C$7:$C$1199,('Z:\Planning & Records Depratments\Aircrafts Technical Data\1-Aircraft''s Status\4-SU-NML\[SU-NML_2022.xlsb]AC TLB'!$B$7:$B$1199>=J2)*('Z:\Planning & Records Depratments\Aircrafts Technical Data\1-Aircraft''s Status\4-SU-NML\[SU-NML_2022.xlsb]AC TLB'!$B$7:$B$1199<=L2)),SUMPRODUCT('[SU-NMG_2022.xlsb]AC TLB'!$C$7:$C$1199,('[SU-NMG_2022.xlsb]AC TLB'!$B$7:$B$1199>=J2)*('[SU-NMG_2022.xlsb]AC TLB'!$B$7:$B$1199<=L2)))
 
Upvote 0
Solution

Forum statistics

Threads
1,216,051
Messages
6,128,505
Members
449,455
Latest member
jesski

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top