Conditional Formatting with XLOOKUP

Anonymous
2024-09-28T17:31:11+00:00

Monday January 29 2024

Tuesday February 27 2024

Tuesday March 26 2024

Friday April 26 2024

Wednesday May 29 2024

Wednesday June 26 2024

Saturday July 27 2024

Wednesday August 28 2024

Wednesday September 25 2024

Tuesday October 29 2024

Wednesday November 27 2024

Friday December 27 2024

Monday January 29 2024 =A4

This formula works. However, I would like to tweak the formula a bit to go to the next month following last pay date. So I tried replacing the formula MONTH(A3)=MONTH(TODAY()) with: =XLOOKUP(TODAY(List!A4:A15,List!A4:A15,"",1) and it didn’t work. Can you help me?

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes
Answer accepted by question author
  1. Anonymous
    2024-09-29T23:59:41+00:00

    OK, I got what you meant now.

    Here is the formula solution

    =XLOOKUP(TODAY(),$A$4:$A$15,$A$4:$A$15,,1)=$A4

    I hope this helps you

    Regards

    Jeovany

    1 person found this answer helpful.
    0 comments No comments

4 additional answers

Sort by: Most helpful
  1. Anonymous
    2024-09-28T18:02:54+00:00

    I meant A4 vice A3 in my initial formula. MONTH(A4)=MONTH(TODAY())

    0 comments No comments
  2. Anonymous
    2024-09-29T10:30:40+00:00

    Hi there

    Re, "... to go to the next month following last pay date"

    Please try the formula =MONTH(A4)=MONTH(TODAY())+1

    I hope this helps you and gives a solution to your problem

    Regards

    Jeovany

    0 comments No comments
  3. Anonymous
    2024-09-29T19:21:07+00:00

    =MONTH(A4)=MONTH(TODAY())+1 didn't work. A4:A15 are the paid dates above. In C2 I have the formula: =XLOOKUP(TODAY(), List! A4:A15, List! A4:A15, "", 1) Which is the date that I am looking for. (Which is Tuesday 29 October 2024). Currently I am using the formula: =MONTH(A4)=MONTH(TODAY()) which works up until Wednesday September 25 2024, but then keeps being highlighted until the 01 October 2024. After Wednesday September 25 2024 I would like Tuesday 29 October 2024 Highlighted.

    0 comments No comments
  4. Anonymous
    2024-09-30T02:33:10+00:00

    Thank-you it worked. but can it also work in two columns with January to June in column A and July to December in column B in order to reduce the amount of space in a single column on a page?

    0 comments No comments