#N/A error when copying some formulas but not others

hvalcourt

New Member
Joined
Dec 22, 2010
Messages
18
Hi ,
I have this workbook where I have formulas of the type :
Code:
=SUMIF( DATA!keycurrent; G12& " " &$H12 & " " &$J12& " " &$F12; DATA!rev )
in my column. When i try to copy this sheet, i get #N/A errors where the formula should be.
This is strange since i have another workbook where the following formula gets copied without any problem :

Code:
=iF(  ISBLANK($H6); ""; IF(ISNA( VLOOKUP($H6; Macro_modele_renouv.xls!tablesic; 2; FALSE)); ""; VLOOKUP(  $H6; Macro_modele_renouv.xls!tablesic; 2; FALSE)))

Basically, in both formulas i'm referencing names. Could it be that in the 2nd formula i'm refering to a workbook level named range and in the 1st a worksheet level named range ?
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
in this code,
Code:
=SUMIF( DATA!keycurrent; G12& " " &$H12 & " " &$J12& " " &$F12; DATA!rev )

If i replace DATA!keycurrent by the actual range DATA!$K$2:$K$999 the formula gets copied correctly. But why can't i freely use named ranges ?
It'd be very inconvenient for me to give up on the named ranges.
It seems to me that I've never hard to care about this before.
 
Upvote 0

Forum statistics

Threads
1,214,893
Messages
6,122,121
Members
449,066
Latest member
Andyg666

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