How to retrieve data from groups & outline when they r collapsed g

V

Vinod

Hi All,

I've a query in retrieving grouped data after applying groupings for
selected range.

In other words, Some one designed a format in following way.
Col A Col B
Row 5 to 52 grouped USA 2005
RoW 54 to 61 grouped USA 2006
RoW 63 to 69 grouped USA 2007
RoW 71 to 85 grouped UK 2005
RoW 87 to 92 grouped UK 2006

My requirement is I need to search 2006 in col B where col A has USA. If it
found then I need to get start row of 2006 (row 54) and end row of 2006 (row
61). So that I can retrieve data range from C54 to I61 where I'm having
retrival data.

Please share your thoughts and solutions would be apereciated.

Advanced Thanks,
Vinod
 
S

ShaneDevenshire

Hi,

These will get the first and last row numbers:

=MIN(--(A18:A27="USA")*(B18:B27=2005)*ROW(B18:B27))
=MAX(--(A18:A27="USA")*(B18:B27=2005)*ROW(B18:B27))

These are array entered (press Shift+Ctrl+Enter to enter them) Adjust the
ranges to match yours, if the 2005 are not numbers but dates you will need to
modify the formulas.
 
V

Vinod

Thanks ShaneDevenshire for your response.

I tried with your logic but I'm getting 0(zero) as minimum number always.

Is there any workaround to get second minimum number?

Advanced Thanks,
Vinod
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top