Forum Discussion
How to highlight the cells using a formula with conditional formatting or else
- Sep 04, 2022
If you get the formula displayed like this, then your Excel version does not yet support SCAN(). Excel for the web already does, so it also works on the i-Phone.
=SCAN(,INDIRECT("A2:A"&LOOKUP(2,1/(A:A<>""),ROW(A:A))),LAMBDA(a,b,IF(OR(b="",b="Subtotal"),a,b)))I have now modified it so that it should also work on older versions of Excel. If you have more than 1000 entries, you have to extend the formulas in the sheet as well as in the conditional formatting.
dscheikey
Hi,
When I downloaded the file on my iPhone it opens up and I see the formula but when I downloaded the file on my laptop it spills an error in the formula (the error is inside the screenshot attached). I looked up the error and it gives me that specific office version does not support all functions. I am with Office 365 Enterprise (also screenshot attached). I believe that it is working but cannot check it. Can you paste the formula from D2 here so I can try and copy paste it in the excel on my laptop.
Thank you very much!
If you get the formula displayed like this, then your Excel version does not yet support SCAN(). Excel for the web already does, so it also works on the i-Phone.
=SCAN(,INDIRECT("A2:A"&LOOKUP(2,1/(A:A<>""),ROW(A:A))),LAMBDA(a,b,IF(OR(b="",b="Subtotal"),a,b)))I have now modified it so that it should also work on older versions of Excel. If you have more than 1000 entries, you have to extend the formulas in the sheet as well as in the conditional formatting.