+ Reply to Thread
Results 1 to 5 of 5

If I am combining functions to construct a big formula, how to determine its arrangements?

  1. #1
    Forum Contributor daliye's Avatar
    Join Date
    05-28-2023
    Location
    North Africa
    MS-Off Ver
    microsoft excel, latest 365, 64-bit!
    Posts
    259

    If I am combining functions to construct a big formula, how to determine its arrangements?

    Hi,
    Excel has several built-in functions like sum, count ...etc.
    Sometimes I need to combine several built-in functions to perform a big formula.
    My question is, how do we determine the arrangements of the built-in functions?
    For example, I was reading this article regarding removing several characters from a cell:
    https://www.wps.com/blog/how-to-remo...asiest-ways-1/, and there are several other examples.
    They used the combined LEFT & LEN - RIGHT & LEN in the following order:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

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

    My exact question is, how do you determine which function to start with?
    Is there any rule to master such behavior?
    Using RIGHT/LEFT then use LEN, does it matter if I started with LEN and then LEFT/RIGHT?
    I hope that I was able to express myself and sorry for my English.
    thnx!
    d!
    microsoft excel, latest 365, 64-bit!

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: If I am combining functions to construct a big formula, how to determine its arrangeme

    You have 365, so use TEXTBEFORE and TEXTAFTER instead.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor daliye's Avatar
    Join Date
    05-28-2023
    Location
    North Africa
    MS-Off Ver
    microsoft excel, latest 365, 64-bit!
    Posts
    259

    Re: If I am combining functions to construct a big formula, how to determine its arrangeme

    Thanks for the fast reply.
    That was just an example, but I was refer to the concept away from the example details.
    So how to determine the order?

  4. #4
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: If I am combining functions to construct a big formula, how to determine its arrangeme

    Start with try and error and as you see repeating use LET().

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,447

    Re: If I am combining functions to construct a big formula, how to determine its arrangeme

    In your examples, you need to extract text from an existing string. So, the basic functions are LEFT and RIGHT. If the length of the string is known, you could just subtract 1 from it to get the length of the text to be extracted. BUT, if the length of the string is variable, you use LEN to determine that value and subtract 1 from that instead.

    The rule of thumb is to start with the simple function (LEFT or RIGHT) to test the formula. Then embellish it to make it more flexible.

    With 365, you have the LET function which allows you to define and set variables which can make the formula easier to read, less repetitive, and more efficient (and shorter).
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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] FILTER formula arrangements
    By jsneak in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-23-2022, 09:22 AM
  2. Combining 'VLookUp' & 'CountA' Functions In A Single Formula
    By Ron Grehl in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-16-2022, 06:17 PM
  3. [SOLVED] COMBINING Revenue and Expenses to construct a excel bank ledger
    By sunboy in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 05-03-2021, 11:25 AM
  4. Combining concatenate and filter functions in an array formula
    By marece2016 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-11-2017, 04:04 PM
  5. Formula Combining the SUMIF and LEFT functions to calculate totals
    By The_Snook in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-29-2013, 01:28 PM
  6. Method to determine digits needed to construct numbers
    By theedarkone in forum Excel General
    Replies: 16
    Last Post: 07-05-2012, 10:35 AM
  7. Formula combining CONCATENATE and IF functions
    By GeezerGekk in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-09-2008, 01:34 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