+ Reply to Thread
Results 1 to 2 of 2

Finding gaps

  1. #1
    mac_see
    Guest

    Finding gaps

    Hi!

    here is the data from A1:R4

    1 2 3 4 0 1 2 0 0 1 2 3 4 5 0 1 2 3
    1 2 3 4 5 6 7 8 9 0 1 2 0 1 2 3 4 5
    1 0 1 0 1 2 3 0 1 2 3 4 5 6 7 0 1 2
    0 1 0 1 2 3 4 5 0 1 2 3 0 1 2 0 1 2
    1 2 3 4 0 1 2 3 4 5 6 7 8 0 1 2 3 4

    I want to first search all zeros in the range A1:R1 and put the left number
    of the zero in cell S1. Then search the next zero in the same range and put
    the left number of the second zero in cell T1. Do this until we are finished
    with checking zeros in the range A1:R1. The result in the range S1:V1 should
    be 4 2 0 5

    Once finished, go to the next range B1:R1 and do this till the last range
    B4:R4

    Maxi

  2. #2
    Jason Morin
    Guest

    Re: Finding gaps

    Copy this into S1 and press ctrl + shift + enter:

    =INDEX($A1:$Q1,SMALL(IF($B1:$R1=0,COLUMN($B1:$R1)),COLUMN
    ()-18)-1)

    Fill the formula down to S4. Now fill S1:S4 across until
    you receive 4 #NUM! errors in the column.

    HTH
    Jason
    Atlanta, GA

    >-----Original Message-----
    >Hi!
    >
    >here is the data from A1:R4
    >
    >1 2 3 4 0 1 2 0 0 1 2 3 4 5 0 1 2 3
    >1 2 3 4 5 6 7 8 9 0 1 2 0 1 2 3 4 5
    >1 0 1 0 1 2 3 0 1 2 3 4 5 6 7 0 1 2
    >0 1 0 1 2 3 4 5 0 1 2 3 0 1 2 0 1 2
    >1 2 3 4 0 1 2 3 4 5 6 7 8 0 1 2 3 4
    >
    >I want to first search all zeros in the range A1:R1 and

    put the left number
    >of the zero in cell S1. Then search the next zero in the

    same range and put
    >the left number of the second zero in cell T1. Do this

    until we are finished
    >with checking zeros in the range A1:R1. The result in

    the range S1:V1 should
    >be 4 2 0 5
    >
    >Once finished, go to the next range B1:R1 and do this

    till the last range
    >B4:R4
    >
    >Maxi
    >.
    >


+ 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