Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 122
Default Select a range of cells

I have a sales budget. Row 2 across is Budgeted sales for each month
January - December.

I need to know how to return a sum of budgeted sales to date. For
example, if I am looking at a budget report, I need a formula return
just columns Jan-Aug budgeted sales if I am reporting budgeted YTD
sales thru August based on a cell containing the August date.

ie. Budgeted sales. Select Month: August.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default Select a range of cells

Here is one way

=SUM(OFFSET(B2,0,0,1,MATCH(B1,$B$1:$M$1,0)))

This formula assumes that
Your values to total are in B2:M2
Your titles Jan - Dec are in B1:M1
Your period to total to (Aug) is in B1

Note that this function uses offset which is volatile and as such comes with
extra calculation overhead. If you end up with thousands of this type of
formula you will notice slow recalculations...
--
HTH...

Jim Thomlinson


"wx4usa" wrote:

I have a sales budget. Row 2 across is Budgeted sales for each month
January - December.

I need to know how to return a sum of budgeted sales to date. For
example, if I am looking at a budget report, I need a formula return
just columns Jan-Aug budgeted sales if I am reporting budgeted YTD
sales thru August based on a cell containing the August date.

ie. Budgeted sales. Select Month: August.
.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 122
Default Select a range of cells

On Dec 23, 1:32*pm, Jim Thomlinson <James_Thomlin...@owfg-Re-Move-
This-.com wrote:
Here is one way

=SUM(OFFSET(B2,0,0,1,MATCH(B1,$B$1:$M$1,0)))

This formula assumes that
Your values to total are in B2:M2
Your titles Jan - Dec are in B1:M1
Your period to total to (Aug) is in B1

Note that this function uses offset which is volatile and as such comes with
extra calculation overhead. If you end up with thousands of this type of
formula you will notice slow recalculations...
--
HTH...

Jim Thomlinson

"wx4usa" wrote:
I have a sales budget. Row 2 across is Budgeted sales for each month
January - December.


I need to know how to return a sum of budgeted sales to date. For
example, if I am looking at a budget report, *I need a formula return
just columns Jan-Aug budgeted sales if I am reporting budgeted YTD
sales thru August based on a cell containing the August date.


ie. Budgeted sales. Select Month: August.
.


Is there a way to add a MATCH function (Like in the last part of the
formula) to the start month so I can have a range such as May-August?
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
Use xldown to select a range of cells merry_fay Excel Discussion (Misc queries) 3 May 26th 09 05:54 PM
When entering data into a range of cells, select the entire range. Q Excel Discussion (Misc queries) 0 September 26th 07 04:36 AM
Select a range but only sum the cells in a certain colour? jlm2184 Excel Worksheet Functions 1 March 24th 06 11:50 AM
Select Range of Cells programmingrookie Excel Discussion (Misc queries) 2 August 11th 05 07:13 PM
select a range using "cells()" fullers Excel Worksheet Functions 2 July 6th 05 06:00 PM


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