Referenceing a cell value in a formula

deanfran

Board Regular
Joined
Sep 9, 2011
Messages
52
I think this is a simple one, and I have seen the solution here before, but I have been unable to search it out.
Here is what I have
1. Have a COUNT value in a cell (counted the number of rows with values in them).
2. A formula that needs this value (sums another set of values in another column that has the same number of rows).

Example: the COUNT value is 12, and is located in cell G5. For simplicity sake I have a formula in cell I5 SUM(F1:F12). Instead of directly referencing F12, I want the formula to be SUM(F1:F(G5)).

Is this possible?
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

deanfran

Board Regular
Joined
Sep 9, 2011
Messages
52
Perfect. Thank you very much. I have asked this before, but is there any type of quick reference guide to things like this? I have a couple Excel books, and a VBA book, but none of them reference this.
 

kevatarvind

Well-known Member
Joined
Mar 3, 2013
Messages
1,047
Office Version
  1. 365
Platform
  1. Windows
one more

=SUM(F1:INDIRECT("F"&G5))
 

Firefly2012

Well-known Member
Joined
Dec 28, 2011
Messages
3,638
Perfect. Thank you very much. I have asked this before, but is there any type of quick reference guide to things like this? I have a couple Excel books, and a VBA book, but none of them reference this.

I must admit I haven't seen this particular way of referencing in books (maybe because I am looking in the worng books though!). This style I learned on this forum (and others like it) a while ago. Always in the past I've considered this forum to be my "quick reference" if I have a problem.
 

deanfran

Board Regular
Joined
Sep 9, 2011
Messages
52
"I must admit I haven't seen this particular way of referencing in books (maybe because I am looking in the worng books though!). This style I learned on this forum (and others like it) a while ago. Always in the past I've considered this forum to be my "quick reference" if I have a problem. "

Amen to that!
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,865
Messages
5,834,066
Members
430,260
Latest member
MANICX100

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top