+ Reply to Thread
Results 1 to 6 of 6

COUNTIF() format

  1. #1
    Registered User
    Join Date
    12-05-2012
    Location
    victoria
    MS-Off Ver
    Excel 2010
    Posts
    55

    COUNTIF() format

    is there a way to have a COUNTIF() function move from

    COUNTIF(A:A,">5") to COUNTIF(B:B,">5")

    without actually changing the A's to B's so it could be a recursive function?

  2. #2
    Forum Contributor
    Join Date
    09-27-2012
    Location
    London, England
    MS-Off Ver
    2003, 2010
    Posts
    344

    Re: COUNTIF() format

    Since its not absolute referenced, this change must happen automatically when you copy the cell containing the first formula into the adjacent cell - ex copying cell B1 containing "=COUNTIF(A:A,">5") " to C1 would have "=COUNTIF(B:B,">5")" in C1?
    If solved kindly remember to mark Thread as solved.
    Click the small star icon at the bottom left of my post if this was useful.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,945

    Re: COUNTIF() format

    Just drag the formula to the next column/s, it will adjust itself automatically for you
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    12-05-2012
    Location
    victoria
    MS-Off Ver
    Excel 2010
    Posts
    55

    Re: COUNTIF() format

    Ok that is all good but can I have that auto change in a formula so if I had a cell like C1=COUNTIF(D:D,">5")+COUNTIF(E:E,">5")+(COUNTIF(F:F,">5")....

    I could just make a function that would start at column D and continued untill an empty column?

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: COUNTIF() format

    Hi,

    Well if you know the last column then

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  6. #6
    Registered User
    Join Date
    12-05-2012
    Location
    victoria
    MS-Off Ver
    Excel 2010
    Posts
    55

    Re: COUNTIF() format

    Ok, now what if i decide to be crazy and want every other column.. and lets assume I know how many. or both ways if you know how to

+ 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