ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How to retrieve data from groups & outline when they r collapsed g (https://www.excelbanter.com/excel-discussion-misc-queries/209848-how-retrieve-data-groups-outline-when-they-r-collapsed-g.html)

Vinod[_2_]

How to retrieve data from groups & outline when they r collapsed g
 
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

ShaneDevenshire

How to retrieve data from groups & outline when they r collapsed g
 
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.



--
Thanks,
Shane Devenshire


"Vinod" wrote:

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


Vinod[_2_]

How to retrieve data from groups & outline when they r collaps
 
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

"ShaneDevenshire" wrote:

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.



--
Thanks,
Shane Devenshire


"Vinod" wrote:

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



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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com