Hi All,
I have the following raw data:
<tbody>
</tbody>
Am trying to create a report as on 14th May 2018 where I need unit price corresponding to the nearest date.
Hence for “A” I must get unit price as 300 & “C” as 900 as that is last latest date (29/01/2018) & “R” as 490.
Am using “=IFERROR(VLOOKUP(F5,B2:D20,3,0), INDEX(C3:C20,MATCH(G2,D3:D20,-1)+1))”, however it gives me the very first value(unit price) for each material.
Any help is much appreciated.
Thanks
I have the following raw data:
A | B | C | F | G | ||
Material | Bill Date | Unit Price | 14/05/2018 | |||
A | 03/05/2018 | 323 | ||||
A | 10/05/2018 | 300 | Material | Unit Price | ||
A | 28/05/2018 | 300 | A | 323 | ||
A | 02/06/2018 | 278 | C | 1050 | ||
A | 16/06/2018 | 210 | R | 500 | ||
C | 21/12/2017 | 1050 | ||||
C | 22/12/2017 | 1050 | ||||
C | 27/12/2017 | 1050 | ||||
C | 29/01/2018 | 900 | ||||
C | 29/01/2018 | 900 | ||||
R | 29/03/2018 | 500 | ||||
R | 16/04/2018 | 490 | ||||
R | 19/04/2018 | 490 | ||||
R | 22/05/2018 | 470 | ||||
R | 25/05/2018 | 470 | ||||
R | 15/06/2018 | 450 | ||||
R | 20/06/2018 | 450 | ||||
R | 21/06/2018 | 450 |
<tbody>
</tbody>
Am trying to create a report as on 14th May 2018 where I need unit price corresponding to the nearest date.
Hence for “A” I must get unit price as 300 & “C” as 900 as that is last latest date (29/01/2018) & “R” as 490.
Am using “=IFERROR(VLOOKUP(F5,B2:D20,3,0), INDEX(C3:C20,MATCH(G2,D3:D20,-1)+1))”, however it gives me the very first value(unit price) for each material.
Any help is much appreciated.
Thanks