Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Formula to find last value in a range & then offset

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

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,124
Default Formula to find last value in a range & then offset

try
=INDIRECT("a"&MATCH(9999,L:L))
=OFFSET(INDIRECT("l"&MATCH(9999,L:L)),0,-11)
--
Don Guillett
SalesAid Software

wrote in message
oups.com...
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



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Formula to find last value in a range & then offset

How about

=OFFSET($P168,COUNTA($P168:$AA168)-1,-12)


--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

wrote in message
oups.com...
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



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Formula to find last value in a range & then offset

Thanks for your help but I've found the answer its:

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

Quite simple thinking about it


Pete

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro question Chris Excel Worksheet Functions 12 July 7th 06 01:23 AM
Lookup Data in two seperate Spreadsheets Padraig Excel Worksheet Functions 6 June 28th 06 03:05 PM
How to Select a relative range with Using "Find" and Offset() Dennis Excel Discussion (Misc queries) 7 July 27th 05 03:57 PM
Question for use of offset and range Demi Excel Worksheet Functions 3 July 22nd 05 08:48 PM
I need a formula to find rows within a date range in one column? M. Penney Excel Worksheet Functions 5 May 12th 05 12:32 AM


All times are GMT +1. The time now is 10:06 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"