Formula for counting, when two columns agree in a row.

Asked By Ron Miller
08-Sep-10 11:17 PM
Earn up to 0 extra points for answering this tough question.
 I'm wondering if there is a formula for counting something like this:

   A       B        C            D   E
1   W     21    Columbus, OH    20    H
2   L      10    Columbus, OH       17   H
3  W     23   Los Angeles, CA   10   A
4  W     10    Columbus, OH    9   H
5   L      3     Iowa City, IA   10   A        W for win, L for loss, H for Home, A for Away

Count when Column A is W and Column C is Columbus (or Column E is H), I know the answer is two , but hw can I set up a formula to get the answer. I could change the w to an L, also change the H to an A

Thank you,
Ron Miller

  re: Formula for counting, when two columns agree in a row.

iHelper MS replied to Ron Miller
08-Sep-10 11:38 PM
Hi Ron,

Please see if this helps.



The formula in C7 is:

=SUMPRODUCT((A1:A5="W")*(E1:E5="H"))

You can make changes to the range and values if required.

Thanks,
-iHelperMS

  re: Formula for counting, when two columns agree in a row.

Goniey N replied to Ron Miller
09-Sep-10 02:38 AM
-- You Can Use Two Formula :


=SUMPRODUCT(((A1:A5="W")*(C1:C5="Columbus, OH")));
 
Or
 
=SUMPRODUCT(((A1:A5="W")*(E1:E5="H")));


-- See Below Images :

-- First Formula....





-- Second Formula....




-- Same Result For Both Formula...



-- It Will Work 100%....

-- Help this Help You....

  re: Formula for counting, when two columns agree in a row.

Ron Miller replied to iHelper MS
09-Sep-10 10:53 AM
Thank you for your help!
  re: Formula for counting, when two columns agree in a row.
Ron Miller replied to Goniey N
09-Sep-10 10:54 AM
Thank you for your help!
Create New Account
Microsoft Excel Microsoft Excel (full name Microsoft Office Excel ) is a spreadsheet application written and distributed by Microsoft for Microsoft Windows and Mac OS X . It features calculation, graphing tools spreadsheet for these platforms, especially since version 5 in 1993. Excel forms part of Microsoft Office . The current versions are Microsoft Office Excel 2010 for
Microsoft Excel Microsoft Excel (full name Microsoft Office Excel ) is a spreadsheet application written and distributed by Microsoft for Microsoft Windows and Mac OS X . It features calculation, graphing tools spreadsheet for these platforms, especially since version 5 in 1993. Excel forms part of Microsoft Office . The current versions are Microsoft Office Excel 2010 for
Microsoft.Office.Interop.Excel Hi, I am using Microsoft.Office.Interop.Excel to export the System.data Datatable values to the MS Excel. using Excel = Microsoft.Office.Interop.Excel; Excel.Application App = null Excel._Workbook WB = null; Excel._Worksheet WS = null; / / Start Excel and
About Excel Formula Hi, I would like to know excel formula Concatenate function. Please explain me. In Excel, the Concatenate function allows you to join 2 or more up to 30 strings that are joined together. Applies To: • Excel 2007, Excel 2003, Excel XP, Excel 2000 For example: Let's take a look at an example: Based on the Excel spreadsheet above: = Concatenate(A1, A2) would return "Alphabet" = Concatenate("Tech
how to show developer tab in microsoft office Excel Do you want to develop in microsoft office environment? Let say you want to add buttons in microsoft excel, you can use the developer tab to create a vba applications. Developer tab is hidden by default in microsoft office. You can show this tab in less than a minute. Here's how. 1. Open Microsoft Excel. 2. Click the microsoft excel orb(the circle on the top of excel). 3. Click
Microsoft Excel Advice My boss has asked me to become a Microsoft Excel expert by the end of the summer. I would call and / or formulas. Any help here would be great. Thanks. ExcelExcel 2003 Formulas by John Walkenbach • Excel 2003 Bible by John Walkenbach • Excel Charts by John Walkenbach Programming, macros and VBA Excel VBA Programming for Dummies by John Walkenbach • Professional Excel Development: The Definitive Guide to Developing Applications Using Microsoft Excel
excel formula or excel VBA code to Retrieve number from a text mixed with number Hi, Is there an excel formula or excel VBA code to retrieve numbers from a text mixed with 7, 8, 9}, 0)))-1, "")+0 Paste that in the formula bar to accept. Then hit CTRL+SHIFT+ENTER to make array. Had to do a little research, so the exact formula is from: http: / / www.excelforum.com / excel-worksheet-functions / 630231-extract-number-from-alphanumeric-string.html The CTRL+SHIFT+ENTER tip came from: http: / / office.microsoft.com / en-us / excel / HA011549011033.aspx The cell number that
Know Microsoft Excel Version installed in the System from .Net C# This explains how to find the version of the Microsoft Excel that has been installed in the system. Use the namespace Microsoft.Win32 to access Registry from .Net C# and following code snipper gives the version of the Excel installed in the system. using Microsoft.Win32 ; private string getExcelVersion() { RegistryKey baseKey = Registry . ClassesRoot ; RegistryKey subKey baseKey. OpenSubKey ( @"Excel. Application \ CurVer" ); return subKey. GetValue ( string . Empty ).ToString(); } Related FAQs location of the Strong Name Generator Tool, sn.exe in Microsoft .Net 4.0 version when Visual Studio 2010 is installed. When was the first version of Microsoft SQL Server released? This explains the first version of SQL