+ Reply to Thread
Results 1 to 4 of 4

Is there a function compiler?

  1. #1
    Registered User
    Join Date
    05-10-2016
    Location
    South West England
    MS-Off Ver
    Online/ 365
    Posts
    49

    Is there a function compiler?

    Hi All,

    Is anyone aware of a tool which enables me to put my functions in "Plain English" and outputs in an excel formula format?

    For example, i'm trying to work out the correct formula for the following:

    IF Cell AB1 DOESN'T Show NPW, SUM Cells R1,T1,V1,X1,Z1.
    IF Cell AB1 DOES Show "NPW" AND Cell W1 DOESN'T show anything, Show Cell AD1.
    IF Cell AB1 DOES Show "NPW" AND Cell W1 DOES Show Something, Show Cell AC1.




    I've got the wording down for the formula but it's difficult to put it into an actual statement (Split across separate lines for easier reading):

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    I find the excel one built-in is ok but not great. What would be better is if I could feed this information into a user friendly tool and select the arguments and it generates the correct formula.

    Does anything like that exist? Thanks

    All The Best
    Dan

  2. #2
    Valued Forum Contributor Harribone's Avatar
    Join Date
    02-24-2013
    Location
    Midlands, UK
    MS-Off Ver
    Excel 2019/365
    Posts
    570

    Re: Is there a function compiler?

    You can use the Insert Function to help you build formulas if needed.

    Just above the column headings on your sheet is the formula bar and if you click on the 'fx' you can use that to assist with formulas but you won't be able to build your formula above in that one go.
    Recommend building each bit and then put it altogether to create one formula if it helps you at all.

    Looking at your requirement I would therefore do this -

    =IF(AB1<>"NPW",SUM(R1,T1,V1,X1,Z1),NEXT STEP)

    NEXT STEP: IF(AND(AB1="NPW",W1=""),AD1,LAST STEP)

    LAST STEP: IF(AND(AB1="NPW",W1<>""),AC1,"")


    Note in the last step I have assumed you want the output to be blank if none of your criteria are met. You may want to change "" to "Error" or other output to suit your needs.
    You can now copy one into the other to build up you formula:

    Last step into Next step
    =IF(AB1<>"NPW",SUM(R1,T1,V1,X1,Z1),NEXT STEP)

    NEXT STEP: IF(AND(AB1="NPW",W1=""),AD1,IF(AND(AB1="NPW",W1<>""),AC1,""))

    Next step into the first part

    =IF(AB1<>"NPW",SUM(R1,T1,V1,X1,Z1),IF(AND(AB1="NPW",W1=""),AD1,IF(AND(AB1="NPW",W1<>""),AC1,"")))
    Say thanks, click *

  3. #3
    Registered User
    Join Date
    05-10-2016
    Location
    South West England
    MS-Off Ver
    Online/ 365
    Posts
    49

    Re: Is there a function compiler?

    Hi Harribone,

    Thanks. I can certainly see the logic in your approach. I'm not sure if it's a form of mild dyslexia or or just need more practice but its building up the formula i struggle with.

    The "FX" tool is what i referred to with "Built-in". Its good in that you can break up the different functions and it reports live the result but it's not very good for more complex formulae like the one specified.

    I was hoping there might be a website or some other software tool which has been designed specifically for building the formulae - it would seem simple enough to design for someone knowledgeable enough....

    Thanks Again, Rep Added

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,811

    Re: Is there a function compiler?

    To my knowledge, no, nothing better exists for Excel. From what I can see in Excel's documentation, Excel's function wizard has not really changed since my version 2007.

    If you are not limited to Excel, I know other spreadsheets have tried to build better function wizards. LO calc's function wizard includes a "structure" tab that shows your formula in a kind of "tree" so you can see how your functions are nested together and provides allows you to see each nesting level within the function wizard style view. Gnumeric has a "function guru" that is somewhat similar.

    As the market currently stands, if you want a better function wizard, I think you need to look to spreadsheets other than Excel.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. The compiler bypass some value, when tring to use find function
    By Tester C in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-29-2019, 12:55 PM
  2. Compiler for MAC
    By ccwbass in forum Excel General
    Replies: 2
    Last Post: 04-09-2017, 11:53 AM
  3. Replies: 3
    Last Post: 04-02-2013, 08:41 AM
  4. Compiler Error
    By vba-lover in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-15-2007, 10:22 PM
  5. [SOLVED] Excel Compiler
    By Steve-in-austin in forum Excel General
    Replies: 2
    Last Post: 06-08-2006, 01:45 PM
  6. [SOLVED] Need a free VB compiler.
    By Cactus in forum Excel General
    Replies: 4
    Last Post: 04-17-2006, 07:40 AM
  7. [SOLVED] VBA Compiler Flakiness
    By Steve Drenker in forum Excel General
    Replies: 3
    Last Post: 03-08-2006, 05:42 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1