0

I had a spreadsheet in google sheets in my last company which highlighted all my rows based on my qualifying conditions. I can't remember what conditional formatting I used.

I have tried the =IFAND and =AND functions along with others.

This is what I am trying to do:

If column B says DTC and the dates are between two ranges I want it highlighted. Then I will have multiple rules that vary in dates and words.

This is the last formula I tried.

=AND($B2="DTC",$E2>="10/1/2017",$E2<="10/6/2018")
4
  • If this is google-sheets then why the Excel tag? Commented Jan 4, 2018 at 16:32
  • I put google sheets but it said error and recommended excel so I changed it. Commented Jan 4, 2018 at 16:33
  • 1
    Scott Craner any ideas of the formula? Commented Jan 4, 2018 at 18:03
  • no, sorry, my expertise is in Excel and that formula should work in Excel. The only suggestion I would make is to make sure the dates in Column E are actual dates and not text that looks like dates. Commented Jan 4, 2018 at 18:10

1 Answer 1

0

If you enconclose dates between quotations marks they will be treated as strings, not as dates. Used DATE(year,month,day) instead.

Sign up to request clarification or add additional context in comments.

11 Comments

It looked like it was working until I added the second set of dates (end date). =AND($B2="DTC",E$2>=DATE(2017,10,1),E$2<=DATE(2018,10,1))
@TiffanyPoche: Please create and share a demo spreadsheet including sample input and the expected result (a column with the resulting format applied manually)
@TiffanyPoche : Did you applied the conditional formatting to the demo spreadsheet? I would like to see how do you applied it.
@TiffanyPoche Your data start on row 1 but your formula looks on the row below. Replace $B2 by $B1 and so on.
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.