Vlookup with IF, AND, and ISBLANK statement

GuitaristJLN

New Member
Joined
Dec 10, 2021
Messages
1
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi guys I was wondering if there was a way to do a Vlookup with an IF, AND, perhaps even an ISBLANK statement and what that formula would look like for the following scenario.

I am trying to create a worksheet that will allow me to type in a restaurant ID and it tell me if It is closed on Saturdays by returning YES or NO. The raw data has thousands of entries so I wanted to create a bit of a dashboard where it returns YES or NO if two fields (Saturday inside-dinning & Saturday Drive through) are BLANK. If it has data in either one of the Saturday Inside-Dinning hours or Saturday Driv through hour fields then it should return YES.

So as a visual I want to type in the restaurant id and it display like the following:

Restaurant IDDoes the location have Saturday Hours?
112YES
113NO

The Raw data would look like this (Table/worksheet name is Restaurant Hours) :

Restaurant IDM-F HoursSaturday Inside-dinning hoursSaturday Drive through hours
1128-511-4
1138-5

I am learning more advanced excel as part of my new job role but was asked to help in creating the formula for the above scenario and don't even know where to start so I would really appreciate any help from you guys.
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Please try this, where A2 is the restaurant ID to look up:

Excel Formula:
=IF(AND(VLOOKUP(A2,'Restaurant Hours'!A:D,3,FALSE)="",VLOOKUP(A2,'Restaurant Hours'!A:D,4,FALSE)=""),"NO","YES")
 
Upvote 0
Hi & welcome to MrExcel.
How about, for xl365
+Fluff 1.xlsm
ABCDEFG
1Restaurant IDM-F HoursSaturday Inside-dinning hoursSaturday Drive through hoursRestaurant IDDoes the location have Saturday Hours?
21128-511-4112Yes
31138-6113No
Lists
Cell Formulas
RangeFormula
G2:G3G2=IF(MAX(--ISTEXT(FILTER($C$2:$D$3,$A$2:$A$3=F2,"")))>0,"Yes","No")
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,170
Members
453,021
Latest member
Justyna P

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