View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Dave Peterson Dave Peterson is offline
external usenet poster
 
Posts: 35,218
Default Field value from Function.

Try:

=indirect("M"&MONTH(A6))





"Craig & Co." wrote:

Hi,

I can get the value of a field from with the function
=CONCATENATE("$M","$"&VALUE(MONTH(A6)))

Result is $M$8

However if I try to add this to another function
=((B6*$B$2)/365)*CONCATENATE("$M","$"&VALUE(MONTH(A6)))

I get the error #VALUE!

If I type
=((B6*$B$2)/365)*$M$8
Then I get the correct results.

I cannot find a solution in Excel Help, so I thought I'd visit the experts

Cheers
Craig.


--

Dave Peterson