jadounnaber
New Member
- Joined
- Mar 22, 2013
- Messages
- 1
Hello,
I was searching for a solution to my question; however, I'm not experienced with the Match or Indirect formulas in excel and i'm not quite sure how to write the formula. Below is what I am trying to do:
1) I have two sheets, Sheet 1 and Sheet 2
2) cells in sheet 1 will pull values from sheet 2
3) Sheet 1 has 4 columns:
Column A: Employee ID
Column B: November 2012 Hours
Column C: December 2012 Hours
Column D: January 2013 Hours
4) Sheet 2 has 3 columns
Column A: Employee ID
Column B: YYYYMM in the form 201211 or 201212 or 201301
Column c: Hours
5) I want cell B2 in SHeet 1 to vlookup the Employee ID in cell A1 in Sheet 1 from sheet 2. Then pull value of column C from Sheet 2, when Column B from Sheet 2 equals (201211).
6) In the table Sheet 1) the value in red is what I ultimately want excel to do
Below is how both sheets look like:
Sheet 1)
[TABLE="class: grid, width: 500"]
<TBODY>[TR]
[TD]Employee ID[/TD]
[TD]November 2012 Hours[/TD]
[TD]December 2012 Hours[/TD]
[TD]January 2013 Hours[/TD]
[/TR]
[TR]
[TD]25415[/TD]
[TD]140[/TD]
[TD]150[/TD]
[TD]160[/TD]
[/TR]
[TR]
[TD]65978[/TD]
[TD]64[/TD]
[TD]80[/TD]
[TD][/TD]
[/TR]
</TBODY>[/TABLE]
Sheet 2)
[TABLE="class: grid, width: 500"]
<TBODY>[TR]
[TD]Employee ID[/TD]
[TD]YYYYMM[/TD]
[TD]Hours Worked[/TD]
[/TR]
[TR]
[TD]25415[/TD]
[TD]201211[/TD]
[TD]140[/TD]
[/TR]
[TR]
[TD]25415[/TD]
[TD]201212[/TD]
[TD]150[/TD]
[/TR]
[TR]
[TD]25415[/TD]
[TD]201312[/TD]
[TD]160[/TD]
[/TR]
[TR]
[TD]65978[/TD]
[TD]201211[/TD]
[TD]64[/TD]
[/TR]
[TR]
[TD]65978[/TD]
[TD]201212[/TD]
[TD]80[/TD]
[/TR]
</TBODY>[/TABLE]
Thank you!
I was searching for a solution to my question; however, I'm not experienced with the Match or Indirect formulas in excel and i'm not quite sure how to write the formula. Below is what I am trying to do:
1) I have two sheets, Sheet 1 and Sheet 2
2) cells in sheet 1 will pull values from sheet 2
3) Sheet 1 has 4 columns:
Column A: Employee ID
Column B: November 2012 Hours
Column C: December 2012 Hours
Column D: January 2013 Hours
4) Sheet 2 has 3 columns
Column A: Employee ID
Column B: YYYYMM in the form 201211 or 201212 or 201301
Column c: Hours
5) I want cell B2 in SHeet 1 to vlookup the Employee ID in cell A1 in Sheet 1 from sheet 2. Then pull value of column C from Sheet 2, when Column B from Sheet 2 equals (201211).
6) In the table Sheet 1) the value in red is what I ultimately want excel to do
Below is how both sheets look like:
Sheet 1)
[TABLE="class: grid, width: 500"]
<TBODY>[TR]
[TD]Employee ID[/TD]
[TD]November 2012 Hours[/TD]
[TD]December 2012 Hours[/TD]
[TD]January 2013 Hours[/TD]
[/TR]
[TR]
[TD]25415[/TD]
[TD]140[/TD]
[TD]150[/TD]
[TD]160[/TD]
[/TR]
[TR]
[TD]65978[/TD]
[TD]64[/TD]
[TD]80[/TD]
[TD][/TD]
[/TR]
</TBODY>[/TABLE]
Sheet 2)
[TABLE="class: grid, width: 500"]
<TBODY>[TR]
[TD]Employee ID[/TD]
[TD]YYYYMM[/TD]
[TD]Hours Worked[/TD]
[/TR]
[TR]
[TD]25415[/TD]
[TD]201211[/TD]
[TD]140[/TD]
[/TR]
[TR]
[TD]25415[/TD]
[TD]201212[/TD]
[TD]150[/TD]
[/TR]
[TR]
[TD]25415[/TD]
[TD]201312[/TD]
[TD]160[/TD]
[/TR]
[TR]
[TD]65978[/TD]
[TD]201211[/TD]
[TD]64[/TD]
[/TR]
[TR]
[TD]65978[/TD]
[TD]201212[/TD]
[TD]80[/TD]
[/TR]
</TBODY>[/TABLE]
Thank you!