#1   Report Post  
mac_see
 
Posts: n/a
Default 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   Report Post  
Jason Morin
 
Posts: n/a
Default

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
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
finding the second largest number in a list bobf Excel Discussion (Misc queries) 1 February 16th 05 01:19 PM
Finding Median if a value = 1.. help! Greg Excel Worksheet Functions 2 February 13th 05 03:28 AM
Finding Cell References Zokess Excel Discussion (Misc queries) 2 February 4th 05 04:52 PM
I get gaps in bar chart when using weekday values only in x-axis Björn Elfvin Charts and Charting in Excel 2 February 1st 05 01:37 PM
How can i imput a formula in excel for finding the area of a regu. Rona Excel Discussion (Misc queries) 2 January 15th 05 08:17 PM


All times are GMT +1. The time now is 09:57 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"