+ Reply to Thread
Results 1 to 6 of 6

Nesting Formulas

  1. #1
    Registered User
    Join Date
    11-15-2012
    Location
    San Jose, CA
    MS-Off Ver
    Office 2019 (in a VM on my mac)
    Posts
    34

    Nesting Formulas

    I have this simple formula
    =SUM(F3:F8)

    and I'd like to replace the 8 with this.
    =COUNT(F1:F9999)-1

    How do I do that?

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,445

    Re: Nesting Formulas

    Hi and welcome
    try=SUM(F3:INDEX(F3:F9999,count(F3:F9999)-1))

  3. #3
    Registered User
    Join Date
    11-15-2012
    Location
    San Jose, CA
    MS-Off Ver
    Office 2019 (in a VM on my mac)
    Posts
    34

    Re: Nesting Formulas

    Thanks......

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Nesting Formulas

    ..another option woud be to create a dynamic range name, e.g. 'mysum', defined as

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


    The the SUM formula is

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

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  5. #5
    Registered User
    Join Date
    11-15-2012
    Location
    San Jose, CA
    MS-Off Ver
    Office 2019 (in a VM on my mac)
    Posts
    34

    Re: Nesting Formulas

    Thanks but that's very similar to the method I first tried and it gives a circular reference error because in my case the formula is in column F and F:F encompasses the whole column.

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Nesting Formulas

    Quote Originally Posted by MartinLiss View Post
    Thanks but that's very similar to the method I first tried and it gives a circular reference error because in my case the formula is in column F and F:F encompasses the whole column.
    That of course will be the case if the =mysum is in column F
    For various reasons it's not good practice to use whole columns.

    The other option then is to ensure the SUM formula is above your data. e.g assumin your data starts at F10 with the mysun range defined as say

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


    an
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    anywhere in F1:g9 will avoid a circular reference

+ 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] Max and Min If formulas for nesting not the same?
    By Kendacott in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-10-2019, 12:52 PM
  2. [SOLVED] Nesting IF formulas
    By mackan7695 in forum Excel General
    Replies: 2
    Last Post: 03-30-2017, 08:15 AM
  3. Need help nesting some formulas
    By jceg316 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-05-2014, 12:28 PM
  4. Nesting If formulas
    By lmennucci in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-09-2013, 04:12 PM
  5. [SOLVED] Nesting Formulas
    By colbyjack in forum Excel General
    Replies: 10
    Last Post: 05-31-2012, 05:23 PM
  6. Nesting of Formulas
    By mttlltt75 in forum Excel General
    Replies: 1
    Last Post: 06-05-2009, 11:12 AM
  7. Nesting formulas
    By msbing916 in forum Excel General
    Replies: 2
    Last Post: 07-30-2007, 11:13 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