+ Reply to Thread
Results 1 to 4 of 4

Countif And Fill Handle question

  1. #1
    Registered User
    Join Date
    01-31-2018
    Location
    California
    MS-Off Ver
    2013
    Posts
    3

    Countif And Fill Handle question

    Hi, I am trying to use the countif function on a large set of data for a binary classification model.

    Basically I want countif to search for the value "1" within a range, say a1:a2 on one row, and then on the next row expand the search to a1:a3, then a1:a4 and so on until a1:a200.

    For clarity here is an example

    example.JPG

    etc etc etc to a1:a200

    Is there a simple way to do this?

  2. #2
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Countif And Fill Handle question

    Hi Justinian, welcome to the forum. Try this in B1, copied down:
    Please Login or Register  to view this content.
    The dollar sign $ makes the first row reference absolute (fixed). The second is relative, so it changes as the formula is copied down. The result is an expanding range.
    Last edited by leelnich; 01-31-2018 at 06:56 PM.
    Clicking the Add Reputation star below helpful posts is a great way to show your appreciation.
    Please mark your threads as SOLVED upon conclusion (Thread Tools above Post # 1). - Lee

  3. #3
    Registered User
    Join Date
    01-31-2018
    Location
    California
    MS-Off Ver
    2013
    Posts
    3

    Re: Countif And Fill Handle question

    That did it. Thanks a bunch!

  4. #4
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Countif And Fill Handle question

    You're most welcome! If that concludes your thread, please mark it as SOLVED (Thread Tools, up top). And since you're new...
    Clicking the Add Reputation star below helpful posts is a nice way to show appreciation to those who contributed. Regards - Lee

+ 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] Fill Handle Problems (fill data from 2 rows)
    By JoelPak in forum Excel General
    Replies: 5
    Last Post: 03-10-2016, 12:34 PM
  2. Replies: 6
    Last Post: 05-01-2014, 06:04 PM
  3. Fill-handle doesn't fill all the way down
    By xgirl in forum Excel General
    Replies: 7
    Last Post: 05-30-2013, 01:35 AM
  4. Fill In Handle
    By Stopea in forum Excel General
    Replies: 2
    Last Post: 06-19-2012, 01:08 PM
  5. Fill handle
    By juliebenn in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 03-01-2008, 02:13 PM
  6. [SOLVED] Fill Handle
    By Bob Umlas, Excel MVP in forum Excel General
    Replies: 0
    Last Post: 03-28-2006, 11:55 AM
  7. [SOLVED] fill handle question
    By Arsenio Oloroso in forum Excel General
    Replies: 4
    Last Post: 12-30-2005, 10:20 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