cell reference formula

B

BBB

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.
 
B

BBB

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",'Logistics
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) ?
 
J

John C

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))
 

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