ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Pulling data from 2 columns for a total (https://www.excelbanter.com/excel-worksheet-functions/8083-pulling-data-2-columns-total.html)

Urgent

Pulling data from 2 columns for a total
 
I have 2 columns, one labeled "unit" and the other "injury type". So there
are about 8 different units all numbered like "2W, 2E, 3W, 3E, etc." and the
injury types has "head, eye, hand, etc". I need help to create a formula,
for example that will pull out all the head injuries that happend in 2W. Is
this possible?



Dave R.

Not sure what you mean by "pull out" or "pulling" - but if you want to COUNT
them, see

http://www.xldynamic.com/source/xld.SUMPRODUCT.html

Since it's urgent, you can use

=SUMPRODUCT((A1:A10="2W")*(B1:B10="Head))

If you want to do something other than count, like pulling them to some
other range, post back.


"Urgent" wrote in message
...
I have 2 columns, one labeled "unit" and the other "injury type". So

there
are about 8 different units all numbered like "2W, 2E, 3W, 3E, etc." and

the
injury types has "head, eye, hand, etc". I need help to create a formula,
for example that will pull out all the head injuries that happend in 2W.

Is
this possible?





Frank Kabel

Hi
=SUMIF(A1:A100,"2W",B1:B100)

--
Regards
Frank Kabel
Frankfurt, Germany

Urgent wrote:
I have 2 columns, one labeled "unit" and the other "injury type". So
there are about 8 different units all numbered like "2W, 2E, 3W, 3E,
etc." and the injury types has "head, eye, hand, etc". I need help
to create a formula, for example that will pull out all the head
injuries that happend in 2W. Is this possible?




Frank Kabel

Hi
sorry, forget this use
=SUMPRODUCT(--(A1:A100=""w"),--(B1:B100="Head"))

--
Regards
Frank Kabel
Frankfurt, Germany

Frank Kabel wrote:
Hi
=SUMIF(A1:A100,"2W",B1:B100)


Urgent wrote:
I have 2 columns, one labeled "unit" and the other "injury type". So
there are about 8 different units all numbered like "2W, 2E, 3W, 3E,
etc." and the injury types has "head, eye, hand, etc". I need help
to create a formula, for example that will pull out all the head
injuries that happend in 2W. Is this possible?





All times are GMT +1. The time now is 06:55 PM.

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