ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Array (https://www.excelbanter.com/excel-programming/376226-array.html)

guedj54

Array
 
I have an array-formula called DateRate() that return a list of dates and
their rates for example DateRate(Ben) will return:
10/02/2006 20
15/02/2006 34
17/02/2006 56
03/10/2006 40

I will need to have a function that is not an array formula and that will
return only the rate of the first date. For example in this case 20.

Is it doable?

Many thanks
Paul


Tom Ogilvy

Array
 
You want another function that will return the value 20?

it should be doable.

Without knowing mo

Public Function Rate1(Ben)
v = DateRate(ben)
Rate1 = v(lbound(v,1), lbound(v,2)+1)
End Function

--
Regards,
Tom Ogilvy


"guedj54" wrote in message
...
I have an array-formula called DateRate() that return a list of dates and
their rates for example DateRate(Ben) will return:
10/02/2006 20
15/02/2006 34
17/02/2006 56
03/10/2006 40

I will need to have a function that is not an array formula and that will
return only the rate of the first date. For example in this case 20.

Is it doable?

Many thanks
Paul




guedj54

Array
 
Many Thanks Tom.

"Tom Ogilvy" wrote:

You want another function that will return the value 20?

it should be doable.

Without knowing mo

Public Function Rate1(Ben)
v = DateRate(ben)
Rate1 = v(lbound(v,1), lbound(v,2)+1)
End Function

--
Regards,
Tom Ogilvy


"guedj54" wrote in message
...
I have an array-formula called DateRate() that return a list of dates and
their rates for example DateRate(Ben) will return:
10/02/2006 20
15/02/2006 34
17/02/2006 56
03/10/2006 40

I will need to have a function that is not an array formula and that will
return only the rate of the first date. For example in this case 20.

Is it doable?

Many thanks
Paul






All times are GMT +1. The time now is 11:31 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com