Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dan
 
Posts: n/a
Default Lookup and conditional formating

Trying to return the entire row from a corresponding sheet based on a range
of dates. How can this be accomplished?

The range is "today( ) to today( )-21". There will be multiple entries that
meet this criteria and will vary day by day.

The range of the data is E2:E500.

Thanks

Dan
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max
 
Posts: n/a
Default Lookup and conditional formating

"Dan" wrote:
Trying to return the entire row from a corresponding sheet
based on a range of dates. How can this be accomplished?
The range is "today( ) to today( )-21".
There will be multiple entries that
meet this criteria and will vary day by day.
The range of the data is E2:E500.


Here's a play using non-array formulas
which delivers exactly what you're after

A sample construct is available at:
http://www.savefile.com/files/6262913
Auto-Return Lines satisfying date range.xls

Assume source table in sheet: X, cols A to E,
headers in row1, data from row2 down,
dates in col E

In sheet: Y,

Identical headers placed in A1:E1

Put in A2:
=IF(ISERROR(SMALL($F:$F,ROW(A1))),"",
INDEX(X!A:A,MATCH(SMALL($F:$F,ROW(A1)),$F:$F,0)))
Copy A2 to E2

Put in F2:
=IF(AND(X!E2=TODAY()-21,X!E2<=TODAY(),X!E2<""),ROW(),"")

Select A2:F2, copy down to say, F500?
to cover the max expected extent of data in X
Format col E as date

Y will auto-return lines from X whose dates in col E satisfy:
"today( ) to today( )-21",
with all lines neatly bunched at the top
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max
 
Posts: n/a
Default Lookup and conditional formating

I've lightly disregarded your subject line which
doesn't quite gell with your actual intents expressed ..
(eg: there's no conditional formatting involved <g)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional Lookup AlanM Excel Discussion (Misc queries) 3 November 18th 05 04:55 PM
Conditional Formatting - Lookup Range murphyz Excel Discussion (Misc queries) 8 August 24th 05 03:55 PM
Return cell contents based on conditional lookup jarviscars Excel Worksheet Functions 15 August 5th 05 08:05 AM
Conditional Lookup on Multiple Criteria TBarker Excel Worksheet Functions 1 June 22nd 05 12:28 AM
conditional lookup JimVarney01 Excel Worksheet Functions 0 May 24th 05 11:40 PM


All times are GMT +1. The time now is 12:22 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"