=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

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

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,136,314
Messages
5,675,024
Members
419,544
Latest member
MVPDoug

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