Multiple If or And

mtapp2207

New Member
Joined
May 14, 2014
Messages
18
Office Version
  1. 2016
Platform
  1. Windows
Hello, I have sheet one that has all the calendar dates and spaces. Sample Sheet a
WAWA1WA2WA3WA4
1/1/2019
1/2/2019
1/3/2019
1/4/2019

<tbody>
</tbody><colgroup><col><col span="5"></colgroup>

Sheet 2 has the locations with the dates they are booked.
WA 1/1/19
WB1 1/1/19
NA1 1/1/19
NA2 1/1/19
SA1 1/1/19
SA2 1/1/19
SB 1/1/19
WA 1/1/19
WB1 1/1/19

<tbody>
</tbody><colgroup><col span="2"></colgroup>

I am trying to create a lookup that looks at the sheet 1 date and somehow bring in the results below

WA WA1WA2WA3WA4
1/1/2019 BookedBookedBlankBlankBlank

<tbody>
</tbody><colgroup><col><col span="5"></colgroup>


Hope you can understand. Any help is greatly appreciated.
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Try this, assuming the tables you posted are at the very top/left of the sheets..

=IF(COUNTIFS(Sheet2!$B$1:$B$9,$A2,Sheet2!$A$1:$A$9,B$1),"Booked","")
 
Upvote 0

Forum statistics

Threads
1,215,234
Messages
6,123,773
Members
449,123
Latest member
StorageQueen24

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