Select only rows close to specific date

Fjeldgaard

New Member
Joined
Apr 19, 2020
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have a database in Excel, where Column A have 100 specific values, that are updated each month, and column B have a price, and Column C have the date which the values have been updated. But some month not all values are updated may only 60 or so.

I need a way to get the values closest to a choosen date, as I sometimes have to make som control of earlier data.

My guess was to to have a cell where a could input a given date, and then Excel will find the unique values closest to the given date and before it. But I can not find a way to due this. I would like it to be formulas, but macros could also be okay, if it couldn't be done with formulas without the sheet being to heavy.

I hope someone can help?
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
By closest you mean if you give 10.02.2020 it should give 9.02.2020 and 11.02.2020 or only 9.02.2020 because its before it?
 
Upvote 0
Fx. if I have a dataset like the below, and my input date is 2020-03-01, then the price values 370.00 and 110.00 should be the one showed.

IDPriceDate
105350.002020-01-15
21099.002020-01-15
105340.002020-02-18
105370.002020-02-29
210110.002020-02-29
105330.002020-03-31
 
Upvote 0

Forum statistics

Threads
1,214,922
Messages
6,122,281
Members
449,075
Latest member
staticfluids

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top