Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
I'd like to be able return the the row numbers (started at
row - ends at row) from a list of names that are in D2 to the end possibly. The list will always be sorted! (E.g. In B2 I'd like to type in Joe; and in Column D Joe is found starting at row 371 and the last row with Joe is 806. It does not matter if two cells are needed to show the two numbers.) I'm not sure how to do this! TIA |
#2
![]() |
|||
|
|||
![]()
First row (formula in J1):
=MATCH(B1,D:D,0) Last row: K1: =J1+COUNTIF(D:D,B1)-1 HTH Jason Atlanta, GA -----Original Message----- I'd like to be able return the the row numbers (started at row - ends at row) from a list of names that are in D2 to the end possibly. The list will always be sorted! (E.g. In B2 I'd like to type in Joe; and in Column D Joe is found starting at row 371 and the last row with Joe is 806. It does not matter if two cells are needed to show the two numbers.) I'm not sure how to do this! TIA . |
#3
![]() |
|||
|
|||
![]()
One way
this will give you the cell address of the first and the last first =CELL("address",INDEX(D2:D10000,MATCH(B2,D2:D10000 ,0))) last =CELL("address",INDEX(D1:D10000,MAX((D2:D10000=B2) *(ROW(D2:D10000))))) the latter entered with ctrl + shift & enter also note that for the latter regardless where the data starts index needs to start in row 1 (D1) or else you have to offset the number of rows where the data starts Regards, Peo Sjoblom "Cap" wrote: I'd like to be able return the the row numbers (started at row - ends at row) from a list of names that are in D2 to the end possibly. The list will always be sorted! (E.g. In B2 I'd like to type in Joe; and in Column D Joe is found starting at row 371 and the last row with Joe is 806. It does not matter if two cells are needed to show the two numbers.) I'm not sure how to do this! TIA |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Converting negative numbers in a range of cells to zero | Excel Discussion (Misc queries) | |||
find numbers in a range that add to a specific value | Excel Discussion (Misc queries) | |||
How do I get excel search through a range of numbers e.g. 1.99 - . | Excel Worksheet Functions | |||
How do I reference and sort a range of numbers in Excel 97? | Excel Worksheet Functions | |||
Display numbers only, no text formula | Excel Worksheet Functions |