Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Nick Krill
 
Posts: n/a
Default Step through a row of data

How can I step through a row of data to find the first entry that exceeds a
reference value?

Reference: 45.57

45.54 45.56 45.32 45.5 45.42 45.35 45.46 45.59 44.97 46 45.05 44.55

The answer would be 8 (45.59)

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
B. R.Ramachandran
 
Posts: n/a
Default Step through a row of data

Hi Nick,

Incorporate actual cell and range references in the following formula (to
suit to your spreadsheet; for example, "refvalue" could be A2, "datarange"
could be A1:L1, and "firstvalue" could be A1) and confirm with
CTRL-SHIFT-ENTER.

=IF(SUMPRODUCT((refvalue<datarange)*1)=0,"Not
exceeded",MIN(IF(refvalue<datarange,COLUMN(dataran ge)-COLUMN(firstvalue)+1))&"
("&INDEX(datarange,MIN(IF(refvalue<datarange,COLUM N(datarange)-COLUMN(firstvalue)+1)))&")")

Regards,
B. R. Ramachandran

"Nick Krill" wrote:

How can I step through a row of data to find the first entry that exceeds a
reference value?

Reference: 45.57

45.54 45.56 45.32 45.5 45.42 45.35 45.46 45.59 44.97 46 45.05 44.55

The answer would be 8 (45.59)

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
I need more general XY point to point plotting than XY scatter in spazminator Charts and Charting in Excel 12 December 19th 05 05:00 PM
Excel 2003, Convert EXISTING Worksheet Data to XML? [email protected] Excel Discussion (Misc queries) 4 November 16th 05 04:45 AM
Import Data Keeps asking for Password Dominator Excel Discussion (Misc queries) 0 June 5th 05 11:25 PM
Line Graph Data Recognition Nat Charts and Charting in Excel 2 April 30th 05 02:07 PM
Running Data Table using an input that triggers DDE linked data [email protected] Excel Discussion (Misc queries) 1 December 16th 04 11:56 AM


All times are GMT +1. The time now is 09:06 PM.

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"