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
[TABLE="width: 395"]
<tbody>[TR]
[TD][/TD]
[TD]WA[/TD]
[TD]WA1[/TD]
[TD]WA2[/TD]
[TD]WA3[/TD]
[TD]WA4[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]1/1/2019[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]1/2/2019[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]1/3/2019[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]1/4/2019[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody><colgroup><col><col span="5"></colgroup>[/TABLE]

Sheet 2 has the locations with the dates they are booked.
[TABLE="width: 128"]
<tbody>[TR]
[TD]WA[/TD]
[TD="align: right"] 1/1/19[/TD]
[/TR]
[TR]
[TD]WB1[/TD]
[TD="align: right"] 1/1/19[/TD]
[/TR]
[TR]
[TD]NA1[/TD]
[TD="align: right"] 1/1/19[/TD]
[/TR]
[TR]
[TD]NA2[/TD]
[TD="align: right"] 1/1/19[/TD]
[/TR]
[TR]
[TD]SA1[/TD]
[TD="align: right"] 1/1/19[/TD]
[/TR]
[TR]
[TD]SA2[/TD]
[TD="align: right"] 1/1/19[/TD]
[/TR]
[TR]
[TD]SB[/TD]
[TD="align: right"] 1/1/19[/TD]
[/TR]
[TR]
[TD]WA[/TD]
[TD="align: right"] 1/1/19[/TD]
[/TR]
[TR]
[TD]WB1[/TD]
[TD="align: right"] 1/1/19[/TD]
[/TR]
</tbody><colgroup><col span="2"></colgroup>[/TABLE]

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

[TABLE="width: 395"]
<tbody>[TR]
[TD][/TD]
[TD] WA[/TD]
[TD] WA1[/TD]
[TD]WA2[/TD]
[TD]WA3[/TD]
[TD]WA4[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]1/1/2019[/TD]
[TD] Booked[/TD]
[TD]Booked[/TD]
[TD]Blank[/TD]
[TD]Blank[/TD]
[TD]Blank[/TD]
[/TR]
</tbody><colgroup><col><col span="5"></colgroup>[/TABLE]


Hope you can understand. Any help is greatly appreciated.
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
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,224,823
Messages
6,181,179
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