How can I skip first the first occurence in an index search?

D

Don Murray

During an index search my first occurence is always blank.
Is there a way to modify thise formula to skip the first occurence and check
for the second as the second occurence always contain the figure. Currently
there is no way to remove the first occurence.
=INDEX(Info!$A$1:$H$101, MATCH(B15,Info!$F$1:$F$101,),
MATCH("Total",Info!$A$1:$H$1,))
 
T

T. Valko

Is there a way to modify thise formula to skip the first occurence

The first instance in which axis? Is there more than 2 instances? Is the
table sorted so that all instances are grouped together?
 
B

Bernie Deitrick

Don,

Try

=INDEX(Info!$A$1:$H$101,(MATCH(B15,OFFSET(Info!$F$1:$F$101,MATCH(B15,$F$1:$F$101,FALSE),0)))+MATCH(B15,$F$1:$F$101,FALSE),MATCH("Total",Info!$A$1:$H$1,))


HTH,
Bernie
MS Excel MVP
 
D

Don Murray

The first instance I am looking for is in column F, and they are never
together, but the cells are not always consistent. The info may be in row 22
and 33 one time and in row 18 and 20 the next, but there is always 2
instances.
 
D

Don Murray

I tried this with adding the info! in the proper places as the data is on a
seperate page but couldn't get it to work, any ideas?
 
T

T. Valko

Try this:

=INDEX(Info!A1:H101,LOOKUP(2,1/(Info!F1:F101=B15),ROW(Info!F1:F101)),MATCH("Total",Info!A1:H1,0))
 
D

Don Murray

Doesn't seem to pick up anything, not even the first orrurence if I enter a
figure in it.
 
B

Bernie Deitrick

Don,

I left out a false, which wasn't needed for my sample data set.

=INDEX(Info!$A$1:$H$101,(MATCH(B15,OFFSET(Info!$F$1:$F$101,MATCH(B15,Info!$F$1:$F$101,FALSE),0),FALSE))+MATCH(B15,Info!$F$1:$F$101,FALSE),MATCH("Total",Info!$A$1:$H$1,))

HTH,
Bernie
MS Excel MVP
 
D

Don Murray

The last one from Bernie worked, which is good, can't access downloads at
work but will check it out when I get home, thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top