Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bbb bbb is offline
external usenet poster
 
Posts: 8
Default cell reference formula

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bbb bbb is offline
external usenet poster
 
Posts: 8
Default cell reference formula

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,358
Default cell reference formula

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
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
format a cell with a formula so an empty reference cell shows blan M2 Excel Discussion (Misc queries) 3 November 7th 06 10:42 PM
Using a cell reference within a cell reference in a formula david Excel Worksheet Functions 2 July 1st 06 01:05 PM
How do I leave formula cell blank if 2nd reference cell is empty? Liana S Excel Discussion (Misc queries) 2 October 21st 05 04:38 PM
Cell Formula reference to cell Based On third Cell Content Gabriel Excel Discussion (Misc queries) 1 February 11th 05 06:36 AM
Cell Formula reference to cell Based On third Cell Content Gabriel Excel Discussion (Misc queries) 0 February 11th 05 05:35 AM


All times are GMT +1. The time now is 07:50 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"