Retrieving multiple values that are greater than a certain value

spillon

New Member
Joined
Nov 28, 2017
Messages
1
Hi,

I need to pull a number of names where the dates in a corresponding column are greater than today.

E.g.
Column AColumn B
1NameDate
2Tom5/4/17
3Mike30/6/18
4Jim3/3/16
5Peter8/1/17
6Steven9/11/13
7Melanie16/12/17
8Joe19/10/14
9Stephanie25/9/17
10Michelle29/2/15

<tbody>
</tbody>

I know the following array formula:
=IF(ISERROR(INDEX($A$1:$B$10,SMALL(IF($B:$B=X,ROW($B:$B)),ROW(1:1)),1)),"",INDEX($A$1:$B$10,SMALL(IF($B:$B=X,ROW($B:$B)),ROW(1:1)),1))

However for some reason it does not appear to work with greater than (>) e.g.
=IF(ISERROR(INDEX($A$1:$B$10,SMALL(IF($B:$B>today(),ROW($B:$B)),ROW(1:1)),1)),"",INDEX($A$1:$B$10,SMALL(IF($B:$B>today(),ROW($B:$B)),ROW(1:1)),1))

Is anyone able to help with this?

Thanks.
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Hi,

Did you enter it as an array formula? So confirmed it with Ctrl-Shft-Enter?
 
Upvote 0
NameDate2
Tom4/5/2017Mike
Mike6/30/2018Melanie
Jim3/3/2016
Peter1/8/2017
Steven11/9/2013
Melanie12/16/2017
Joe10/19/2014
Stephanie9/25/2017
Michelle2/28/2015

<tbody>
</tbody>

In D1 enter:

=COUNTIFS(B2:B10,">"&TODAY())

In D2 control+shift+enter, not just enter, and copy down:

=IF(ROWS($D$2:D2)>$D$1,"",INDEX($A$2:$A$10,SMALL(IF($B$2:$B$10>TODAY(),ROW($A$2:$A$10)-ROW($A$2)+1),ROWS($D$2:D2))))
 
Upvote 0
Hi

Did you try using advanced filter?

Try the following:

Say the data in your example is placed on cells A1:B10
- Insert the following in cell E2.... =">"&TEXT(TODAY(),"dd/mm/yyyy")
- Click on advanced filter
- click Copy to another location
- List range: $A$1:$B$10
- Criteria range $E$1:$E$2
- Copy to range $A$15:$B$15

I believe the above is simple.

HTH

Ahmed Mirza
 
Upvote 0
I missed to mention... step 1, Insert the heading Date in cell E1
 
Upvote 0

Forum statistics

Threads
1,215,148
Messages
6,123,301
Members
449,095
Latest member
Chestertim

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