# =if(or()) with another workbook

#### bloodybrit90

##### Board Regular
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

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
The way you have typed it, it needs to be an array. (crtl+shift+enter)

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!

(crtl+shift+enter) removes the #value but does not return values that should be correct.

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?

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.

Replies
3
Views
100
Replies
0
Views
88
Replies
1
Views
232
Replies
19
Views
852
Replies
8
Views
249

1,214,262
Messages
6,118,550
Members
448,835
Latest member
Profast123

### 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.

### Which adblocker are you using?

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

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