+ Reply to Thread
Results 1 to 4 of 4

Show amount of times a value is present in a column (with exception)

  1. #1
    Registered User
    Join Date
    02-15-2018
    Location
    Netherlands
    MS-Off Ver
    Office 2016
    Posts
    4

    Show amount of times a value is present in a column (with exception)

    Hi All,

    I have a formule where i want to display how many times a certain value (for instance 123) is present in column A.
    I was able to do that with =COUNTIF(B:B;123)

    In my column B is data that either does or doesn't contain a ''@''.

    Is it possible to make a formula that does the COUNTIF calculation but only counts the values if the matching row (for instance A10 and B10) contains a ''@''.

    Note that in row B the data is not just a @ but contains usually different types or e-mailadresses, the presence of @ would be able to determine the type of data column A represents.

    Similat to that, would it also be possible to do the same formula, but only count if column B does NOT contain a "@''?

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Show amount of times a value is present in a column (with exception)

    Hello and welcome to the forum. Try these:

    Does contain:
    =COUNTIFS(A:A;123;B:B;"*@*")

    Does not contain:
    =COUNTIFS(A:A;123;B:B;"<>*@*")

  3. #3
    Registered User
    Join Date
    02-15-2018
    Location
    Netherlands
    MS-Off Ver
    Office 2016
    Posts
    4

    Re: Show amount of times a value is present in a column (with exception)

    Thank you for your reply. When i try that formula i get the error message:

    Youve entered too many arguments for this function.
    Last edited by AliGW; 02-16-2018 at 03:54 AM. Reason: Unnecessary quotation removed.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Show amount of times a value is present in a column (with exception)

    Did you enter COUNTIFS or just COUNTIF?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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. Counting amount of present people from start/stop times (workshifts)
    By khalman in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-26-2017, 06:07 PM
  2. [SOLVED] Loop through tabs and return date and amount when amount is present
    By rs1aj in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-16-2015, 04:19 PM
  3. Replies: 1
    Last Post: 02-03-2015, 09:10 PM
  4. Replies: 3
    Last Post: 02-19-2014, 10:47 AM
  5. [SOLVED] Limit the amount of times you can insert the same date in a column
    By craig0357 in forum Excel General
    Replies: 4
    Last Post: 01-03-2014, 04:45 PM
  6. [SOLVED] Highlighting text in a column- a different colour for the amount of times it is repeated
    By gavwalsh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-11-2013, 04:44 AM
  7. Replies: 2
    Last Post: 10-28-2010, 12:07 PM

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