+ Reply to Thread
Results 1 to 6 of 6

SUMPRODUCT formula

  1. #1
    Registered User
    Join Date
    02-05-2006
    Posts
    86

    SUMPRODUCT formula

    Hi
    I have a range of data going accross columns, the entries include, U, T, and F1 to F11.
    I have a requirement to count how many of a particular type of entry there are, this needs to be done in groups, e.g, counting attendance bonuses which are included in entries, F5,F6, F8 and F11, (i.e. in one cell i need to total how many F5's,6's,8's & 11's are in that row?!). i just cant quite seem to get the formula right to count them, could anybody please help me out?!

    cheers

    millsy
    Last edited by rjmills18; 10-03-2008 at 07:49 AM.

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,443
    Hi,

    Do you actually need sumproduct? Can't you do what you need with COUNTIF?
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Registered User
    Join Date
    02-05-2006
    Posts
    86
    i have used a nested countif, sometimes 8 out of the possible 11 'F' choices are in a group though, so i was just trying to tidy it up really
    thanks
    millsy

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    If your data range is A2:Z2 try

    =SUM(COUNTIF(A2:Z2,{"F5","F6","F8","F11"}))

    You can extend that to include any number of values

  5. #5
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,443
    You could do it with an array..

    {=COUNT(IF(A2:A6={"F5","F6","F8","F11"},1,""))}

    for example

  6. #6
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,443
    Or as you'd originally requested, by SUMPRODUCT

    =SUMPRODUCT((A2:A6={"F5","F6","F8","F11"})*1)

+ 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. Sumproduct formula problem
    By sclang in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-04-2008, 11:43 AM
  2. How to Structure Sumproduct formula
    By LisaG in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-28-2008, 09:55 AM
  3. SUMPRODUCT Formula
    By calli in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 12-07-2007, 03:15 PM
  4. Run If statement based on SheetName
    By yaju1120 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-29-2007, 06:02 PM
  5. Sumproduct formula issue
    By nfison in forum Excel General
    Replies: 5
    Last Post: 05-14-2007, 03:49 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