JackDanIce
Well-known Member
- Joined
- Feb 3, 2010
- Messages
- 9,922
- Office Version
- 365
- Platform
- Windows
Hi,
I have a table as follows:
Date Source Rate
06/04/1990 Property 18%
06/04/1990 Securities 10%
06/04/2016 Property 11%
06/04/2016 Securities 8%
A client provides values of date and source and I need to return the appropriate rate where client date is >= nearest date match in table, against the specific source
If A2 has a value of 30/03/2018, then this returns 4:
but source is "Property", so need to return 3, but unsure how
I've tried to use VLOOKUP as:
Where J12:J16 is a key of <date>&<source> but in this example it returns 18% instead of 11%, despite A2 being closer to 06/04/2016 than 06/04/1990
Any ideas how to return the correct rate based on input of date and source?
TIA,
Jack</date>
I have a table as follows:
Date Source Rate
06/04/1990 Property 18%
06/04/1990 Securities 10%
06/04/2016 Property 11%
06/04/2016 Securities 8%
A client provides values of date and source and I need to return the appropriate rate where client date is >= nearest date match in table, against the specific source
If A2 has a value of 30/03/2018, then this returns 4:
Code:
=MATCH(A2,$K$12:$K$16,1)
I've tried to use VLOOKUP as:
Code:
=VLOOKUP(A2&B2,$J$12,$K$16,2,1)
Any ideas how to return the correct rate based on input of date and source?
TIA,
Jack</date>
Last edited: