+ Reply to Thread
Results 1 to 9 of 9

multiple parametres in COUNTIF function help

  1. #1
    Registered User
    Join Date
    01-30-2015
    Location
    slovenia
    MS-Off Ver
    2010
    Posts
    35

    multiple parametres in COUNTIF function help

    I am trying to use =countif function to count how many variables are there with this characteristics:
    1. they are right above a constant, that is in my case a word "YES"
    2. in the same line(but not always the on the same place in the line, sometimes 3, sometimes 4 spaces away) there is another constant in my case "PICK"
    how do i write countif function that includes 3 parametres?

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,000

    Re: multiple parametres in COUNTIF function help

    You need countifs, not countif. It'd be easier to help if you posted an Excel sheet - showing what you want.

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: multiple parametres in COUNTIF function help

    I would keep it simple, and add a helper column. Without seeing your data structure, I can't provide a precise solution, but as an example, something like:

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


    Then you can simply sum the helper column.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  4. #4
    Registered User
    Join Date
    01-30-2015
    Location
    slovenia
    MS-Off Ver
    2010
    Posts
    35

    Re: multiple parametres in COUNTIF function help

    i ulpoaded my file.
    i am trying to count how many times a variable that is above "PICK" and it must be on the same line as "W" apears.Book2.xlsx

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,000

    Re: multiple parametres in COUNTIF function help

    OK, so for a few of these what answer to you expect, and why?

  6. #6
    Registered User
    Join Date
    01-30-2015
    Location
    slovenia
    MS-Off Ver
    2010
    Posts
    35

    Re: multiple parametres in COUNTIF function help

    oh, sorry.. i asked the wrong question. if i want to count i can just count "W" parameters, but i want to sum that variables that are above pick and also in line with "W"

  7. #7
    Registered User
    Join Date
    01-30-2015
    Location
    slovenia
    MS-Off Ver
    2010
    Posts
    35

    Re: multiple parametres in COUNTIF function help

    i want to sum 2,25 1,62 but not 3.9 and so on

  8. #8
    Registered User
    Join Date
    01-30-2015
    Location
    slovenia
    MS-Off Ver
    2010
    Posts
    35

    Re: multiple parametres in COUNTIF function help

    Book2 (10).xlsx
    why does this formula not work

  9. #9
    Forum Contributor
    Join Date
    10-08-2006
    Location
    Walnut, CA
    MS-Off Ver
    2003,2010, Office 365
    Posts
    114

    Re: multiple parametres in COUNTIF function help

    Try this one
    Please Login or Register  to view this content.

+ 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. Chart problems with 3 parametres
    By anono1 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 03-03-2014, 09:01 AM
  2. Defeinir les parametres des axes differament
    By Prue in forum Non English Excel
    Replies: 0
    Last Post: 11-05-2012, 11:27 AM
  3. Multiple Conditions in CountIF Function
    By mushtaque_asghar in forum Excel General
    Replies: 1
    Last Post: 07-03-2009, 06:40 AM
  4. Replies: 5
    Last Post: 01-26-2009, 12:18 AM
  5. [SOLVED] Pass parametres from Excel to Access query
    By Andrew in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-12-2005, 12:05 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