Conditional formatting/formula help

I have a couple questions about what conditional format or formula I should use In a logbook.


Column A has "Night Landings", column B has "Night Time"


How can I have a cell in Column A be highlighted in red if a value is entered into A but nothing is entered into the corresponding cell in column B?


OK next question.


I have a column that is the date which every flight then is referenced from

Colum A - Date, B - Duration, C - Departure, D - Destination etc.


I want to be able to sort the entries by date: say last year or last 6 months, and then see the totals of each of the columns.

Put in date on a second page made for the totals, 01-01-2016 and then each colum will have total for last 6 months in one row and 12 months in next.


This should just be a formula I think.


anyone help?

MacBook Pro, OS X Yosemite (10.10.5)

Posted on Jan 5, 2016 11:26 AM

Reply
7 replies

Jan 5, 2016 1:48 PM in response to avi8tor4life

On the second question, are you looking for something like this:


User uploaded file


The formula in B2 would be:


=SUMIFS(Data::$B,Data::$A,">"&EDATE($A$1,−6),Data::$A,"<="&$A$1)


The formula in B3 would be:


=SUMIFS(Data::$B,Data::$A,">"&EDATE($A$1,−12),Data::$A,"<="&$A$1)


The -6 AND THE -12 in the EDATE() function tell it to go back that many months from the date it finds in A1 of the summary table.


This assumes you have a true date-time value in A1 and in column A of the Data table.


SG

Jan 5, 2016 4:37 PM in response to avi8tor4life

Glad it helped. As for question 1, the highlighting, you could have cells in column B highlight themselves if they are blank, but I can find an easy way for the cells in column A to highlight depending on the value in B. If it were really important to highlight in A you could add an extra column C (or whatever) with a formula that sets C = A if there is nothing in B, something like this: =IF(B="",A,""). Then select the cells in A and set a Conditional Highlighting rule like this:


User uploaded file


(You enter that C1 by first clicking the arrow-pointing-at-a-box icon and then clicking cell C1.)


User uploaded file


Then you hide column C.


SG

Jan 5, 2016 6:45 PM in response to avi8tor4life

"I have a couple questions about what conditional format or formula I should use In a logbook.


Column A has "Night Landings", column B has "Night Time"


How can I have a cell in Column A be highlighted in red if a value is entered into A but nothing is entered into the corresponding cell in column B?"


What is the actual data in, say, A3 and B3, when data has been entered in both? Are both empty until data has been entered?


The formatting could be applied to a third cell, located either in column C, or in a separate table placed behind the main table to align with column B.


Here are examples showing both methods.

User uploaded file

In this example, Column C is a new column inserted in the table to flag rows where one of the cells in columns A or B is filled and the corresponding cell in the other column is still empty. Text colour in the column is set to a light green for the example, but would be set to match the white background of the cell in practice. The conditional format rule fills the cell with red and changes the text colour to the matching shade of red when the cell contains FALSE.


User uploaded file

The second method uses two tables. The image on the left shows BOTH tables, Main and Flag. The image on the right is a copy of Flag.

Main, on the left, contains only the data shown in dark text. The cell fill for column B is set to 'none', allowing column B of Flag, placed behind Main, to be seen through the transparent cells of Main.


The formula in Flag. column B is the same as the one in Column C of the single table above. Because it is referencing cells on a separate table, the table name (Main) is required as part of the address of each cell or range of cells being referenced.


As in the example above, the text colour in Flag::B would be set to match the white background of these cells, and the conditional format rule makes the same changes as in the example above.


Formulas:

Ex.1 C2: =ISBLANK(A)=ISBLANK(B)


Ex. 2

Flag::B2: =ISBLANK(Main :: A)=ISBLANK(Main :: B)


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.

Conditional formatting/formula help

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