A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Finding all rows containing a number



 
 
Thread Tools Display Modes
  #1  
Old June 14th, 2004, 11:11 PM
brazen234
external usenet poster
 
Posts: n/a
Default Finding all rows containing a number

I have one column by 5000 rows.
I need to find out the index positions of a certain number.
So let's say the number 123 is located in row 1000 and row 1400.
I want a formula to just let me know right away that 123 is located in
the 1000 and 1400 rows.

I'd like to keep from having to use a filter and manually type out the
row. I'd like it to be automatic to save me time.
Best would be if I could then put the index positions as DATA in other
cells without manually typing it in.

Thanks guys!


---
Message posted from http://www.ExcelForum.com/

  #2  
Old June 14th, 2004, 11:33 PM
Peo Sjoblom
external usenet poster
 
Posts: n/a
Default Finding all rows containing a number

You would need to copy down a formula like

=SMALL(IF($A$1:$A$5000=123,ROW($1:$5000)),ROW(1:1) )

entered with ctrl + shift & enter

copy down until you get an error



--


No private emails please, for everyone's
benefit keep the discussion in the newsgroup.

Regards,

Peo Sjoblom

"brazen234 " wrote in message
...
I have one column by 5000 rows.
I need to find out the index positions of a certain number.
So let's say the number 123 is located in row 1000 and row 1400.
I want a formula to just let me know right away that 123 is located in
the 1000 and 1400 rows.

I'd like to keep from having to use a filter and manually type out the
row. I'd like it to be automatic to save me time.
Best would be if I could then put the index positions as DATA in other
cells without manually typing it in.

Thanks guys!


---
Message posted from http://www.ExcelForum.com/



  #3  
Old June 14th, 2004, 11:33 PM
Frank Kabel
external usenet poster
 
Posts: n/a
Default Finding all rows containing a number

Hi
enter the following in B1 as array formula (and copy down)
=SMALL(IF($A$1:$A$5000=123,ROW($A$1:$A$5000)),ROW( 1:1))

--
Regards
Frank Kabel
Frankfurt, Germany


I have one column by 5000 rows.
I need to find out the index positions of a certain number.
So let's say the number 123 is located in row 1000 and row 1400.
I want a formula to just let me know right away that 123 is located

in
the 1000 and 1400 rows.

I'd like to keep from having to use a filter and manually type out

the
row. I'd like it to be automatic to save me time.
Best would be if I could then put the index positions as DATA in

other
cells without manually typing it in.

Thanks guys!


---
Message posted from http://www.ExcelForum.com/


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:26 PM.


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