Nested if statement with vlookup + conditions

jlugo

Board Regular
Joined
Aug 12, 2011
Messages
146
HELLO Excel Experts!

Goal = Return a value "0" if cell value is blank or "1" if value matches same one on other sheet.

I feel I'm close but can't figure this out. I think I need if statement to set conditions of "1" TRUE or "0" FALSE & vlookup to match values on two different worksheets. I want a value of "1" instead of the value match specified by column number.

Any suggestions on a tentative formula?

Thanks
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Can you give the ranges and sheet names you're working with? Otherwise, modify following to suit your needs:
Code:
=IF(OR(ISERROR(MATCH(A1,Sheet2!A1:A10,0)),ISBLANK(A1)),0,1)
 
Upvote 0
Thank you Jack for your input! Here's what I have and the "0" works. I only need to figure out how to return "1" instead of the actual vlookup match.

=IF(ISERROR(VLOOKUP(Z3:Z308,'[SF BCN 09.04.12.xlsx]00O80000004PWWQ'!$A$2:$C$89128,3,FALSE)),"0",VLOOKUP(Z3:Z308,'[SF BCN 09.04.12.xlsx]00O80000004PWWQ'!$A$2:$C$89128,3,FALSE))</SPAN>
 
Upvote 0
I tried your formula and it works but........... is there a way to get this result without having to set up both unique identifier columns in ascending or descending order?
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,399
Latest member
alchavar

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