pacerfan07
New Member
- Joined
- Jun 2, 2017
- Messages
- 20
I have the following on Sheet1 below. On Sheet2 I just have everyone's Name listed once in column A (John, Kate, and Jim). In column B of Sheet2 I would like to look at the name from column A and see if it matches column A on Sheet1. If it does, then lookup the 2nd most recent occurrence in column B and return the corresponding values in column C. For example John should return 18.
Thanks!
[TABLE="class: cms_table_grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]John[/TD]
[TD]11/1/17[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]John[/TD]
[TD]11/2/17[/TD]
[TD]15[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Kate[/TD]
[TD]11/1/17[/TD]
[TD]14[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]John[/TD]
[TD]11/3/17[/TD]
[TD]18[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Kate[/TD]
[TD]11/2/17[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]Jim[/TD]
[TD]11/1/17[/TD]
[TD]25[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]Kate[/TD]
[TD]11/3/17[/TD]
[TD]30[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]Kate[/TD]
[TD]11/4/17[/TD]
[TD]40[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]Jim[/TD]
[TD]11/1/17[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]John[/TD]
[TD]11/4/17[/TD]
[TD]60[/TD]
[/TR]
</tbody>[/TABLE]
Thanks!
[TABLE="class: cms_table_grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]John[/TD]
[TD]11/1/17[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]2[/T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