Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Pivot table in excel 2007 €“ default the data to collapsed? | Excel Discussion (Misc queries) | |||
Using groups/outline, 1st row often reduces to zero height | Excel Discussion (Misc queries) | |||
Data And Group Outline | Excel Worksheet Functions | |||
outline & groups | Excel Worksheet Functions | |||
How can I allow an outline to be collapsed on a protected sheet? | Excel Worksheet Functions |