Function returning value with assigned binary value

tennentslager

New Member
Joined
Oct 5, 2018
Messages
2
I'm looking for a function that would return a value which has a binary characteristic assigned to it. More specifically, a function that would only return the values with 1 assigned to them (i.e. male employees) into the male employee list but disregard any female (i.e. 0) employees

[TABLE="width: 500"]
<tbody>[TR]
[TD]Employee[/TD]
[TD]Male[/TD]
[TD][/TD]
[TD][/TD]
[TD]Male employees[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD]John[/TD]
[/TR]
[TR]
[TD]Jane[/TD]
[TD]0[/TD]
[TD][/TD]
[TD][/TD]
[TD]Martin[/TD]
[/TR]
[TR]
[TD]Martin[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD]Fred[/TD]
[/TR]
[TR]
[TD]Marta[/TD]
[TD]0[/TD]
[TD][/TD]
[TD][/TD]
[TD]Jim[/TD]
[/TR]
[TR]
[TD]Fred[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD]Jack[/TD]
[/TR]
[TR]
[TD]Francesca[/TD]
[TD]0[/TD]
[TD][/TD]
[TD][/TD]
[TD]Johnie[/TD]
[/TR]
[TR]
[TD]Jim[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Jack[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Johnie[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Lara[/TD]
[TD]0[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

thanks a lot in advance!
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Is this what you are trying to do?
Formula in E2 is an array formula that must be entered with CTRL-SHIFT-ENTER. Drag formula down as needed.

If you have Excel ver. 2010 or later you can use the formula in G2 which doesn't require CTRL-SHIFT-ENTER. Copy this formula down as needed.
Excel Workbook
ABCDEFG
1EmployeeMaleMale employees6= # of Males
2John1JohnJohn
3Jane0MartinMartin
4Martin1FredFred
5Marta0JimJim
6Fred1JackJack
7Francesca0JohnieJohnie
8Jim1
9Jack1
10Johnie1
11Lara0
Sheet
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,170
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top