Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 84
Default what row a value is in?

in column A there are dates (not unique). basically all transaction of a
certain date, so the number of times a date will be there varies

How can i find what row the first instance of a given date appears
i will also need the last row that date appears
(2 seperate equations)

Thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default what row a value is in?

On Fri, 6 May 2005 18:44:06 -0700, choice
wrote:

in column A there are dates (not unique). basically all transaction of a
certain date, so the number of times a date will be there varies

How can i find what row the first instance of a given date appears
i will also need the last row that date appears
(2 seperate equations)

Thanks in advance


First Row:

=MATCH(GivenDate,A:A,0)

Last Row:

=MAX(($A$1:$A$1000=E1)*ROW(INDIRECT("1:1000")))

This second formula is an ARRAY formula so after typing it in, instead of
hitting <enter, hold down <ctrl<shift while hitting <enter. Excel will
place braces {...} around the formula.

Adjust the range in the second formula to fit your data, although the range can
include blanks to allow for expansion. You cannot, in an array formula,
specify an entire column.




--ron
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



All times are GMT +1. The time now is 06:27 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"