ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How to calculate text in incremental steps (https://www.excelbanter.com/excel-worksheet-functions/190632-how-calculate-text-incremental-steps.html)

Andrew

How to calculate text in incremental steps
 
Hi there. How do i use a formula in a cell to calculate the following
conditions:

Column A = "H" text
Column B = "W" text

It requires both text to appear on the same row before equating it with a
numerical value of 1. Whenever a new row is created, and both "H" and "W"
appears (in column A and B respectively) in the same row, the cell will have
a function to add up to the total number of times a row has both text.

Sorry if the above sounds silly but i'm pretty new to Excel.

Stefi

How to calculate text in incremental steps
 
=SUMPRODUCT(--(A2:A11="H"),--(B2:B11="W"))
Change 11 to max No of your actual rows or max Excel row (in Excel 2003 it
is 65536, in Excel 2007 you can refer to entire columns: A:A, B:B)

Regards,
Stefi


€˛andrew€¯ ezt Ć*rta:

Hi there. How do i use a formula in a cell to calculate the following
conditions:

Column A = "H" text
Column B = "W" text

It requires both text to appear on the same row before equating it with a
numerical value of 1. Whenever a new row is created, and both "H" and "W"
appears (in column A and B respectively) in the same row, the cell will have
a function to add up to the total number of times a row has both text.

Sorry if the above sounds silly but i'm pretty new to Excel.



All times are GMT +1. The time now is 03:54 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com