Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Nick
 
Posts: n/a
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
SteveG
 
Posts: n/a
Default Checking Two Fields


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

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Nick
 
Posts: n/a
Default 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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pivot table # of fields Dino Excel Discussion (Misc queries) 3 November 2nd 05 09:43 PM
Need pie chart with number of fields instead of info in fields Lloyd Pratt Charts and Charting in Excel 1 September 21st 05 11:56 PM
Number of dropdown fields in Excel is limited. I need more. How? UweVahrson Excel Discussion (Misc queries) 7 March 28th 05 05:10 PM
Formatting Fields Naguib Excel Worksheet Functions 1 January 26th 05 06:02 PM
Sorting Spreadsheet with Merged Fields Linda L Excel Discussion (Misc queries) 1 January 22nd 05 12:58 AM


All times are GMT +1. The time now is 02:00 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"