+ Reply to Thread
Results 1 to 6 of 6

Countif Function / Variable

  1. #1
    Registered User
    Join Date
    04-09-2012
    Location
    Overseas
    MS-Off Ver
    Excel 2007
    Posts
    3

    Countif Function / Variable

    I am trying to get my worksheet to perform a countif function.
    I want it to start at cell AM24 and count the number of "R" between cell AM24 and in the same row, so many cells over defined in AF24.

    I tried a few different functions using Indirect and none of them seemed to work.

    Any ideas? I know this is easy and I am just messing up the formula.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Countif Function / Variable

    Hi

    You mean this, or am i missing something?

    =COUNTIF(AG24:AL24,"R")
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    04-09-2012
    Location
    Overseas
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Countif Function / Variable

    No,
    AM24 is the start of the row I want counted. I want it to count the number of "R" in the row defined by AF24. AF24 will change in relation to the days, calculated in another formula.

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Countif Function / Variable

    Sorry, but i can't understand..

    Would you like to upload a small, sample workbook??

  5. #5
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Countif Function / Variable

    Try
    =COUNTIF(AM24:INDEX(AM24:XX24,0,AF24),"R")
    change the XX column to the column of your range extent

  6. #6
    Registered User
    Join Date
    04-09-2012
    Location
    Overseas
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Countif Function / Variable

    Quote Originally Posted by Cutter View Post
    Try
    =COUNTIF(AM24:INDEX(AM24:XX24,0,AF24),"R")
    change the XX column to the column of your range extent
    PERFECT! Thank you

+ 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