+ Reply to Thread
Results 1 to 3 of 3

Checking Two Fields

  1. #1
    Nick
    Guest

    Checking Two Fields

    Hello,

    I have a spreadsheet which lists users and has some info about the user.

    Example of the field names:
    name state gradelevel

    I need something that will basically say "if state=NJ and gradelevel=12" add
    1 to NJGRADE12TOTAL field. So I will know after all the students are
    entered, how many grade 12 NJ students we have.

    I hope that's clear...thanks in advance for your help/suggestions!

  2. #2
    Valued Forum Contributor
    Join Date
    03-25-2004
    Location
    Boston, MA US
    Posts
    1,094
    Assuming your State is in A2:A7 and Grade Level in B2:B7 for your total count enter:

    =SUMPRODUCT((A2:A7="NJ")*(B2:B7=12))

    HTH


    Steve

  3. #3
    Nick
    Guest

    Re: Checking Two Fields

    Hey Steve! Thanks a lot! Saved me!!!



    "SteveG" wrote:

    >
    > Assuming your State is in A2:A7 and Grade Level in B2:B7 for your total
    > count enter:
    >
    > =SUMPRODUCT((A2:A7="NJ")*(B2:B7=12))
    >
    > HTH
    >
    >
    > Steve
    >
    >
    > --
    > SteveG
    > ------------------------------------------------------------------------
    > SteveG's Profile: http://www.excelforum.com/member.php...fo&userid=7571
    > View this thread: http://www.excelforum.com/showthread...hreadid=523210
    >
    >


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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