+ Reply to Thread
Results 1 to 3 of 3

Counting how many live product per post code. Countifs function??

  1. #1
    Registered User
    Join Date
    11-03-2020
    Location
    Manchester
    MS-Off Ver
    MS Excel 365
    Posts
    44

    Counting how many live product per post code. Countifs function??

    Hi Guys

    I am looking for a formula that works out how many products live and dead on a post code - see example attached

    I guess this calls for countifs function, but I can't get it right. Your support is very much appreciated

    Many Thanks
    MH Hersi
    Attached Files Attached Files

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,682

    Re: Counting how many live product per post code. Countifs function??

    You might want to try this in E2... =COUNTIFS($L$2:$L$17,$B2,$J$2:$J$17,TRIM(E$1)), you can drag it right and down.
    you have an extra space in E2 that isn't in J16 or J17. If you remove the spaces in E2 and F2 you can drop the trim function.

    that is why your countifs function was likely returning 0. try =E2=J16 and you'll see it returns false.
    try =Len(e2) and it will return 5 while =LEN(J16) will return 4.
    Last edited by Sam Capricci; 07-15-2021 at 07:31 AM.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Registered User
    Join Date
    11-03-2020
    Location
    Manchester
    MS-Off Ver
    MS Excel 365
    Posts
    44

    Re: Counting how many live product per post code. Countifs function??

    Excellent this has worked. Thank you very much indeed

+ 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. Sum Product - Counting Function based on three criteria
    By UHD in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-10-2019, 11:36 AM
  2. COUNTIFS Function Counting More (or Less) than it Should
    By queenjauvier in forum Excel General
    Replies: 1
    Last Post: 01-18-2018, 09:22 PM
  3. [SOLVED] 4 digit code for similar product, new product unique code
    By unclejemima in forum Excel General
    Replies: 47
    Last Post: 06-06-2013, 01:02 PM
  4. [SOLVED] Need Function that will find ordered product, and display the product code in a 2nd workbk
    By rollerden in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-21-2012, 08:52 AM
  5. Replies: 3
    Last Post: 03-01-2012, 06:17 AM
  6. Excel 2007 : IF Function failing on product code
    By smudgepost in forum Excel General
    Replies: 7
    Last Post: 06-10-2010, 10:26 AM
  7. Product Function in VBA Code.
    By dgo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-08-2008, 11:00 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