that gives me a headache lol
that gives me a headache lol
"Unless otherwise stated all my comments are directed at OP"
Mojito connoisseur and now happily retired
where does code go ?
look here
how to insert code
how to enter array formula
why use -- in sumproduct
recommended reading
wiki Mojito
how to say no convincingly
most important thing you need
Martin Wilson: SPV
and RSMBC
Dear both,
thanks so much for your helpul review. I have tried the suggestion of DonkeyOte and it works great though there seems to be one glitch for the returns given in Column S which gives data from a column too early in the sequence. The rest is perfrect though.
Any thoughts on how to solve this?
Also, a stupid beginner question as well, how do I re-write the formula if the data would be in columns intead of rows?
Attached an example of what I mean.
Many thanks in advance!
Paul
Something odd with your file there Paul - if you conduct a Full Recalc (CTRL + ALT + F9) you will find the cells will recalculate generating correct results.Originally Posted by paulgerrits
If you can assume you always have a full quarter listed (ie 3 months each quarter - irrespective of whether or not values are 0) then using your latest sample:Originally Posted by paulgerrits
Again, as before the above utilises IFERROR which is not backwards compatible with versions pre XL2007 - revert to:![]()
F13: =IF(E13="","",IFERROR(LOOKUP(2,1/(D11:D13<>0),D11:D13),0)) copied down
if you need a backwards compatible version![]()
F13: =IF(E13="","",LOOKUP(9.99E+307,CHOOSE({1,2},0,LOOKUP(2,1/(D11:D13<>0),D11:D13)))) copied down
of course given this layout you could actually just use an embedded IF if you prefer:
![]()
F13: =IF(E13="","",IF(N(D13)<>0,N(D13),IF(N(D12)<>0,N(D12),N(D11)))) copied down
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks