There's 2 formulas I'm trying to figure out. The first one I think I got right which is in column H (Year Dif). The next one I'm having trouble with. I need to either use a conditional formatting formula that will look up a type value and highlight a cell based on whether this is greater or less than a date difference value. So for Row 2 is the value in H2 greater or less than L4 which is the value for the type in C2. In this case the value is greater though for row 4 H4 is less than the value of 100 (L2) for the type in C4.
Whether I need just 1 formula with conditional formatting or just 1 formula that does both the Year Dif and returns a true/false value I don't know. I hope my spreadsheet clearly shows what I'm trying to achieve. Any help would be appreciated.
Joyce
Whether I need just 1 formula with conditional formatting or just 1 formula that does both the Year Dif and returns a true/false value I don't know. I hope my spreadsheet clearly shows what I'm trying to achieve. Any help would be appreciated.
Action item 17.xlsx | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | |||
1 | SURNAME | CHRISTIAN NAME | Type | DATE | STATE | COUNTRY | Ref | Year dif | Type value | |||||
2 | D | 7/02/1957 | QLD | AUS | 5372 | 65 | B | 100 | ||||||
3 | D | 29/04/1967 | QLD | AUS | 5373 | 55 | M | 75 | ||||||
4 | B | 19/04/1949 | QLD | AUS | 5374 | 73 | D | 40 | ||||||
5 | B | 16/09/1973 | QLD | AUS | 5375 | 48 | ||||||||
6 | M | 19/01/1861 | ABD | SCT | 5376 | #VALUE! | ||||||||
7 | M | 19/01/1861 | ABD | SCT | 5376 | #VALUE! | ||||||||
8 | D | 8/1/1861 | ABD | SCT | 5376 | #VALUE! | ||||||||
9 | D | 21/05/1980 | ABD | SCT | 5376 | 42 | ||||||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
H2:H9 | H2 | =DATEDIF(D2,TODAY(),"y") |
Joyce