Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro question | Excel Worksheet Functions | |||
Lookup Data in two seperate Spreadsheets | Excel Worksheet Functions | |||
How to Select a relative range with Using "Find" and Offset() | Excel Discussion (Misc queries) | |||
Question for use of offset and range | Excel Worksheet Functions | |||
I need a formula to find rows within a date range in one column? | Excel Worksheet Functions |