find data based on a given date and return values to a table

bhalbach

Board Regular
Joined
Mar 15, 2018
Messages
221
Office Version
  1. 2016
Platform
  1. Windows
I have a set of data on sheet1 that I would like to look through the dates in column S and return ONLY the values to sheet2 that are >= the date I specify on sheet2 A1. There will be multiple results.

Any help would be appreciated.
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
The other question I had was can the results be put in a Table that expands and shrinks to accommodate the results?
I actually mis-read this earlier and thought you were talking about making the original data into a table so had the following suggestion. However, the results formula will need to be copied down as far as you might ever need, as with Toadstool's formula. The only real difference (not a great advantage) with this one is that you would not need to make any allowance for row numbers in the original data sheet if that was made into a table.

Table name here is Table1

bhalbach.xlsm
ABCDEFGHIJKLMNOPQRSTU
1Hdr1Hdr2Hdr3Hdr4Hdr5Hdr6Hdr7Hdr8Hdr9Hdr10Hdr11Hdr12Hdr13Hdr14Hdr15Hdr16Hdr17Hdr18DatesHdr20Hdr21
2905738777722194376726801326338249191/01/202057
3308038438929933521288959341488610543/03/20208972
4757453659189955997914711584164473694/04/20202911
5293716973736984491791527631669993985/05/20206453
693723982965242595154341543655124226/06/20209574
7344654353145886548224142623113890327/07/20201218
Sheet1


The following formula would be enetered into B2 and copied across and down.
Excel Formula:
=IFERROR(INDEX(Table1[Hdr14],AGGREGATE(15,6,(ROW(Table1[Hdr14])-ROW(Table1[#Headers]))/(Table1[[Dates]:[Dates]]>=$A$1),ROWS(B$2:B2))),"")

bhalbach.xlsm
ABCDEFGH
14/04/2020Hdr14Hdr15Hdr16Hdr17Hdr18DatesHdr20
284164473694/04/202029
31669993985/05/202064
443655124226/06/202095
523113890327/07/202012
6       
Sheet2
 
Upvote 0

Forum statistics

Threads
1,216,178
Messages
6,129,325
Members
449,501
Latest member
Amriddin

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