• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 264
  • Last Modified:

Excel formula

Hello experts,

The formula is pretty simple

(Number of 'days' since the highest  value - Number of days since the lowest value/ The number of days being examined)

I am thinking of something like:

=(count(offset(A1,0,index(match(max(range))),0)-....)/count(range)

I haven't got anything to work quiet right.

Thanks for the help!

NAB
0
NAB015
Asked:
NAB015
  • 2
1 Solution
 
Ingeborg Hawighorst (Microsoft MVP / EE MVE)Microsoft MVP ExcelCommented:
Hello,

any chance you could post a workbook, so we can see how your data is laid out? Is "Highest value" the most recent date? Is your  data arranged in columns (seeing that you use a column offset).

cheers, teylyn
0
 
dlmilleCommented:
Not quite sure how your data is being laid out, but I built my own dataset with random data, by month.  I didn't build the entire formula in one swath (I figure you can do that once you feel the pieces are correct) - I built it by piece - so there's a column for Days since highest value, one for since lowest value, and one running total number of days from the first date through each datapoint.  Finally, your formula is the last column

Does this help?

Dave
Formula-Result.xlsx
0
 
NAB015Author Commented:
Sorry for the slow reply. I was working off your sheet when I got the formula working. I was messing up the index(match deal.

Thanks for the help! I got it working.
0
 
dlmilleCommented:
Tell me how I could have gotten a better rathing than "good" given I didn't have your dataset and don't read minds.

:)

Dave
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now