Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
hi,
i need a formula to search a column for a range of results and return the top and botom reference for this range. for example i have some information broken down by categories, these categories each have their own code in column A, i would like to know that from A1:A26 is the first category, and if someone adds rows to this the formula can change to tell me that it is now from A1:A32 (this also needs to work for consecutive categories after, ie A27:A51). I need to know the actual cell references not just the amount of rows that it counts, because i want to include this in another part of a formula? any help is appreciated. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
ok i have worked out how to create the actual text reference, but how do i
now convert this so it can be used in a formula? =("A"&(MATCH("CH",'Logistics sheet'!A1:A2000,0)))&":"&("A"&(MATCH("CH",'Logisti cs sheet'!A1:A2000,0)+COUNTIF('Logistics sheet'!A:A,"CH"))) the answer to this is A5:A85, how do i then get the answer into a formula to calculate, such as =SUM(A8:A85) ? "BBB" wrote: hi, i need a formula to search a column for a range of results and return the top and botom reference for this range. for example i have some information broken down by categories, these categories each have their own code in column A, i would like to know that from A1:A26 is the first category, and if someone adds rows to this the formula can change to tell me that it is now from A1:A32 (this also needs to work for consecutive categories after, ie A27:A51). I need to know the actual cell references not just the amount of rows that it counts, because i want to include this in another part of a formula? any help is appreciated. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Not checking your calculations....assuming your formula results into A8:A85
(you had A5 and A8, I am going with the A8), you could sum this range reference as follows: =SUM(INDIRECT(yourformulahere)) -- John C "BBB" wrote: ok i have worked out how to create the actual text reference, but how do i now convert this so it can be used in a formula? =("A"&(MATCH("CH",'Logistics sheet'!A1:A2000,0)))&":"&("A"&(MATCH("CH",'Logisti cs sheet'!A1:A2000,0)+COUNTIF('Logistics sheet'!A:A,"CH"))) the answer to this is A5:A85, how do i then get the answer into a formula to calculate, such as =SUM(A8:A85) ? "BBB" wrote: hi, i need a formula to search a column for a range of results and return the top and botom reference for this range. for example i have some information broken down by categories, these categories each have their own code in column A, i would like to know that from A1:A26 is the first category, and if someone adds rows to this the formula can change to tell me that it is now from A1:A32 (this also needs to work for consecutive categories after, ie A27:A51). I need to know the actual cell references not just the amount of rows that it counts, because i want to include this in another part of a formula? any help is appreciated. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
format a cell with a formula so an empty reference cell shows blan | Excel Discussion (Misc queries) | |||
Using a cell reference within a cell reference in a formula | Excel Worksheet Functions | |||
How do I leave formula cell blank if 2nd reference cell is empty? | Excel Discussion (Misc queries) | |||
Cell Formula reference to cell Based On third Cell Content | Excel Discussion (Misc queries) | |||
Cell Formula reference to cell Based On third Cell Content | Excel Discussion (Misc queries) |