karthick019
New Member
- Joined
- Jul 15, 2011
- Messages
- 10
Dear all,
My question is based on the sample table below,
[TABLE="width: 219"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]Part[/TD]
[TD]Date[/TD]
[TD]Price[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]01/01/2010[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]01/05/2010[/TD]
[TD]200[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]01/01/2011[/TD]
[TD]300[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]01/03/2012[/TD]
[TD]400[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]01/04/2013[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]01/04/2010[/TD]
[TD]600[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]01/06/2011[/TD]
[TD]700[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]01/08/2012[/TD]
[TD]800[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]01/09/2012[/TD]
[TD]900[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]01/04/2013[/TD]
[TD]100[/TD]
[/TR]
</tbody>[/TABLE]
I need a formula with 2 criteria's where part number is matched directly and i have a date and need to find the closest minimum range and update the price for the same.
Eg,
When I enter Part number as "A" and Date as "05/09/2012". the price should be matched as below,
(Part=A) & (Date = closest minimum date) ie. "01/03/2012" in this case.
[TABLE="width: 238"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]Part[/TD]
[TD]Date[/TD]
[TD]Price[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]05/09/2012[/TD]
[TD]400[/TD]
[/TR]
</tbody>[/TABLE]
I tried searching for this but I am left with no answers. Help me out excel experts.
My question is based on the sample table below,
[TABLE="width: 219"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]Part[/TD]
[TD]Date[/TD]
[TD]Price[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]01/01/2010[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]01/05/2010[/TD]
[TD]200[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]01/01/2011[/TD]
[TD]300[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]01/03/2012[/TD]
[TD]400[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]01/04/2013[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]01/04/2010[/TD]
[TD]600[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]01/06/2011[/TD]
[TD]700[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]01/08/2012[/TD]
[TD]800[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]01/09/2012[/TD]
[TD]900[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]01/04/2013[/TD]
[TD]100[/TD]
[/TR]
</tbody>[/TABLE]
I need a formula with 2 criteria's where part number is matched directly and i have a date and need to find the closest minimum range and update the price for the same.
Eg,
When I enter Part number as "A" and Date as "05/09/2012". the price should be matched as below,
(Part=A) & (Date = closest minimum date) ie. "01/03/2012" in this case.
[TABLE="width: 238"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]Part[/TD]
[TD]Date[/TD]
[TD]Price[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]05/09/2012[/TD]
[TD]400[/TD]
[/TR]
</tbody>[/TABLE]
I tried searching for this but I am left with no answers. Help me out excel experts.