Solved

Excel formula

Posted on 2011-03-07
5
248 Views
Last Modified: 2012-05-11
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
Comment
Question by:NAB015
  • 2
5 Comments
 
LVL 50

Expert Comment

by:teylyn
Comment Utility
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
 
LVL 41

Accepted Solution

by:
dlmille earned 250 total points
Comment Utility
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
 

Author Closing Comment

by:NAB015
Comment Utility
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
 
LVL 41

Expert Comment

by:dlmille
Comment Utility
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

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
second highest value difference 11 24
Macro 3 14
onOpen 14 38
+1 to an even value 4 10
A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
Viewers will learn the basics of slicers and timelines for both PivotTables and standard Excel tables in Excel 2013.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now