Solved

How can I bring back the last true value between two ranges?

Posted on 2011-09-14
9
195 Views
Last Modified: 2012-08-14
This bring back the first, I now would like to bring back the last
=INDEX(E22:J22,MATCH(1,INDEX((COUNTIF($R$2:$R$17,E22:J22)>0)+0,0),0))
0
Comment
Question by:syeager305
  • 5
9 Comments
 
LVL 50

Expert Comment

by:teylyn
ID: 36539679
Hello,

like this:

=INDEX(E22:J22,MATCH(1,INDEX((COUNTIF($R$2:$R$17,E22:J22)>0)+0,0),1))

cheers, teylyn
0
 
LVL 5

Author Comment

by:syeager305
ID: 36546069
That what I'm already doing
112113

2
0
0
0
3

If I was looking for a true value it would be the last true value, not the first.  In this case it would be 3
0
 
LVL 50

Expert Comment

by:teylyn
ID: 36546286
My formula is different from yours. Have you tried it?
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 50

Expert Comment

by:teylyn
ID: 36546339
It might help to see your data. This one also works in my tests

=INDEX(E22:J22,MATCH(2,INDEX((COUNTIF($R$2:$R$17,E22:J22)>0)+0,0),1))
0
 
LVL 50

Accepted Solution

by:
teylyn earned 500 total points
ID: 36546342
see attached
Book3.xlsx
0
 
LVL 50

Expert Comment

by:teylyn
ID: 37049094
The formula I suggested works, as is demonstrated in the file attached in comment 36546342.
Suggest to accept that as the solution.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 37144343
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

943 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

4 Experts available now in Live!

Get 1:1 Help Now