+ Reply to Thread
Results 1 to 4 of 4

How to create expanding formula ranges in table

  1. #1
    Registered User
    Join Date
    02-10-2010
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    14

    How to create expanding formula ranges in table

    So basically I want to create an expanding range in a formula in a formatted table.

    So if it was just a normal range the formula would look something like this;

    =COUNTIF($B2:E2,">0")

    Then as I drag the formula along the row it would automatically change as below;

    =COUNTIF($B2:F2,">0")
    =COUNTIF($B2:G2,">0")
    =COUNTIF($B2:H2,">0")
    and so on.

    When I try and do this in a formatted table it either stays completely static, or the whole range moves.

    I did think it may look something like this, but have not had any consistent joy with it;

    =COUNTIF(table_name[[ColumnB Name]:[ColumnB Name]]:[ColumnE Name],">0")

    Any guidance would be gratefully received.

    I am using Excel on Mac if that has any bearing on the solution.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: How to create expanding formula ranges in table

    On PC (and probably also on mac) ... take a look at this
    http://www.excelcampus.com/tips/abso...uctured-table/

    andsee the formula working in the example attached.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    02-10-2010
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: How to create expanding formula ranges in table

    Thanks Glenn, all working now.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: How to create expanding formula ranges in table

    Glad to have helped! If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. It'd also be appreciated if you were to click the add Reputation button at the foot of any of the posts of those who helped you reach a solution.

+ 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] Array formula not expanding to match lines added to table
    By justmatt in forum Excel General
    Replies: 13
    Last Post: 05-03-2014, 02:16 PM
  2. [SOLVED] Create code to update named ranges in a table. Table contains Many Name Ranges
    By Calio in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-09-2014, 11:13 AM
  3. How do I create an automatically expanding data table?
    By johnw993 in forum Excel General
    Replies: 2
    Last Post: 12-05-2012, 01:23 AM
  4. Expanding ranges after sort???
    By Simon Lloyd in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-01-2006, 01:45 PM
  5. Excel formula in an expanding table
    By Keady in forum Excel General
    Replies: 1
    Last Post: 07-30-2005, 01:05 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