sourceminer
New Member
- Joined
- May 16, 2012
- Messages
- 5
Hi MrExcel,
I have a problem with an Index and Match if Statement.
Here is the problem I am trying to solve.
HR has provided me a list of everyones First Name (B) and Last Name (C), Not everyone has an account on the network.
So I have a separate list of First Name (A), Last Name (B) (with a few other columns (7 to be exact)).
I need to update a cell that states "Has Account" =1 (Yes) =0 (No)
Here is my Formula:
=IF(INDEX('AD Accounts'!$A$2:$G$172,MATCH(1,('AD Accounts'!$A:$A=Data!B10)*('AD Accounts'!$B:$B=Data!C10),0),7),1,0)
AD Accounts Tab
[TABLE="width: 375"]
<tbody>[TR]
[TD="class: xl63, width: 87"]First Name[/TD]
[TD="class: xl63, width: 119"]Last Name[/TD]
[TD="class: xl63, width: 169"]Display Name[/TD]
[/TR]
[TR]
[TD="class: xl63"]Ronald[/TD]
[TD="class: xl63"]Udell[/TD]
[TD="class: xl63"]Ronald Udell[/TD]
[/TR]
[TR]
[TD="class: xl63"]David[/TD]
[TD="class: xl63"][/TD]
[TD="class: xl63"]David Wood[/TD]
[/TR]
[TR]
[TD="class: xl63"]Dev[/TD]
[TD="class: xl63"]Smith[/TD]
[TD="class: xl63"]Dev Smith[/TD]
[/TR]
[TR]
[TD="class: xl63"]Fran[/TD]
[TD="class: xl63"]Cheng[/TD]
[TD="class: xl63"]Fran Cheng[/TD]
[/TR]
</tbody>[/TABLE]
Data Tab
[TABLE="width: 458"]
<tbody>[TR]
[TD="class: xl63, width: 79"]Birth Date[/TD]
[TD="class: xl63, width: 99"]First Name[/TD]
[TD="class: xl63, width: 140"]Last Name[/TD]
[TD="class: xl63, width: 140"]Is in AD[/TD]
[/TR]
[TR]
[TD="class: xl64"][/TD]
[TD="class: xl65"]Everardo[/TD]
[TD="class: xl65"]Flores Velazquez[/TD]
[TD="class: xl65"]0[/TD]
[/TR]
[TR]
[TD="class: xl64"][/TD]
[TD="class: xl65"]Pedro[/TD]
[TD="class: xl65"]Morales[/TD]
[TD="class: xl65"]0[/TD]
[/TR]
[TR]
[TD="class: xl64"][/TD]
[TD="class: xl65"]Reynaldo[/TD]
[TD="class: xl65"]Mendez[/TD]
[TD="class: xl65"]0[/TD]
[/TR]
[TR]
[TD="class: xl64"][/TD]
[TD="class: xl65"]Ronald[/TD]
[TD="class: xl65"]Udell[/TD]
[TD="class: xl65"]1[/TD]
[/TR]
</tbody>[/TABLE]
I have a problem with an Index and Match if Statement.
Here is the problem I am trying to solve.
HR has provided me a list of everyones First Name (B) and Last Name (C), Not everyone has an account on the network.
So I have a separate list of First Name (A), Last Name (B) (with a few other columns (7 to be exact)).
I need to update a cell that states "Has Account" =1 (Yes) =0 (No)
Here is my Formula:
=IF(INDEX('AD Accounts'!$A$2:$G$172,MATCH(1,('AD Accounts'!$A:$A=Data!B10)*('AD Accounts'!$B:$B=Data!C10),0),7),1,0)
AD Accounts Tab
[TABLE="width: 375"]
<tbody>[TR]
[TD="class: xl63, width: 87"]First Name[/TD]
[TD="class: xl63, width: 119"]Last Name[/TD]
[TD="class: xl63, width: 169"]Display Name[/TD]
[/TR]
[TR]
[TD="class: xl63"]Ronald[/TD]
[TD="class: xl63"]Udell[/TD]
[TD="class: xl63"]Ronald Udell[/TD]
[/TR]
[TR]
[TD="class: xl63"]David[/TD]
[TD="class: xl63"][/TD]
[TD="class: xl63"]David Wood[/TD]
[/TR]
[TR]
[TD="class: xl63"]Dev[/TD]
[TD="class: xl63"]Smith[/TD]
[TD="class: xl63"]Dev Smith[/TD]
[/TR]
[TR]
[TD="class: xl63"]Fran[/TD]
[TD="class: xl63"]Cheng[/TD]
[TD="class: xl63"]Fran Cheng[/TD]
[/TR]
</tbody>[/TABLE]
Data Tab
[TABLE="width: 458"]
<tbody>[TR]
[TD="class: xl63, width: 79"]Birth Date[/TD]
[TD="class: xl63, width: 99"]First Name[/TD]
[TD="class: xl63, width: 140"]Last Name[/TD]
[TD="class: xl63, width: 140"]Is in AD[/TD]
[/TR]
[TR]
[TD="class: xl64"][/TD]
[TD="class: xl65"]Everardo[/TD]
[TD="class: xl65"]Flores Velazquez[/TD]
[TD="class: xl65"]0[/TD]
[/TR]
[TR]
[TD="class: xl64"][/TD]
[TD="class: xl65"]Pedro[/TD]
[TD="class: xl65"]Morales[/TD]
[TD="class: xl65"]0[/TD]
[/TR]
[TR]
[TD="class: xl64"][/TD]
[TD="class: xl65"]Reynaldo[/TD]
[TD="class: xl65"]Mendez[/TD]
[TD="class: xl65"]0[/TD]
[/TR]
[TR]
[TD="class: xl64"][/TD]
[TD="class: xl65"]Ronald[/TD]
[TD="class: xl65"]Udell[/TD]
[TD="class: xl65"]1[/TD]
[/TR]
</tbody>[/TABLE]