Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Works like a charm!
Thank you both for the solution and the reasoning behind it. Patrick Molloy wrote: your first formula is =AVERAGE(OFFSET(K1,R19-1,0,R22-R19+1,1)) the second formula is just a matter of changing the address R22 to Y19 OFFset from K1 will find the first address. so if R19 was 25, offsetting from K1 by 25 rows is K26, hence we deduct 1 to get OFFSET(K1,R19-1,0 lext, we resize by the number of rows. ie the difference between th first row given br R19 (25) and the last row in R22 (50)...but the difference is the fences, we need the posts, hence rows 25 to 50 INCLUSIVE is 26 rows ...thats why we add 1 to the 'height' of the offset range I hope this is clear? Good morning, [quoted text clipped - 20 lines] timesaver for me. Thank you. -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...mming/200910/1 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
returning a value in a table referencing ranges | Excel Worksheet Functions | |||
=AVERAGE returning a #DIV/0! result | Excel Worksheet Functions | |||
Average function not returning expected result | Excel Discussion (Misc queries) | |||
Returning a zero value in an average total | Excel Programming | |||
Returning ranges from xll | Excel Programming |