View Single Post
 
Old 07-05-2012, 04:08 PM
Colin Legg's Avatar
Colin Legg Colin Legg is offline Windows 7 32bit Office 2010 32bit
Expert
 
Join Date: Jan 2011
Location: UK
Posts: 369
Colin Legg will become famous soon enough
Default

There isn't a simple formula to do this. I've attached your example with two array formulas.

Code:
A2
 
=IF(SUBTOTAL(3,A4:A1753)=1,
    OFFSET(A4,MAX((SUBTOTAL(3,OFFSET(A4,ROW(A4:A1753)-ROW(A4),,1)))*ROW(A4:A1753))-ROW(A4),0)
    ,"")
 
B2
 
=IF(SUBTOTAL(3,B4:B1753)=1,
    OFFSET(B4,MAX((SUBTOTAL(3,OFFSET(B4,ROW(B4:B1753)-ROW(B4),,1)))*ROW(B4:B1753))-ROW(B4),0)
    ,"")
Array formulas need to be entered with CTRL+SHIFT+ENTER, not just ENTER.

By the way, please can you update your profile to reflect the correct version of Office which you are using. It has a major influence on the appropriate answer(s) to your question(s).
Attached Files
File Type: xlsx ADIL.xlsx (39.6 KB, 10 views)
Reply With Quote