+ Reply to Thread
Results 1 to 4 of 4

IF and Counif

  1. #1
    Registered User
    Join Date
    02-12-2016
    Location
    Chennai
    MS-Off Ver
    2010 & 2013
    Posts
    9

    IF and Counif

    Friends,

    I am trying this formula but it does not work. Can someone help me? What i am trying is matching two dates and and two condition to give me the count. Please give me the formula?

    I have attached the spreadsheet and what i need is Matching Mar-16 in the raw data and count how many desktop is reimaged and reimaged.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor loginjmor's Avatar
    Join Date
    01-31-2013
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2013
    Posts
    1,073

    Re: IF and Counif

    Hi -

    You have quite a few issues with your formula/syntax.

    First, you are comparing a text date "Jan-2016" to an Excel date value (which is a number) So that won't work.
    Next, your search is for "Reimaged" and "NotReimaged" but your whole data set is "Replaced" and "Not Replaced" So that will never be a match.
    Finally, I personally don't like hard coding your search criteria (such as "Reimaged" or "Jan-2016") into your formulas. Instead, put those elements into separate cells and reference them from your formulas. That makes changing/editing your search criteria really easy.

    Anyway, I corrected all of the above in the attached spreadsheet.

    Hope this helps
    Attached Files Attached Files
    ____________________________________________
    If this has solved your problem, please edit the thread title to add the word [SOLVED] at the beginning. You can do this by
    -Go to the top of the first post
    -Select Thread Tools
    -Select Mark thread as Solved

    If I have been particularly helpful, please "bump" my reputation by pressing the small star in the lower left corner of my post.

  3. #3
    Forum Contributor
    Join Date
    07-10-2012
    Location
    Bangladesh
    MS-Off Ver
    Excel 2007
    Posts
    129

    Re: IF and Counif

    Pls check attachment
    Attached Files Attached Files

  4. #4
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,992

    Re: IF and Counif

    Try

    D6=SUMPRODUCT((Table2[Machine Type]='Cover Page'!D$5)*(Table2[Completed]='Cover Page'!$C6)*(Table2[Status]=IF(COLUMNS($D$5:D5)<=2,"Replaced","Not replaced"))) and drag towards the cells
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

+ 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. Counif using dates
    By wjk221 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-14-2014, 04:32 PM
  2. [SOLVED] Counif with criteria
    By thed85 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-21-2013, 02:18 PM
  3. Counif for row
    By amarrb in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-05-2011, 07:45 PM
  4. counif v sumproduct
    By khalid79m in forum Excel General
    Replies: 1
    Last Post: 12-28-2006, 10:16 AM
  5. [SOLVED] counif greater or less than
    By Raza in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-29-2006, 04:10 PM
  6. Counif
    By moglione1 in forum Excel General
    Replies: 5
    Last Post: 09-23-2005, 09:05 AM
  7. [SOLVED] counif but not all the cells
    By thanks in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  8. counif but not all the cells
    By thanks in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM

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