Need to Display Entire Row on Another Sheet by Date

rtroehrig

New Member
Joined
May 2, 2018
Messages
49
Office Version
  1. 365
Platform
  1. Windows
I need to be able to copy all rows on Sheet 1 in which today's date exists in Column C onto Sheet 2 and pack them at the top. The dates in Column C do not run in order as the "due dates" vary depending on the project, and this is where I run into a problem. The functions I've used in the past for this get buggy when the dates in the column are out of order.

For example, this works great when pulling a range of dates that are entered in order, but not so much if they are out of order:
Rich (BB code):
{=(COUNT(Grease!E:E)+1)-COUNT(IF((INT(INDIRECT("Grease!E2:E"&MATCH(10^308,Grease!E:E)))>=INT(B1))*(INT(INDIRECT("Grease!E2:E"&MATCH(10^308,Grease!E:E)))<=INT(B2)),INDIRECT("Grease!L2:L"&MATCH(10^308,Grease!E:E))))}
Coupled with:
Rich (BB code):
=IF(INDEX(Grease!A:A,$C$1+ROWS($A$4:A4))=0,"",INDEX(Grease!A:A,$C$1+ROWS($A$4:A4)))

Any ideas? Basically I want whatever is due for today, and today only, to display on Sheet 2.
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
How about
=FILTER(Grease!A2:P1000,Grease!C2:C1000=TODAY(),"Nothing")
 
Upvote 0
I was overthinking it. I got it to work with the formula below. Just copy down and across and change cell references as needed:

=IFERROR(INDEX(Sheet4!$A:$A,AGGREGATE(15,6,ROW(Sheet4!$H:$H)/(Sheet4!$H:$H=TODAY()),ROWS(A$3:A3))),"")
 
Upvote 0
Ok new problem, I didn't realize they were using a calculation to determine the date that needs to be referenced. That throws a kink into this.

The entry sheet looks something like this:
Playground.xlsm
ABCDEFGHI
1Lot NumberProduct CodeProduct NameDate & Time InTestTest TimeDate & Time OutResultsInitials
2123456101010Product A5/5/20 10:08 AMTest 220.55/6/20 6:38 AM265RR
3123456101010Product A5/5/20 10:08 AMTest 3100.255/9/20 2:23 PM265RR
4123456101010Product A5/5/20 10:08 AMTest 12.755/5/20 12:53 PM265RR
5123456101010Product A5/5/20 10:08 AMTest 12.755/5/20 12:53 PM265RR
6123456101010Product A5/5/20 10:08 AMTest 12.755/5/20 12:53 PM265RR
7123456101010Product A5/5/20 10:08 AMTest 42255/14/20 7:08 PM265RR
8123456101010Product A5/5/20 10:08 AMTest 12.755/5/20 12:53 PM265RR
9123456101010Product A5/5/20 10:08 AMTest 56.55/5/20 4:38 PM265RR
10123456101010Product A5/5/20 10:08 AMTest 12.755/5/20 12:53 PM265RR
Sheet4
Cell Formulas
RangeFormula
G2:G10G2=D2+(F2/24)


I'm just blanking on how to get the =Today() in my previously posted formula to read the Date & Time Out column properly. And yes, I have adjusted the H in the previous formula to G.
 
Upvote 0
I'm still trying to figure this one out if anybody has any ideas.
 
Upvote 0
Did my suggestion work for your initial question?
 
Upvote 0
Did my suggestion work for your initial question?

It's kicking back with "That function isn't valid."

I would imagine I'd still run into the same issue with the reference to =TODAY() since the column that I'm trying to reference contains a cell formula.

Sheet 4 is posted above and then Sheet 5 is currently running:
=IFERROR(INDEX(Sheet4!$G:$G,AGGREGATE(15,6,ROW(Sheet4!$G$2:$G$1000)/(Sheet4!$G$2:$G$1000=TODAY()),ROWS(G$2:G2))),"")

If I type today's date into column G, it works perfectly. But it won't pull the cells in which G is set by the cell formula.
 
Upvote 0
It would have nice if you could have told me that at the time, rather than just ignoring me. ;)

Try
=IFERROR(INDEX(Sheet4!$G:$G,AGGREGATE(15,6,ROW(Sheet4!$G$2:$G$1000)/(int(Sheet4!$G$2:$G$1000)=TODAY()),ROWS(G$2:G2))),"")
 
Upvote 0
It would have nice if you could have told me that at the time, rather than just ignoring me. ;)

Try
=IFERROR(INDEX(Sheet4!$G:$G,AGGREGATE(15,6,ROW(Sheet4!$G$2:$G$1000)/(int(Sheet4!$G$2:$G$1000)=TODAY()),ROWS(G$2:G2))),"")

Sorry about that. I got overly excited thinking I had it figured out and neglected to respond to your post.

I was clearly overthinking it again as I tried numerous things and never thought about something as simple as using the integer function.

This looks to have solved my problem. Your assistance is much appreciated, as always.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,875
Messages
6,122,039
Members
449,063
Latest member
ak94

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