Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Field value from Function.

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.


  #2   Report Post  
Posted to microsoft.public.excel.programming
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
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Field value from Function.

Perfect!!!!!

Thank you!!
Craig.

"Dave Peterson" wrote in message
...
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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple field count function use Judy Rose Excel Worksheet Functions 2 March 4th 08 12:06 AM
right function on a mm/dd/yy tt:tt:tt field MJW[_2_] Excel Discussion (Misc queries) 6 September 21st 07 02:56 PM
Using a field name in an IF function for a calculated field in a PivotTable Joel P Excel Worksheet Functions 0 March 29th 07 12:48 AM
Insert Function field? Jenn Warren Excel Discussion (Misc queries) 1 May 23rd 06 01:10 AM
vlookup and a function field input Patrick Excel Worksheet Functions 2 April 27th 06 04:38 PM


All times are GMT +1. The time now is 12:23 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"