Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() functions like index and offset will return a reference, but the lookup functions return a value. so: either reconstruct your lookup with match and index. or: create a new function (with more arguments) that incorporates the vlookup inside VBA -- keepITcool | www.XLsupport.com | keepITcool chello nl | amsterdam VilMarci wrote : Hi, I have a small excel function that returns the background color value of a cell: Function ColorOfCell(cellaneve As Range) Dim CellColor As Integer CellColor = cellaneve.Interior.ColorIndex ColorOfCell = CellColor End Function That's ok. Works from excel like =ColorOfCell(A1) But how can I make it work to use with built-in functions? Like: =ColorOfCell(HLOOKUP($A$1;Personal!$B$20:$Q$51;J6; FALSE)) Is there any general solution to do this? Marton |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
is there any built in function to draw lines | Excel Worksheet Functions | |||
Sqr built-in function in Excel 2003 VBA | Excel Discussion (Misc queries) | |||
Reference Previous Worksheet Built-in Function | Excel Worksheet Functions | |||
Access Recordset with Built-In Function | Excel Programming | |||
User-Defined Function pre-empting Built-in Function? How to undo???? | Excel Programming |