returning the value in Colunm C using Colunm A as Ref

R

Robbo12

Hi
I am trying to format a spread sheet and need to return the value of colunm
C but the problem is Colunm A is blank as it runs in sequence (see below)
It looks like the following

A B C
1, P100AA Info 300
2, P100AB Info 150
3, "Blank" "" 100
4, "Blank" "" 50
5, P100AC Info 300

How do i return the last figure for the item in Row 2 (colunm A) i.e. 50?

If i do a logical test how do i tell it that row 4 is actually relating to
the search criteria in row 2 without returning the value in row 2, colunm C?
 
J

Jacob Skaria

Try the below formula with lookup value in cell D1

In cell D1 : P100AB

In cell E1 :
=LOOKUP(10^10,OFFSET($C$1,MATCH(D1,Sheet1!A:A,0)-1,,
IF(ISNA(MATCH(TRUE,INDEX(INDIRECT("Sheet1!A"&
MATCH(D1,Sheet1!A:A,0)+1&":A1000")<>"",),)),1000,
MATCH(TRUE,INDEX(INDIRECT("Sheet1!A"&
MATCH(D1,Sheet1!A:A,0)+1&":A1000")<>"",),))))

If this post helps click Yes
 

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