=if(or()) with another workbook

bloodybrit90

Board Regular
Joined
Jul 18, 2011
Messages
111
With the following formula I keep receiving #Value.

=IF(OR('[NEF.xls]NEFAR MASTER LIST'!$C$90:$C$96='Sheet2'!D2),'Sheet2'!E2,"")

I would like it to return the value from E2 if D2 value is equal to any of the numbers between C90 and C96, if not do nothing. Any ideas why this is not working?
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

pplstuff

Well-known Member
Joined
Mar 9, 2012
Messages
951
The way you have typed it, it needs to be an array. (crtl+shift+enter)
 

lmvk99

Board Regular
Joined
Dec 15, 2011
Messages
68
I think the prob is an IF statement doesn't loop through an array. Try this instead:

=IF(IFERROR(MATCH(Sheet2!D2,'[NEF.xls]NEFAR MASTER LIST'!$C$90:$C$96,0),"")>0,Sheet2!E2,"")

Good Luck!
 

bloodybrit90

Board Regular
Joined
Jul 18, 2011
Messages
111
(crtl+shift+enter) removes the #value but does not return values that should be correct.
 

bloodybrit90

Board Regular
Joined
Jul 18, 2011
Messages
111
PPlstuff, With the formula you provided I receive an error message stating that "You've entered too many arguments for this function". Any ideas why?
 

T. Valko

Well-known Member
Joined
May 9, 2009
Messages
16,623
With the following formula I keep receiving #Value.

=IF(OR('[NEF.xls]NEFAR MASTER LIST'!$C$90:$C$96='Sheet2'!D2),'Sheet2'!E2,"")

I would like it to return the value from E2 if D2 value is equal to any of the numbers between C90 and C96, if not do nothing. Any ideas why this is not working?

PPlstuff, With the formula you provided I receive an error message stating that "You've entered too many arguments for this function". Any ideas why?
When entered as an array formula** the above formula works OK for me.

** array formulas need to be entered using the key
combination of CTRL,SHIFT,ENTER (not just ENTER).
Hold down both the CTRL key and the SHIFT key
then hit ENTER.
 

Forum statistics

Threads
1,171,584
Messages
5,876,307
Members
433,193
Latest member
BruxoTrader

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
Top