Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default what I need is a first-if formula

Can anyone help me to make a formula?
Column A is row number.
Column B shows raw data.
Column C is where I would like a formula to fill down.
Starting with any row, I am interested in later-row data only if greater by
at least 4 above current-row data. I want to find the FIRST such data. In
particular, I want to display its corresponding row number.

A B C
Row Data Earliest Row No. of Data or = (Current Row Data+4)
11 14 13 [Row 13 has 19, the next data = 14+4]
12 16 16 [Row 16 has 20, the next data = 16+4]
13 19* blank [no further rows have data = 19+4]
14 13 15 [Row 15 has 17, the next data = 13+4]
15 17 blank
16 20* blank
17 15 blank
18 14 blank

If no later-rows have data greater than current-row data by at least 4, then
blank.

Many thanks.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,120
Default what I need is a first-if formula

=IF(MIN(IF(B$18:$B19=B18+4,ROW(B$18:$B19)))0,MIN (IF(B$18:$B19=B18+4,ROW(B
$18:$B19))),"")

this is an array formula so commit with Ctrl-Shift-Enter

--
HTH

Bob Phillips

"JJ79" wrote in message
...
Can anyone help me to make a formula?
Column A is row number.
Column B shows raw data.
Column C is where I would like a formula to fill down.
Starting with any row, I am interested in later-row data only if greater

by
at least 4 above current-row data. I want to find the FIRST such data.

In
particular, I want to display its corresponding row number.

A B C
Row Data Earliest Row No. of Data or = (Current Row Data+4)
11 14 13 [Row 13 has 19, the next data = 14+4]
12 16 16 [Row 16 has 20, the next data = 16+4]
13 19* blank [no further rows have data = 19+4]
14 13 15 [Row 15 has 17, the next data = 13+4]
15 17 blank
16 20* blank
17 15 blank
18 14 blank

If no later-rows have data greater than current-row data by at least 4,

then
blank.

Many thanks.



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
Commenting custom formula fields/formula on formula editor Muxer Excel Programming 2 July 24th 03 01:02 AM


All times are GMT +1. The time now is 04:57 PM.

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"