I've got a large data set (#8760 values taken at #8760 time points) listed in a column and I need to find out how many of the values i need to add together to reach a target value. However there are multiple target values (#280) and I need to perform the action for all #8760 time points.
To understand the problem its probably best to look at the example sheet I've attached. The example sheet is a cut down version of my data set but shows what Im trying to achieve. The full data set has the Time point values running from 1 - 8760, each with an associated value and has the target values running from 280 - 1.
I had created a very very long nested IF function (cut down version in the attached sheet), however, I ran up against the 64 nested IF function limit. Due to the nature of the data I do require more than 64 levels of nesting in order to reach the target value for all time points and all targets.
Is there another way of doing this so I wont run into the 64 nesting limit?
Bookmarks