+ Reply to Thread
Results 1 to 9 of 9

How to select whole column (e.g. B) except single cell in the middle (e.g. B43) for formul

  1. #1
    Registered User
    Join Date
    07-10-2013
    Location
    Hong Kong, Hong Kong
    MS-Off Ver
    Excel 2010
    Posts
    3

    How to select whole column (e.g. B) except single cell in the middle (e.g. B43) for formul

    I want to do a countifs formula, but I want the range to be whole column B except B43. What should I put in the formula?

  2. #2
    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,939

    Re: How to select whole column (e.g. B) except single cell in the middle (e.g. B43) for fo

    if you want to exclude B43 from the countifs, just do your countifs and subtract 1?
    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

  3. #3
    Registered User
    Join Date
    07-10-2013
    Location
    Hong Kong, Hong Kong
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: How to select whole column (e.g. B) except single cell in the middle (e.g. B43) for fo

    Actually my formula was =COUNTIFS($B:$B, "New Agent Training",$G:$G, "12"), but unfortunately it was also on column B so it couldn't work, and I dont want to move it. Any other ways to do it?

  4. #4
    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,939

    Re: How to select whole column (e.g. B) except single cell in the middle (e.g. B43) for fo

    I dont see why =COUNTIFS($B:$B, "New Agent Training",$G:$G, "12")-1 wouldnt work?

  5. #5
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: How to select whole column (e.g. B) except single cell in the middle (e.g. B43) for fo

    that assumption is that b43 is going to be counted as 1
    what is actually in b43?
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  6. #6
    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,939

    Re: How to select whole column (e.g. B) except single cell in the middle (e.g. B43) for fo

    good point hum, I actually did think about that, then forgot lol

    =COUNTIFS($B:$B, "New Agent Training",$G:$G, "12")-counta(B43) perhaps?

  7. #7
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: How to select whole column (e.g. B) except single cell in the middle (e.g. B43) for fo

    counta(b43) is always going to be 1

    you need something like
    COUNTIFS($B:$B, "New Agent Training",$G:$G, "12") -COUNTIF(B43,"New Agent training")

  8. #8
    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,939

    Re: How to select whole column (e.g. B) except single cell in the middle (e.g. B43) for fo

    it will only be 1 is its not empty

  9. #9
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: How to select whole column (e.g. B) except single cell in the middle (e.g. B43) for fo

    let me rephrase......counta(b43) will be 1 if "anything" is in that field

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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