Identification of missing value for gender column based on previous known values

absherzad

New Member
Joined
Jun 19, 2017
Messages
42
Hi everyone,
Here is my question:
I have two columns "Name", and "Gender". There are duplicate names, for some value for gender is specified, but for some the value is missing.
The goal is to identify the missing ones based on other occurrences of the same name where the gender value is available. Either Excel or DAX solutions are appreciate.
A screenshot is attached for better clarification.
m3S19

Imgur: The most awesome images on the Internet
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Welcome to Mr Excel

Maybe this...

E2 copied down
=IF(COUNTIFS($A$2:$A$12,D2,$B$2:$B$12,"?*"),LOOKUP(2,1/(($A$2:$A$12=D2)*(LEN($B$2:$B$12)>0)),$B$2:$B$12),"")

Hope this helps

M.
 
Last edited:
Upvote 0
Remark
Adjust the ranges in the formula above.
According the picture your data are in rows 2:26. So use A2:A26 and B2:B26

M.
 
Upvote 0

Forum statistics

Threads
1,215,220
Messages
6,123,697
Members
449,117
Latest member
Aaagu

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