+ Reply to Thread
Results 1 to 7 of 7

Formula range auto change

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    02-14-2010
    Location
    oman
    MS-Off Ver
    Excel 2003
    Posts
    384

    Post Formula range auto change

    =COUNTIF(A4:A106,"*/*")
    I'm using above formula & it's working. but some time I'm inserting new data rows above the formula & sometime deleting. my question is after adding or deleting rows above formula range should auto change as per currant data range.pls help me.thanks in advance....
    Last edited by johncena; 02-06-2013 at 10:08 AM.

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Formula range auto change

    hi johncena. consider these few options:
    1. put a range much higher than you need. like:
    =COUNTIF(A4:A1000,"*/*")

    2. use the OFFSET formula to make it dynamic. would need to see a sample file to decide

    3. convert the range to a Table by selecting the range (if your header is in A3 then A3:A106) & press CTRL + L. the range in the formula will now expand or decrease accordingly.

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Formula range auto change

    try
    =COUNTIF(INDEX(A:A,4):INDEX(A:A,ROW()-1),"*/*")
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Forum Contributor
    Join Date
    02-14-2010
    Location
    oman
    MS-Off Ver
    Excel 2003
    Posts
    384

    Re: Formula range auto change

    Quote Originally Posted by martindwilson View Post
    try
    =COUNTIF(INDEX(A:A,4):INDEX(A:A,ROW()-1),"*/*")
    thanks a lot & it's working perfectly.. i have another formula like bellow. pls give me solution for it..thanks a lot again..
    =COUNTIF(C4:D137,"*/*")

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

    Re: Formula range auto change

    OFFSET being volatile, I would avoid it if possible

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Formula range auto change

    =countif(index(c:c,4):index(d:d,row()-1),"*/*")

  7. #7
    Forum Contributor
    Join Date
    02-14-2010
    Location
    oman
    MS-Off Ver
    Excel 2003
    Posts
    384

    Re: Formula range auto change

    thanks a lot.it's work..

+ 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