Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Find number of lines ?

I have some number groups. I have also 5 numbers. I want to find numbers of
lines in groups, include these 5 numbers together? Can I do it only by using
one cell and formule? I explained my question in detail by added file. Thanks.


http://www.turboupload.com/vxyi4wnu1..._line.xls.html

--
Message posted via http://www.officekb.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Find number of lines ?


I'm not quite sure what you are looking for, and I didn't download the
workbook (I don't download things from strangers, nothing personal).
If you are trying to identify a certain sequence of numbers appearing
in a longer list of numbers, try something like the following array
formula:

=IF(SUM(--(OFFSET(B3,0,0,ROWS(WhatNumbers),1)=WhatNumbers))= ROWS(WhatNumbers),"series
here","")

Here, B3 is the first cell of the longer list of numbers that you are
going to search for the occurrence of a sequence. WhatNumbers is a
named range containing the digits in the sequence you want to find.
These digits should be in a single column spanning 5 rows. Enter this
formula in C3 and fill down as far as you have data in the large list.
If your sequence numbers to be found, the WhatNumbers range, are in
one row spanning 5 columns, use the following array formula.

=IF(SUM(--(OFFSET(B3,0,0,COLUMNS(WhatNumbers),1)=TRANSPOSE(W hatNumbers)))=COLUMNS(WhatNumbers),"series
here","")

Enter this in C3 and fill down as far as you have data in the large
list. Both of these formulas return "series here" in the first cell in
which the sequence in WhatNumbers is found in the larger list. So, for
example, if your sequence in WhatNumbers was 66510, the "series here"
will appear on the same row as the first 6 as found in the larger
list.

Change "series here" to whatever you want.

Since these are Array Formulas, you *must* press CTRL SHIFT ENTER
rather than just ENTER when you first enter the formula
and whenever you edit it later. If you do this properly,
Excel will display the formula in the Formula Bar enclosed
in curly braces { }. (You do not type the curly braces -
Excel includes them automatically.) The formula will not work
properly if you do not use CTRL SHIFT ENTER. See
http://www.cpearson.com/excel/ArrayFormulas.aspx for lots
more information about array formulas.

If this is not what you're looking for, please provide more details
and example in the newsgroup post, not in a file.


Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group, 1998 - 2009
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)



On Sun, 12 Apr 2009 18:05:32 GMT, "alikirca20" <u51090@uwe wrote:

I have some number groups. I have also 5 numbers. I want to find numbers of
lines in groups, include these 5 numbers together? Can I do it only by using
one cell and formule? I explained my question in detail by added file. Thanks.


http://www.turboupload.com/vxyi4wnu1..._line.xls.html

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
Find previous number and find next number in column DoubleZ Excel Discussion (Misc queries) 4 March 4th 09 08:51 PM
Number of lines Adrian T[_4_] Excel Programming 9 August 25th 06 04:36 AM
Find similar lines and combine Scott Wagner Excel Programming 1 December 30th 05 12:23 AM
How do I set up a way to add up the number of lines used when cal. Nixco Excel Discussion (Misc queries) 1 February 4th 05 01:38 AM


All times are GMT +1. The time now is 06:27 AM.

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"