find date that meets a criteria

  • Thread starter tkraju via OfficeKB.com
  • Start date
T

tkraju via OfficeKB.com

I have a range a1:c500.col A is "date",Col B is "high value",Col C is "Low
value".The basic calculation is "high value" minus "Low value" is volatile
value of the day.I need a function to find most volatile day from the above
range.
Col A(Date)-----------Col B(high value)-------------------Col C(Low value)
11-NOV -------------100 -------------------95
12-NOV --------------125 ---------------------115
13-NOV --------------122 ----------------------118
16-NOV --------------101 -----------------------90
18-NOV ---------------85 -----------------------84
From the above example the maximum difference value is 11(101-90),so the
most volatile day is 16-NOV.I tried with offset function ,could not succeed.
Please help.
 
G

Guest

You can use OFFSET if you can make a row reference.

First let's insert a helper column, column D
In D1 enter = B1-C1 and copy down.
The 11 is now visible and

=OFFSET(A1,(MATCH(MAX(D:D),D:D,0)-1),0,1,1)

will return the value in column A the corresponds to the max in column D.
 
J

JMay

Someone more knowledgable than me can probably cut this procedure down
but
I was able to get your 16-Nov like so:

With your first data row on row 4:
I created a "helper-column" (col D) - Cell D4 ->> =B4-C4 and copied down

Then in an out-of-the-way cell I entered (say J1):

=OFFSET(INDIRECT(ADDRESS(MATCH(MAX($D$4:$D$8),$D$4:$D$8,0)+3,4)),0,-3)

The "+3" above allows for the 3 rows BEFORE the first data row;

Best I could do, for free...
HTH
 
G

Guest

Try

=INDEX(A1:A500,MATCH(MAX(C1:C500-B1:B500),C1:C500-B1:B500,0))

confirmed with CTRL+SHIFT+ENTER
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top