VLOKUP used as 'Value_If_True" in If/Or" Formula

kruss77

New Member
Joined
Aug 4, 2009
Messages
8
Can VLOOKUP be used to satisfy one "values_if_True" components of an "If/OR" formula? I'm wondering because I'm trying to use VLOOKUP to work if one or another of two conditions is met. However, the following formula works only if:

CONDITION 1 and CONDITION 2 are met
CONDITION 1 is met and CONDITION 2 is not met

but NOT if

CONDITION 1 is not met but CONDITION 2 is met

=IF(OR(ISTEXT(C46),ISTEXT(B46)),VLOOKUP(B46,$S$6:$W$51,2,FALSE),"")


In other words:

C1 C2 Result
X...X..TRUE
X.......TRUE
.....X..FALSE

But it SHOULD yield a "true" in this last case, but doesn't in this formula.

Clearly, I'm doing something wrong. What am I missing?

Ken
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
A single letter "A", or "B", etc... Eventually, I might use single numbers as well "1", "2", etc...).
 
Upvote 0
There is nothing wrong with the formula but the data set you are providing as input I guess..
What is it that you want to test ?? Are you testing for TEXT or NON-BLANK CELL or something else ??
Please specify....

I assume, "column B" and "column S" has same data and you are trying to fetch value from "column T". Check if both the columns have actually same data...
 
Upvote 0
It would help if you explained what you were trying to do.
With you formula, if C46 was text & B46 was blank,then your Vlookup would trigger looking for a blank value.
 
Upvote 0
Ok, so after looking at this with fresh eyes, I realized my mistake and was able to correct it. It works now.

Thank everyone for looking.
 
Upvote 0
Glad you were able to sort it & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,214,919
Messages
6,122,260
Members
449,075
Latest member
staticfluids

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