Share via

Conditional Formula that references another column's text while keeping between two dates.

Anonymous
2021-09-24T17:29:10+00:00

Hello!

Right now I'm working on a conditional formula that will hopefully work with a filter system.

I am currently using the Conditional format Between =TODAY() - =TODAY()+30 to highlight cells that are coming up in 30 days. and I just changed the color based on what cell I wanted to be different.

However because (I assume) they are all the same formula (or because they're cell specific?) when I apply a filter to sort by date/name/etc. the conditional formula doesn't move with the filtering. It still highlights with a color when a date is coming up in 30 days from today. but not the correct color.

What I want What happens when I sort
----------

But I also want it to reference a different cell with specific text, In the above example I want everything in 5's Highlight Blue.

So I've been trying to find or come up with a formula that references Column A while also keeping in mind dates between today and 30 days from today. But I haven't had any luck.

Example: If dates are between Today and 30 days from today, and the text in column A is 5 Highlight Blue

Could someone help me with this, or offer a different solution?

Thank you all so much in advance.

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

Answer accepted by question author

Anonymous
2021-09-24T18:40:34+00:00

Hi,

Here is one possible solution:

=AND(B2>=TODAY(),B2<=TODAY()+30,A2=5)

Use this as your conditional formatting formula.

Shane

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Anonymous
    2021-09-24T22:57:55+00:00

    Glad we could help,

    Shane

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2021-09-24T21:07:46+00:00

    Hello Shane!

    So, your formula didn't work quite right, but it was on the right track! I only needed to make a minor adjustment to get it to do what I wanted.

    =IF(AND(B1>=TODAY(),B1<=TODAY()+30),A1="5")

    So thank you SO MUCH!

    Was this answer helpful?

    0 comments No comments