+ Reply to Thread
Results 1 to 5 of 5

IdentifyTypes of Formulas in a given range

  1. #1
    Valued Forum Contributor
    Join Date
    04-13-2011
    Location
    Ottawa, Canada
    MS-Off Ver
    365
    Posts
    1,101

    IdentifyTypes of Formulas in a given range

    Hey Excel Experts,

    I'm just wondering if there's a way to identify type of formulas.

    For example, Say that in cell A1:A10 we have the following formulas. And I want to check if my range of formulas are =SUM(range).

    That means that, if the formulas are not =SUM(range), then I'd like it to 'identify' - it can be just a simple 'true/false' beside it, or a highlighted row.

    I've highlighted the same color for the "same type" of formula.

    =SUM(A1:A3)
    =SUM(A2:A100)
    =IF(A1=1,B1,0)
    =IF(A2=1,B2,0)
    =INDEX(Range,MATCH(1,Range,0))
    =INDEX(Range,MATCH(A1,Range,0))
    =1000/12
    =IFERROR(VLOOKUP(A1,lookup,col_index,0),"")
    =IFERROR(VLOOKUP(A2,lookup,col_index,0),"")
    =5892/12

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,687

    Re: IdentifyTypes of Formulas in a given range

    would formulatext work for you? it will show the formula in a cell so it would show, rather than the results of the formula, the way you show them in the post.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Valued Forum Contributor
    Join Date
    04-13-2011
    Location
    Ottawa, Canada
    MS-Off Ver
    365
    Posts
    1,101

    Re: IdentifyTypes of Formulas in a given range

    but formula text will give me 'unique' right since =SUM(A1:A2) is not the same as =SUM(A2=A3) as an example

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,687

    Re: IdentifyTypes of Formulas in a given range

    not necessarily unique, if you have (for some reason) =SUM(A1:A3) in B2 and =SUM(A1:A3) in B3 and you put =FORMULATEXT(B2) in C2 and =FORMULATEXT(B3) in C3 it will show both.
    formulatext will show the formula as text that is in each cell you reference.

  5. #5
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: IdentifyTypes of Formulas in a given range

    Try this in B1:

    =IFERROR("=SUM("=LEFT(FORMULATEXT(A1),FIND("(",FORMULATEXT(A1))),FALSE)

    Drag the formula down to B10.

    Edit: Here's another one that will return TRUE if SUM is found anywhere in the formula:

    =ISNUMBER(FIND("SUM",FORMULATEXT(A1)))
    Last edited by 63falcondude; 08-31-2018 at 01:04 PM.

+ 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. [SOLVED] How do I Sum a range that has Left Len function formulas in the range?
    By Brian.Aerojet in forum Excel General
    Replies: 5
    Last Post: 01-19-2018, 04:39 AM
  2. Copy Range of Formulas to a Variable Range of Cells
    By xace in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 09-07-2015, 10:28 PM
  3. [SOLVED] SUM of Range with formulas
    By mglassco in forum Excel General
    Replies: 8
    Last Post: 09-05-2014, 08:13 PM
  4. Insert cells, fill formulas down, set formulas for dynamic range
    By Snickers65 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-03-2013, 01:43 PM
  5. [SOLVED] How to copy a range (including any formulas in the range) into an array?
    By jimmalk in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 11-28-2012, 01:51 AM
  6. code to add formulas to a range with previous formulas appearing inside the new one
    By Excel-o-ratoR in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-07-2010, 06:02 AM
  7. help in moving a range of formulas
    By Brenda in forum Excel General
    Replies: 3
    Last Post: 11-20-2005, 09:20 AM

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