View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre Ron Coderre is offline
external usenet poster
 
Posts: 2,118
Default Formula to find last value in a range & then offset

Try something like this:

This formula locates the last NUMERIC value in Col_AA and returns the
corresponding value from Col_P:
=INDEX(P:P,MATCH(10^99,AA:AA))

This formula locates the last TEXT value in Col_AA and returns the
corresponding value from Col_P:
=INDEX(P:P,MATCH(REPT("z",255),AA:AA))

This ARRAY FORMULA locates the last NON-BLANK cell in Col_AA and returns the
corresponding value from Col_P:
=INDEX(P1:P65535,MATCH(2,1/(1-ISBLANK(AA1:AA65535))))

Note: For array formulas, hold down [Ctrl] and [Shift] when you press
[Enter], instead of just pressing [Enter].

Does that help?
***********
Regards,
Ron

XL2002, WinXP


" wrote:

Hi,
I'm trying to write a formula to find the last value in a row range and
then return the value 12 columns to the left of that value. I've tried
using offset but it isn't returning the value I expect:

=OFFSET(INDEX($P168:$AA168,COUNTA($P168:$AA168)),0 ,12)

Any help would be greatly appreciated

Pete