Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
ADP ADP is offline
external usenet poster
 
Posts: 1
Default Rolling sum cell variable location input

I'm constructing a monthly cash flow statement and would like my accounts
receivable value to be a function of two arguments; sales and days sales
outstanding (DSO). DSO would drive the column offset divided by 30.

Current period sales (cell x,y) would be copied to accounts receivable (cell
x+1,y+column offset)) = ar1.

The value of ar1 would be determined by not only the preceding period sales
but sales from several periods (columns) prior.

Any help is greatly appreciated. I thank you in advance.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Rolling sum cell variable location input

I've done it like this. You asked!

E48:
=SUM(OFFSET(E38,0,MAX(COLUMN(Begin)-COLUMN(),1-MONTH(E$33)),1,1-MAX(COLUMN(Begin)-COLUMN(),1-MONTH(E$33))))

The cell I'm offsetting from is E38
Row offset = 0
Column offset = MAX(COLUMN(Begin)-COLUMN(),1-MONTH(E$33))
Either counts the number of columns from Begin (B33) to the current
column or
calculates the "MONTH" of cell E33. (I have dates in row 33 that are
incremented by month using a formula like this
C33: =Date(YEAR(B33),MONTH(B33)+1,DAY(B33))
Rows in range = 1
Columns in range:
1-MAX(COLUMN(Begin)-COLUMN(),1-MONTH(E$33))
Maximum of B33 (column - Current COlumn) or 1-Month(serial date in E33)

I'd suggest you wrap your brain around the OFFSET function and it will help
you a lot.
--
HTH,
Barb Reinhardt

If this post was helpful to you, please click YES below.



"ADP" wrote:

I'm constructing a monthly cash flow statement and would like my accounts
receivable value to be a function of two arguments; sales and days sales
outstanding (DSO). DSO would drive the column offset divided by 30.

Current period sales (cell x,y) would be copied to accounts receivable (cell
x+1,y+column offset)) = ar1.

The value of ar1 would be determined by not only the preceding period sales
but sales from several periods (columns) prior.

Any help is greatly appreciated. I thank you in advance.

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
how to set up a simple variable in Excel, but cell location independent Alberta K. New Users to Excel 3 December 19th 07 03:55 PM
Input Box selects a cell location to use in code Archie Excel Programming 5 July 12th 07 09:20 AM
Way to store cell location to variable? farful[_3_] Excel Programming 2 July 12th 06 11:44 PM
VBA - Passing Cell Location To Variable ajocius[_35_] Excel Programming 2 October 4th 05 01:55 PM
using variable as cell location Brad[_14_] Excel Programming 5 January 5th 04 07:17 PM


All times are GMT +1. The time now is 09:38 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"