+ Reply to Thread
Results 1 to 6 of 6

Automatically include adjacent cells

Hybrid View

  1. #1
    Registered User
    Join Date
    12-24-2016
    Location
    Germany
    MS-Off Ver
    Microsoft office 2013
    Posts
    55

    Automatically include adjacent cells

    Hello,

    I have the following formula: B1=COUNTA(A1:A5)-COUNTIF(A1:A5;"-"). I constantly add new entries to the range (A6,A7,A8.....). Every time I add an entry, Excel asks whether to update the formula to include the cell or not. Can I automate this process?

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,467

    Re: Automatically include adjacent cells

    Try this:

    B1=COUNTA(A1:A8)-COUNTIF(A1:A8;"-")

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Automatically include adjacent cells

    Just expand the ranges in the formula...

    =COUNTA(A1:A100)-COUNTIF(A1:A100;"-")
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    12-24-2016
    Location
    Germany
    MS-Off Ver
    Microsoft office 2013
    Posts
    55

    Re: Automatically include adjacent cells

    Thanks both of you.

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Automatically include adjacent cells

    You're welcome!

  6. #6
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,467

    Re: Automatically include adjacent cells

    Thanks for the Add Rep.

    Glad you got it worked out.

+ 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. Replies: 1
    Last Post: 05-07-2016, 01:56 PM
  2. Automatically delete cells based on adjacent cell color
    By chromecarz00 in forum Excel General
    Replies: 1
    Last Post: 04-17-2014, 07:05 PM
  3. Replies: 1
    Last Post: 04-12-2013, 06:27 PM
  4. Automatically Fill Adjacent Cells Based On Input Data
    By maxraph in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-26-2012, 01:04 PM
  5. Replies: 1
    Last Post: 12-22-2010, 09:08 AM
  6. [SOLVED] how do i add in numbers automatically based on adjacent cells cont
    By lemskibar in forum Excel General
    Replies: 2
    Last Post: 12-22-2005, 01:30 PM

Tags for this Thread

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