Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Brian Rhodes
 
Posts: n/a
Default Can I use cell contents as part of a formula?

For example:

Column C has a bunch of numerical values for which I'd like to get the MIN,
MAX, Average, etc of. But, I don't always want to do the entire column.
There are "chunks" of data that I'd like to perform the operations on.

So, I figure out the chunks automatically and place them in Column N. So,
Column N looks like this:

N1=C1
N2=C8
N3=C2350
N4=C3458

What'd I'd like to do is this:

Min(C1:C8)
Min(C8:C2350)
Min(C2350:C3458)

But, I'd like to use the values that are in the "N" cells, as I have many
worksheets that I'm analyzing data in and I'd like to just copy and paste
the formulas from the N column and not have to figure out where the
sub-chunks of data are located.

Thanks
-Brian


  #2   Report Post  
Duke Carey
 
Posts: n/a
Default

As a for instance:

=MIN(INDIRECT(N1&":"&N2))

which calculates as MIN(C1:C8)


"Brian Rhodes" wrote:

For example:

Column C has a bunch of numerical values for which I'd like to get the MIN,
MAX, Average, etc of. But, I don't always want to do the entire column.
There are "chunks" of data that I'd like to perform the operations on.

So, I figure out the chunks automatically and place them in Column N. So,
Column N looks like this:

N1=C1
N2=C8
N3=C2350
N4=C3458

What'd I'd like to do is this:

Min(C1:C8)
Min(C8:C2350)
Min(C2350:C3458)

But, I'd like to use the values that are in the "N" cells, as I have many
worksheets that I'm analyzing data in and I'd like to just copy and paste
the formulas from the N column and not have to figure out where the
sub-chunks of data are located.

Thanks
-Brian



  #3   Report Post  
JE McGimpsey
 
Posts: n/a
Default

Check out INDIRECT() in XL Help. For instance:

=MIN(INDIRECT(N1&":"&N2))

In article ,
"Brian Rhodes" wrote:

For example:

Column C has a bunch of numerical values for which I'd like to get the MIN,
MAX, Average, etc of. But, I don't always want to do the entire column.
There are "chunks" of data that I'd like to perform the operations on.

So, I figure out the chunks automatically and place them in Column N. So,
Column N looks like this:

N1=C1
N2=C8
N3=C2350
N4=C3458

What'd I'd like to do is this:

Min(C1:C8)
Min(C8:C2350)
Min(C2350:C3458)

But, I'd like to use the values that are in the "N" cells, as I have many
worksheets that I'm analyzing data in and I'd like to just copy and paste
the formulas from the N column and not have to figure out where the
sub-chunks of data are located.

  #4   Report Post  
bj
 
Posts: n/a
Default

The offset function will probably work for you. (check help on offset)

you would not need to put the C in your N cells

for example the equivelent ot min(c1:C8) would be

if n1=1,n2=8, n3=2350
=min(offset(c1,n1-1,0,n2-n1+1,1))
for min(C8:C2350)
=min(offset(c1,n2-1,n3-n2+1,1))



if you need the full C1,C8,C2350 etc for other purposes

=min(offset(c1,value(right(n1,len(n1)-1)-1,0,value(right(n2,len(n2)-1)-right(n1,len(n1)-1)+1,1))
for min(C8:C2350)
=min(offset(c1,right(n2,len(n2)-1)-1,right(n3,len(n3)-1)-right(n2,len(n2)-1)+1,1))


"Brian Rhodes" wrote:

For example:

Column C has a bunch of numerical values for which I'd like to get the MIN,
MAX, Average, etc of. But, I don't always want to do the entire column.
There are "chunks" of data that I'd like to perform the operations on.

So, I figure out the chunks automatically and place them in Column N. So,
Column N looks like this:

N1=C1
N2=C8
N3=C2350
N4=C3458

What'd I'd like to do is this:

Min(C1:C8)
Min(C8:C2350)
Min(C2350:C3458)

But, I'd like to use the values that are in the "N" cells, as I have many
worksheets that I'm analyzing data in and I'd like to just copy and paste
the formulas from the N column and not have to figure out where the
sub-chunks of data are located.

Thanks
-Brian



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
Keeping one part of a formula same, but change other cell ref? kwelp Excel Discussion (Misc queries) 3 May 17th 05 10:00 PM
using content of a cell in a formula in another cell mpierre Excel Worksheet Functions 3 December 28th 04 03:43 PM
Cell contents vs. Formula contents Sarah Excel Discussion (Misc queries) 3 December 15th 04 06:02 PM
How can I write an if-then formula for 0 or less than 0 in cell t. Baz1 Excel Worksheet Functions 1 November 30th 04 04:33 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


All times are GMT +1. The time now is 12:55 PM.

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"