+ Reply to Thread
Results 1 to 8 of 8

List all functions used in an excel formula

  1. #1
    Registered User
    Join Date
    02-02-2011
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    5

    List all functions used in an excel formula

    Hi,

    I've been searching everywhere (and perhaps I'm overlooking something really quite simple), but I'm trying to design some code (short of having to create a full formula parsing algorithm) that will take a range and create a list of all excel functions used in that formula. The only two ways I can think of is: 1) Give a full list of excel functions and have VBA loop through each using the InStr function, 2) create a formula parsing algorithm. Both seem long and messy, does anyone know of an easier way to do this?

    Thanks in advance for your help,

    Craig

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: List all functions used in an excel formula

    Hi Craig, try this
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    02-02-2011
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: List all functions used in an excel formula

    Oh wow - that is impressive - can you explain to me how it works? What is a regexp object?

    Thanks for your help!

  4. #4
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: List all functions used in an excel formula

    In the attached file, select the yellow cell and press the green button.
    I have a few links for RegExp, but they are in Russian. Look for examples in this forum.
    Attached Files Attached Files

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,835

    Re: List all functions used in an excel formula

    Should be like this
    Please Login or Register  to view this content.
    Last edited by jindon; 11-06-2012 at 09:09 AM.

  6. #6
    Registered User
    Join Date
    02-02-2011
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: List all functions used in an excel formula

    Thanks for your replies - what will that pattern pick up, that the original one would not?

    Craig

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,835

    Re: List all functions used in an excel formula

    Functions like

    CEILING.PRECISE
    FLOOR.PRECISE
    RANK.EQ
    RANK.AVG
    NETWORKDAYS.INTL
    LOG10
    DEC2BIN
    BIN2DEC
    MODE.MULT
    MODE.SNGL

  8. #8
    Registered User
    Join Date
    02-02-2011
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: List all functions used in an excel formula

    Ahh that is very true, thank you so much for your help!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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