ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How can I assign a range starting cell based on a variable locati. (https://www.excelbanter.com/excel-discussion-misc-queries/16913-how-can-i-assign-range-starting-cell-based-variable-locati.html)

feman007

How can I assign a range starting cell based on a variable locati.
 
I'm wondering if there is a way to assign a range starting (or ending) cell
location based on a variable number. For instance, say I have cells B1
through B20 and want to take an average, but not of the entire range. Say I
only want to average B5:B20 but the "5" is given to me by a separate
equation. Is there a way to write

=AVERAGE(B???:B20)

so that the ??? is referenced to another cell? That way I can cite a range
based on a variable starting point.

Thanks,
Dave

by the way, these newsgroups are awesome

Bob Phillips

see response in worksheet.functions

--

HTH

RP
(remove nothere from the email address if mailing direct)


"feman007" wrote in message
...
I'm wondering if there is a way to assign a range starting (or ending)

cell
location based on a variable number. For instance, say I have cells B1
through B20 and want to take an average, but not of the entire range. Say

I
only want to average B5:B20 but the "5" is given to me by a separate
equation. Is there a way to write

=AVERAGE(B???:B20)

so that the ??? is referenced to another cell? That way I can cite a

range
based on a variable starting point.

Thanks,
Dave

by the way, these newsgroups are awesome





All times are GMT +1. The time now is 03:18 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com