How do I highlight the first date of the following month

I have a Numbers database that has currency amounts in column A, and dates of the transactions in column B. Is there a way to use conditional highlighting so that the first date entered of each (next) month is highlighted?


A B

1 $5 1/15

2 $7 1/23

3 $2 2/3

4 $5 3/8

5 $8 3/9

6 $2 3/20

7 $9 4/2


So in the instance above, B1, B3, B4, and B7 would be highlighted.

Posted on Feb 6, 2018 9:15 PM

Reply
4 replies

Feb 7, 2018 12:25 AM in response to Zombocom1023

Barry, I afraid that yours marks the first day of the month only, not the first day of the month in the list.

# none will be marked with the sample in the original post.


Here is my method with one supplemental column of data by assuming the dates are in ascending order.

# as far as I know no formula can be used for conditional highlighting.

User uploaded file

New column C, labeled as FirstDate hold the first date of the month on the list.

1. Add new column (C) if not exist

2. Set formula for C2 :

IFERROR(IF(EOMONTH(B1,0)=EOMONTH(B2,0),C1,B2),B2)

  • EOMONTH() returns the last day of the month for the given date
  • IFERROR() handles the first record where no valid date in the previous row.

3. Copy 'C2' then paste to C3 and beyond.

4. Select B2. Set conditional high as 'equal to' , [reference C2] (use the blue button in the input field to select C2)

5. Copy-Style 'B2' (opt-cmd-C), then Paste-Style (opt-cmd-V) to B3 and beyond.

Feb 6, 2018 11:20 PM in response to Zombocom1023

Hi Z,


You should be able to do this with conditional highlighting.

User uploaded file

As can be seen in the box below the table, the actual contents of each cell in column C is a Date and Time value (with the time automatically set to midnight at the beginning of the date that was entered).


The conditional highlighting rule, set to depend on text, ignores the contents, and attends to the displayed text. If that text ends with " 1", the rule is applied to add 'red fill' to the cell.


In your case, where the day is the first value in the displayed date, you could also use a Text rule:

text begins with 1/



Regards,

Barry

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How do I highlight the first date of the following month

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.