UDF and dynamic range

J

John

I have a function I built in which a couple of the inputs require a range...
I would like to have that range be dynamic so that sometimes it select 4
dates or sometimes only 3... So I tried to put this in for my function
(I16:OFFSET($I$16,H15-1,0))... but that doesn't work. If I have I16:I19 the
function works fine... can I put this offset in code in my function?

is that clear? any thoughts are appreciated. excel 2007
 
N

Niek Otten

Please post the code of your function

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

|I have a function I built in which a couple of the inputs require a range...
| I would like to have that range be dynamic so that sometimes it select 4
| dates or sometimes only 3... So I tried to put this in for my function
| (I16:OFFSET($I$16,H15-1,0))... but that doesn't work. If I have I16:I19 the
| function works fine... can I put this offset in code in my function?
|
| is that clear? any thoughts are appreciated. excel 2007
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top