+ Reply to Thread
Results 1 to 9 of 9

Consecutive numbers

  1. #1
    Registered User
    Join Date
    04-30-2012
    Location
    Tel aviv ,Israel
    MS-Off Ver
    Excel 2003
    Posts
    7

    Consecutive numbers

    Hello ,

    I need help
    Please see the Attached file "consecutive numbers.xls"

    Thank you
    Attached Files Attached Files

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2411
    Posts
    26,723

    Re: Consecutive numbers

    Copy this formula into Sheet2!BS2 and copy down:

    =SUMPRODUCT((Sheet1!A2:P2+1=Sheet1!B2:Q2)*(Sheet1!A2:P2<>""))
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    04-30-2012
    Location
    Tel aviv ,Israel
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Consecutive numbers

    This is not what I meant, i want to copy the consecutive numbers from sheet1 to sheet2 not counting the numbers...

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2411
    Posts
    26,723

    Re: Consecutive numbers

    I see what you mean now. Try this.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-30-2012
    Location
    Tel aviv ,Israel
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Consecutive numbers

    ok , this is better but in sheet1 i have 17 RANDOM numbers from 1 to 70 (sort from A2 to Q2) and let say the consecutive number are 21,22 and 37,38
    in sheet2 i have a table from A2 to BR2 and i want to copy the consecutive numbers like this.please see the example in the attachments
    Attached Files Attached Files

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2411
    Posts
    26,723

    Re: Consecutive numbers

    Your second example doesn't make sense. In Sheet1 row 2, for example, starting in column D, reading left to right:

    21, 22, blank, 37, 38

    but in Sheet2 row 2 starting in U, reading left to right

    21, 22, blank, blank, blank, blank, blank, blank, blank, blank, blank, blank, blank, blank, blank, blank, 37, 38

    It is completely unclear what is the pattern you are using to copy these numbers. Why have you added 13 extra blank cells?

  7. #7
    Registered User
    Join Date
    04-30-2012
    Location
    Tel aviv ,Israel
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Consecutive numbers

    Hello,

    I have 17 numbers from( 1 to 9)

    ex: A1=2,B1=3,C1=1,D1=4,E1=2,F1=1,G1-9,H1=6,I1=4,J1=5,K1=7,L1=8,M1=9,N1=2,O1=3,P1=6,Q1=7

    IN

    R1 i want to count the no1 (total count=2)
    S1 i want to count the no2 (total count=3)
    etc..
    etc..

    Thank you

  8. #8
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,408

    Re: Consecutive numbers

    Isn't this last post the same as this thread:

    http://www.excelforum.com/excel-gene...need-help.html

    Why start a new thread?

    Pete

  9. #9
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2411
    Posts
    26,723

    Re: Consecutive numbers

    newx, although you are the one who started this thread, your latest question is unrelated and is a hijack. You already started a new thread to ask this question so please return to that thread and update the thread title as the Moderator requested.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1