Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Match Function And Display Row Number

Hello -

I have a data set similar to below

Date Field 1 Field 2 Field 3
1/1/09 x x o
1/2/09 o x x
1/3/09 o o x

I have another field which auto-populates today's date when the workbook is
refreshed. The formula for that is: =TEXT(TODAY(),"mm/dd/yy")

I would like to use Match to find the row with the closest date to todays
date.

Any help would greatly be appreciated.

Thank you for your time.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Match Function And Display Row Number

Just put =TODAY() in that cell, and format it as mm/dd/yy (assume this
is cell D1), and then you could use this:

=MATCH(D1,A:A)

to get the row number of the date equal to or just below the date in
D1.

Your example shows consecutive dates, so one should match the search
date exactly.

Hope this helps.

Pete

On Jan 26, 3:29*pm, CecesWorking
wrote:
Hello -

I have a data set similar to below

Date * * Field 1 * * Field 2 * * Field 3
1/1/09 * * x * * * * * * x * * * * * * o
1/2/09 * * o * * * * * * x * * * * * * x
1/3/09 * * o * * * * * * o * * * * * * x

I have another field which auto-populates today's date when the workbook is
refreshed. The formula for that is: =TEXT(TODAY(),"mm/dd/yy")

I would like to use Match to find the row with the closest date to todays
date.

Any help would greatly be appreciated.

Thank you for your time.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Match Function And Display Row Number

Say we have an unsorted list of dates in A1 thru A29.

=MATCH(MIN(ABS(A1:A29-TODAY())),ABS(A1:A29-TODAY()),0)

will give you the row most closely matching today's date.

NOTE: This is an array formula. It must be entered with CNTRL-SHFT-ENTER
rather than just the ENTER key.
--
Gary''s Student - gsnu200829


"CecesWorking" wrote:

Hello -

I have a data set similar to below

Date Field 1 Field 2 Field 3
1/1/09 x x o
1/2/09 o x x
1/3/09 o o x

I have another field which auto-populates today's date when the workbook is
refreshed. The formula for that is: =TEXT(TODAY(),"mm/dd/yy")

I would like to use Match to find the row with the closest date to todays
date.

Any help would greatly be appreciated.

Thank you for your time.

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
Need a function to return EXACT row number of a match [email protected] Excel Worksheet Functions 3 November 16th 08 04:05 AM
Cross match data in Col A v/s Col B and display match in Col 3 aquaflow Excel Discussion (Misc queries) 3 July 10th 08 05:07 PM
Function to find/display the date X number of days later? a0xbjzz Excel Worksheet Functions 1 October 26th 07 02:12 PM
Display missing Part Number if Column A does not match column B Erik T Excel Worksheet Functions 2 April 17th 06 11:23 PM
How do I display more than one match in a Index/Match formula? Trish Excel Worksheet Functions 0 September 26th 05 10:21 PM


All times are GMT +1. The time now is 10:28 PM.

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

About Us

"It's about Microsoft Excel"