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

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
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,223,894
Messages
6,175,252
Members
452,623
Latest member
Techenthusiast

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