Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 72
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,344
Default 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

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 72
Default 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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pivot table in excel 2007 €“ default the data to collapsed? Thomas_BA Excel Discussion (Misc queries) 0 August 27th 08 06:02 PM
Using groups/outline, 1st row often reduces to zero height Paul Excel Discussion (Misc queries) 0 April 1st 08 11:35 PM
Data And Group Outline Steved Excel Worksheet Functions 0 May 4th 06 12:33 AM
outline & groups G Gustavo Excel Worksheet Functions 1 October 10th 05 09:30 PM
How can I allow an outline to be collapsed on a protected sheet? LynnAnnO Excel Worksheet Functions 0 June 8th 05 06:39 PM


All times are GMT +1. The time now is 01:29 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"