+ Reply to Thread
Results 1 to 8 of 8

COUNTIF without an array

  1. #1
    Registered User
    Join Date
    02-07-2018
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    4

    COUNTIF without an array

    Hi there,

    I've been looking around forums with regards to COUNTIF functions without an array but I can't seem to find the perfect solution for my situation.

    Basically, I need to count only certain cells and if it satisfies the conditions. Eg. If COUNTIF could allow non-range cells, it'll look something like COUNTIF((A1,B2,C3),">3") and the result would be 2 if according to the sample table below

    A B C
    4 2 3
    3 5 4
    6 1 2

    Thus I would be selecting individual cells, counting them if it satisfies the condition.

    Hope someone could help!

    PS I've tried using a formula,with respect to the above table, COUNTIF(A1:A1:B2:B2:C3:C3,">3") but it doesnt seem to be correct.

    Thanks
    Last edited by Pinkkypie; 02-07-2018 at 08:23 PM.

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: COUNTIF without an array

    welcome to the forum. any reason why you are avoiding an array? you can't do that with COUNTIF. there are workarounds without array but i don't see the need to.
    =COUNTIF(A1,">3")+COUNTIF(B2,">3")+COUNTIF(C3,">3")
    =SUM(--(A1>3),--(B2>3),--(C3>3))

    not sure if the concern is to press CTRL + SHIFT + ENTER for array formulas. some array formulas may not require it. like this for eg.
    =SUMPRODUCT(--(N(INDIRECT({"A1","B2","C3"}))>3))

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    02-07-2018
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: COUNTIF without an array

    Reason why I have to avoid the array is because I'm trying to compile information of a certain item over a long duration. In short, there's 50 of this equipment and almost all of them intermittently goes above a set limit over a duration (based on daily logs). This excel spreadsheet that I have is one week one sheet (Meaning 7 days of data in one sheet) with other information (Refer below for clarity) and thus it cant be an array. Im not sure if Im doing this efficiently but I need a way to count the number of times this specific equipment it goes over the limit, at least compiling it within the sheet of 7 days.

    Date Equipment Length Current(Limit>100A) Temperature Date Equipment Length Current(Limit>100A) Temperature ...x5

    I hope I kinda make sense and you get my objective here. I'm not so proficient in Excel so excuse me for that.

    Also since we're on that topic of array formulas, I am really confused on how to use the CSE method.

    Thank you so much for your help

  4. #4
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: COUNTIF without an array

    Hi, Pinkkypie - don't make us re-invent the wheel. Please upload a small sample workbook.
    Remove any personal or proprietary information.
    Try to use your original layout so our solutions fit your workbook.
    Include “realistic” data showing any variations the code or formula must address.
    Highlight the formula cells and simulate some results to help us visualize what you want.

    To attach a workbook:
    Click Edit Post (or just start a new reply.)
    Click Go Advanced
    Scroll down to Manage Attachments and click.
    Now click Browse, find your file, then click Upload. Simple!
    Clicking the Add Reputation star below helpful posts is a great way to show your appreciation.
    Please mark your threads as SOLVED upon conclusion (Thread Tools above Post # 1). - Lee

  5. #5
    Registered User
    Join Date
    02-07-2018
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: COUNTIF without an array

    My apologies, I've added an attachment for a reference of it. Whats below the date is the equipment number. Thus I want to count the number of times this certain equipment goes over the limit within a week, as you can see, I am unable to do an array.

  6. #6
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: COUNTIF without an array

    My understanding is that you want a count of >100A readings for each of the 44 machines. COUNTIFS works just fine for that.
    Paste this in a column next to the data on row 15 and copy down:
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by leelnich; 02-07-2018 at 06:43 AM.

  7. #7
    Registered User
    Join Date
    02-07-2018
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: COUNTIF without an array

    Hi Leelnich

    I really appreciate your help! I honestly didnt think of it that way. Not intelligent i guess haha! So sorry for the troubles!

    Thanks

  8. #8
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: COUNTIF without an array

    You're most welcome! And since you're new... Clicking the Add Reputation star below helpful posts is a nice way to show appreciation to those who contributed. Regards - Lee

+ 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. array countif
    By Fabiany in forum Excel General
    Replies: 7
    Last Post: 10-02-2017, 12:00 PM
  2. [SOLVED] COUNTIF for Array
    By theTaoJones in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-19-2017, 10:50 AM
  3. countif VBA Array's
    By samot79 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-26-2016, 08:44 PM
  4. countif from array
    By Bart00 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-19-2016, 03:49 PM
  5. [SOLVED] IF array with COUNTIF??????
    By alfgrey in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-05-2013, 07:10 AM
  6. [SOLVED] Countif in an array
    By Petijandro in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-29-2013, 07:48 AM
  7. Array Countif
    By H43825 in forum Excel General
    Replies: 1
    Last Post: 05-01-2009, 12:04 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