Reputation: 11
I can't write this correctly. I'd like to highlight the cells in the H
column that are a number (ISNUMBER)
while matching them with the greatest date (LARGE)
in the column A
.
I tried:
=AND(ISNUMBER($H4),$A4=LARGE($A$4:$A$15,1))
H4
contains 6.93
A4
contains 1/1/2020
- correctly formatted as date
Conditional formula: =$A4=LARGE($A$4:$A$15,1)
works fine, standalone. The value 12/1/2020
highlights.
Conditional formula: =ISNUMBER($H4)
highlights the correct values, standalone.
I really need this formula to highlight H9
as it reflects the LARGE
date 06/01 and the ISNUMBER
cell H9
that has the value 6.01
and the largest date with a number in column H
.
I don't know where I'm going wrong. My syntax is bad. I'm only an Admin. I'd appreciate any support I'm given. Thank you.
Upvotes: 1
Views: 309
Reputation: 356
Here is the conditional formatting.
=AND(H4>0,ISNUMBER(H4),N(A4)=MAX(IF($H$4:$H$15=H4,$A$4:$A$15)))
Here we use =And(Criteria1,Criteria2,Criteria3)
Criteria1: we use H4>0 to filter the blank cell. you can also use H4<>0
Criteria2: we use IsNumber to filter the "-" string.
Criteria3: we use MAX(If()) to find the duplicate number with the latest date.
Upvotes: 0
Reputation: 3034
Formula to find last used (nonblank) row number in H1:H1000 is
=LOOKUP(2,1/($H$1:$H$1000<>""),ROW($H$1:$H$1000))
It seems you want to highlight the last "Number" entered in column H.
Enter the following formula in conditional formatting and apply it to $H$1:$H$1000 (for more rows, change the number of rows in formula also)
=ROW()=LOOKUP(2,1/ISNUMBER($H$1:$H$1000),ROW($H$1:$H$1000))
If you want to highlight "any" last value (last nonblank cell) in column H then
=ROW()=LOOKUP(2,1/($H$1:$H$1000<>""),ROW($H$1:$H$1000))
Upvotes: 0