Excel/conditional formatting/array formulas
I have used the following formula to conditionally format a single cell in a worksheet: =VLOOKUP(I2,BE8:BF60,2,FALSE)="Y"
I wish to apply this formula across an array of cells, "B12:AY61". Is this possible? I have tried =vlookup(b12:ay61,be8:bf60,2,false)="Y" but with no success.
Thanks in advance.
You need to use the proper absolute and relative references.
You don't want be8:bf60 to change, so it should be $be$8:$bf$60
I have no idea what cells you are conditionally formatting, but if it is B12:AY61, then you would select B12:AY61 with B12 as the activecell and enter your conditional formatting with the formula
just like when you copy cells and paste them, the relative reference B12 will change. In C12, the formula will appear as
and in B13 it will appear as
if you are formatting some other cells, but they are the same shape as B12:AY61, then the same approach would be used. You would make the top left cell as the activecell with all the cells selected and enter the formula relative to the top left cell (the activecell).
so that top left cell would be formatted based on the lookup of the value in B12 and so forth.
This topic answers questions related to Microsoft Excel spreadsheet (or workbook) stand-alone or Mircrosoft Office Excel including Excel 2003, Excel 2007, Office 2000, and Office XP. You can get Excel help on Excel formulas(or functions), Excell macros, charting in Excel, advanced features, and the general use of Excel. This does not provide a general Excel tutorial nor the basics of using a spreadsheet. It provides specific answers to using Microsoft Excel only. If you do not see your Excel question answered in this area then please ask an Excel question here