dbTalk Databases Forums  

Help with converting Excel formula to FM Calc

comp.databases.filemaker comp.databases.filemaker


Discuss Help with converting Excel formula to FM Calc in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
John Smith
 
Posts: n/a

Default Help with converting Excel formula to FM Calc - 05-17-2010 , 10:28 PM






I have an Excel formula that I would like to convert over to Filemaker
calculation in my database. When I put in the field names I get an error
on too few parameters.

Any help would be greatly appreciated!


Excel Formula =IF(AND(L5>=0.8),M5,0)


FM Field Name
L5 = Prob
M5 = Dollar
Forecast = (The Calc field) IF(AND(Prob>=0.8),Dollar,0)

Reply With Quote
  #2  
Old   
Your Name
 
Posts: n/a

Default Re: Help with converting Excel formula to FM Calc - 05-17-2010 , 11:13 PM






In article <o7qdnTdelc7OlG_WnZ2dnUVZ_judnZ2d (AT) earthlink (DOT) com>, John Smith
<john.Smith (AT) example (DOT) net> wrote:

Quote:
I have an Excel formula that I would like to convert over to Filemaker
calculation in my database. When I put in the field names I get an error
on too few parameters.

Any help would be greatly appreciated!


Excel Formula =IF(AND(L5>=0.8),M5,0)


FM Field Name
L5 = Prob
M5 = Dollar
Forecast = (The Calc field) IF(AND(Prob>=0.8),Dollar,0)
That Excel formula has an unnecessary "And" operator in there since it's
only 'and'ing one parameter. It really only needs to be:

If (L5>=0.8, M5, 0)

which is then the same formula you can use in your FileMaker database,
i.e.
If (Prob>=0.8; Dollar; 0)


Helpfull Harry )

Reply With Quote
  #3  
Old   
John Smith
 
Posts: n/a

Default Re: Help with converting Excel formula to FM Calc - 05-21-2010 , 10:23 AM



Your Name wrote:
Quote:
In article <o7qdnTdelc7OlG_WnZ2dnUVZ_judnZ2d (AT) earthlink (DOT) com>, John Smith
john.Smith (AT) example (DOT) net> wrote:

I have an Excel formula that I would like to convert over to Filemaker
calculation in my database. When I put in the field names I get an error
on too few parameters.

Any help would be greatly appreciated!


Excel Formula =IF(AND(L5>=0.8),M5,0)


FM Field Name
L5 = Prob
M5 = Dollar
Forecast = (The Calc field) IF(AND(Prob>=0.8),Dollar,0)

That Excel formula has an unnecessary "And" operator in there since it's
only 'and'ing one parameter. It really only needs to be:

If (L5>=0.8, M5, 0)

which is then the same formula you can use in your FileMaker database,
i.e.
If (Prob>=0.8; Dollar; 0)


Helpfull Harry )
Thanks Harry!

Reply With Quote
  #4  
Old   
Your Name
 
Posts: n/a

Default Re: Help with converting Excel formula to FM Calc - 05-21-2010 , 04:43 PM



"John Smith" <john.Smith (AT) example (DOT) net> wrote

Quote:
Your Name wrote:
In article <o7qdnTdelc7OlG_WnZ2dnUVZ_judnZ2d (AT) earthlink (DOT) com>, John Smith
john.Smith (AT) example (DOT) net> wrote:

I have an Excel formula that I would like to convert over to Filemaker
calculation in my database. When I put in the field names I get an
error
on too few parameters.

Any help would be greatly appreciated!


Excel Formula =IF(AND(L5>=0.8),M5,0)


FM Field Name
L5 = Prob
M5 = Dollar
Forecast = (The Calc field) IF(AND(Prob>=0.8),Dollar,0)

That Excel formula has an unnecessary "And" operator in there since it's
only 'and'ing one parameter. It really only needs to be:

If (L5>=0.8, M5, 0)

which is then the same formula you can use in your FileMaker database,
i.e.
If (Prob>=0.8; Dollar; 0)

Thanks Harry!
I meant to add that Excel's formulas use the And operator (as well as the Or
operator) in a rather peculiar way:

And (Test1, Test2, Test3, ...)

whereas FileMaker and most programming languages use a more normal approach:

(Test1) and (Test2) and (Test3) and ...

That might make it easier for you to convert any more Excel formulas.


Helpfull Harry )

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.