breakdance101
New Member
- Joined
- Jan 12, 2024
- Messages
- 2
- Office Version
- 365
- Platform
- Windows
I Have a sheet (not mine) that applies conditional Formatting based on if the following formula is true:
=AND(Z$28>=$EQ271,Z$28<=$ER271) - Each Cell refence refers to a date and colour the cells (the CF is applied too) Green (basically highlighting the dates items are moving from one department to another)
I would like to add some code that meant that when this condition is met the cells the CF is applied too, completes a Vlookup
so in my head the formula is
if (=AND(Z$28>=$EQ271,Z$28<=$ER271)=TRUE,VlookupA1,Sheetrange,2,false),""
I cannot however apply formula as the cells in question are data input cells
The Cell range this needs to be applied to is
=$AO$272:$AQ$272,$Z$271:$AQ$271,$Z$272:$AM$272,$Z$271:$AD$750,$Z$752:$EN$1152,$AF$271:$AJ$750,$AL$271:$AP$750,$Z$273:$AQ$750,$AR$271:$EN$750
I am very green at VBA but I'm getting used to it.
Any help is appreciated
Thanks
=AND(Z$28>=$EQ271,Z$28<=$ER271) - Each Cell refence refers to a date and colour the cells (the CF is applied too) Green (basically highlighting the dates items are moving from one department to another)
I would like to add some code that meant that when this condition is met the cells the CF is applied too, completes a Vlookup
so in my head the formula is
if (=AND(Z$28>=$EQ271,Z$28<=$ER271)=TRUE,VlookupA1,Sheetrange,2,false),""
I cannot however apply formula as the cells in question are data input cells
The Cell range this needs to be applied to is
=$AO$272:$AQ$272,$Z$271:$AQ$271,$Z$272:$AM$272,$Z$271:$AD$750,$Z$752:$EN$1152,$AF$271:$AJ$750,$AL$271:$AP$750,$Z$273:$AQ$750,$AR$271:$EN$750
I am very green at VBA but I'm getting used to it.
Any help is appreciated
Thanks