May 29 2024 02:25 PM
I have a workbook that I am trying to update to display the status (red or green) in cell AB1 of the lab in a singular cell based on =Today(). The table is a calendar format but due to some other pivot tables and other data validation features they have some separating columns (an example workbook is attached). The basic function of this is to track the daily events in each category/swim lane. An x marks that that issue happened on that particular day. So I am trying to come up with a function that will search the table for the specific date and if there are any x's in the column below to then have a true/false scenario. I was searching through V/XLookup, MATCH, and IF functions but they all don't quite seem to fit.
Anyone have any advice?
Also to note, secondary issue is that I wasn't able to have the dates as the specific column headers in the tables so I opted above but if there is a solution to that as well, I'd be very grateful. Any formula I try doesn't stick as it needs to be referenced to the year input as this is a rolling template from year to year.
Thank you so much,
Nyssa
May 30 2024 02:10 AM - edited May 30 2024 02:11 AM
Question no. 1: Could you please upload the worksheet without data here or to another file hoster so that I don't have to spend a lot of time recreating the scenario for the solution. Thank you.
Question no. 2: Did I understand correctly? If there is an "x" anywhere in today's column, AB1 should be given the cell colour red, otherwise green? Does the status field also exist for the other months or does only this one apply to January for the whole year?
May 30 2024 04:22 AM
@dscheikey 1) Not sure why this page is saying any .xlsm,. .xlsx or any other file type is not supported but hopefully this host site will work instead: https://uploadnow.io/f/zCH1Shq
2) you are exactly right, if no x is present it should be green. The idea would be to have one status bar for the whole year.
Thank you for your time!
May 30 2024 04:53 AM
May 30 2024 05:07 AM
SolutionMay 30 2024 05:14 AM
May 30 2024 07:00 AM
@dscheikey Follow up question if you have time if I was to put each month on a separate sheet to display that status on the first sheet in L4, how would that array for the Index change in the formula.
May 30 2024 07:52 AM
Please try:
=OR(INDEX(INDIRECT(TEXT(TODAY(),"MMMM")&"!A3:AH77"),0,XMATCH(TODAY(),INDIRECT(TEXT(TODAY(),"MMMM")&"!A3:AH3")))="x")
May 30 2024 08:24 AM
May 30 2024 08:37 AM
What result do you get if you enter the following formula in Excel?
=TEXT(TODAY(),"MMMM")
It could be due to the different regional settings.
It works for me!
Please note that you have still set 2022 as the year in your example document.
May 30 2024 09:15 AM - edited May 30 2024 09:15 AM
You were absolutely right on the year; syntax user error. Thank you so much!!!
May 30 2024 05:07 AM
SolutionFor conditional formatting:
=OR(INDEX(A3:PN77,0,XMATCH(TODAY(),A3:PN3))="x")