Return TRUE if value is in a specific column (with more variables)

RonOliver

Board Regular
Joined
Aug 30, 2022
Messages
99
Office Version
  1. 365
Platform
  1. Windows
Hi, guys.

The problem is long to explain. I tried to copy a sheet using XL2BB but it copies nothing, so I'm posting a screenshot.
Screenshot 2022-11-26 093705.png


I have a date in cell B6 (Sept 26th, which is Monday). I need to know if the date comes up in the table on the right (which it conveniently does, under the Strawberry column). However,, since Strawberry is marked as a Monday or Wednesday only item, I need a formula that returns "TRUE" only if the date in B6 is either a Monday or a Wednesday. Now, if I change the date to 09/29/22 (which is Thursday), since the Banana column also contains that date, I need it to return "TRUE" as well.

In short, I need a formula that first checks if my date is either a Monday/Wednesday or a Tuesday/Thursday, and then tries to check if my date is in the corresponding fruit column. If it is, return "TRUE". If it isn't, return "FALSE".

Let me know if I didn't explain my problem well enough. Thanks!
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Forum statistics

Threads
1,224,012
Messages
6,175,931
Members
452,686
Latest member
midhunjoseph

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