ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Excel Formula Needed (https://www.excelbanter.com/excel-worksheet-functions/202460-excel-formula-needed.html)

Barb Manjarres

Excel Formula Needed
 
I would like to know how to make excel check an entire column line by line
for a particular name and if the name exists I want it to go to another row
and count up all the "R" that are there for that name. Does anyone know how
to do this?
--
Barb

T. Valko

Excel Formula Needed
 
Try something like this:

=SUMPRODUCT(--(A1:A10="Barb"),--(B1:B10="R"))

Better to use cells to hold the criteria:

D1 = Barb
E1 = R

=SUMPRODUCT(--(A1:A10=D1),--(B1:B10=E1))

Note that with SUMPRODUCT you *can't* use entire columns as range references
unless you're using Excel 2007.

--
Biff
Microsoft Excel MVP


"Barb Manjarres" wrote in message
...
I would like to know how to make excel check an entire column line by line
for a particular name and if the name exists I want it to go to another
row
and count up all the "R" that are there for that name. Does anyone know
how
to do this?
--
Barb




MartinW[_2_]

Excel Formula Needed
 
Hi Barb,

SUMIF is probably the function you are looking,
or maybe SUMPRODUCT.

Take a look at this site for info on the use of both functions.
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

HTH
Martin



"Barb Manjarres" wrote in message
...
I would like to know how to make excel check an entire column line by line
for a particular name and if the name exists I want it to go to another
row
and count up all the "R" that are there for that name. Does anyone know
how
to do this?
--
Barb





All times are GMT +1. The time now is 07:14 PM.

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