Vlookup to match Value over two Columns

JoeRooney

Board Regular
Hi,

I need to look up a value across two columns

I.e. I need the vlookup to look for value in column A acrosscolumns B & C and if the value in column A is found in either column B or Cor found in both columns return that value.

 A B C 1 5 1 2 2 2
<tbody> </tbody>

I have been working with the below formula but I am justreceiving a #ref / #N/A error.

=VLOOKUP(O:O,MOV!AI:AJ,{20,21},FALSE)

Any help is greatly appreciated.

Thanks,

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
try

Book1
ABCDE
11861
22105
33533
4471
55715
66636
77567
88738
9988
10101810
Sheet2
Cell Formulas
RangeFormula
E1=IFERROR(IFERROR(VLOOKUP(A1,\$B\$1:\$B\$10,1,0),VLOOKUP(A1,\$C\$1:\$C\$10,1,0)),"")

Or maybe

=IF(COUNTIFS(\$B\$1:\$C\$10,A1),A1,"")

Thanks guys , both options work perfect : )

You're welcome.

Replies
5
Views
283
Replies
9
Views
260
Replies
1
Views
858
Replies
21
Views
1K
Replies
6
Views
616

1,196,189
Messages
6,013,938
Members
441,796
Latest member
kmag

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.

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