+ Reply to Thread
Results 1 to 6 of 6

Count if a cell is equal to the cell in different spreadsheet and is less or equal zero

  1. #1
    Registered User
    Join Date
    11-21-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    99

    Count if a cell is equal to the cell in different spreadsheet and is less or equal zero

    Can someone please help me to correct my formula because it does not work?

    Here the formula: =COUNTIFS(Data!C2:C24005,A17,Data!M2:M11149,"<=0")

    I need to insert the formula in column C (Findings tab) which counts the rows in Column M (tab named "Data") that equal A17 (Column A in "Findings" tab) and which are less or equal zero. In addition if I drag the formula down I want to only the values be entered in highlighted in blue cells in column C (SKUs With Zero Sales in "Findings" tab) and empty cells in not highlighted cells. I attached images of these two tabs: Data and Findings.
    Last edited by Neyme; 04-18-2014 at 01:03 PM.

  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,917

    Re: Count if a cell is equal to the cell in different spreadsheet and is less or equal zer

    Hi and welcome to the forum

    Apart from anything else that may be wrong, your criteria ranges all need to be teh same size, so either 24005 (Data!C2:C24005) OR 11149 (Data!M2:M11149)...the rows need to match
    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
    11-21-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    99

    Re: Count if a cell is equal to the cell in different spreadsheet and is less or equal zer

    Hi FDibbins,

    Thanks so much for the correction - I completely omitted the fact that cell ranges must be the same. Now the formula works, but I need to omit copying the formula to the cells that not in blue, so formula would return blank cell when copied down into the column. What additional formula parameters would you suggest?

  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,917

    Re: Count if a cell is equal to the cell in different spreadsheet and is less or equal zer

    Please do not upload a picture of your file...rather, upload a sample of your workbook, showing what data you are working with, a few samples of your expected outcome is (manually entered is ok) and how you arrived at that. (exclude sensitive info). Pictures are pretty much impossible to edit, and no-one wants to re-type your data for you Also, not all members can upload picture files (Company firewalls and stuff)

  5. #5
    Registered User
    Join Date
    11-21-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    99

    Re: Count if a cell is equal to the cell in different spreadsheet and is less or equal zer

    The formulas can be suggested without retyping the data and I thought it would be easier to see the cell references in order to suggest a formula.

    Anyways, thanks for your help!

  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,917

    Re: Count if a cell is equal to the cell in different spreadsheet and is less or equal zer

    If you want us to help you, then you need to help us as well - 1 way to do that is provide an example that we can work on

+ 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. Replies: 2
    Last Post: 09-23-2013, 01:09 AM
  2. [SOLVED] Formulas count cells that do NOT equal a cell
    By boll55 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-01-2012, 08:53 AM
  3. cell to equal a count of a row and colum
    By MYESKEY in forum Excel General
    Replies: 6
    Last Post: 10-13-2011, 01:59 PM
  4. when is equal not equal - cell reference results to blank cell
    By riwiseuse in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-10-2009, 09:44 AM
  5. lower and upper case equal on spreadsheet but not equal in VB
    By don in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-12-2005, 09:06 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