Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
BeSmart
 
Posts: n/a
Default Apply to next X cells to the right...

Hi all

I have a form where users enter a quantity into a cell (eg cell D6 =
450,000) and enters a number of weeks into a second cell (eg D1 = 10).

I have 52 columns (ie 52 weeks) in columns BA6:CZ6 which I'll call the
"thousands grid".

I need a formula in each "thousands grid" cell to:

- Determine if it's equivalent cell is 0 (eg in range A6:AZ6 it will find
that D6 is0),

- Go to that equivalent cell in the "thousands grid" (BD6) and calculate
the value it found (in this case in cell D6) divided by the number of weeks
in cell D1

- then repeat that formula in the next X cells to the right (X = number
quoted in D1).

So what I'm trying to do is split the value found on the row by the number
of weeks entered and report that figure in each individual cell over the
period.

I hope that makes sense.
I can't do a pivot table or anything like that because this is one of many
functions occurring on my spreadsheet.

Any help would be greatly appreciated as always.
--
Thank for your help
BeSmart
  #2   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

BeSmart,

(I knew a guy named B. Smart, a photographer who went to RIT... any
relation? ;-) )

In cell BA6, array-enter this formula (using ctrl-shft-enter), and copy as
far to the right (CZ6) as you need.

=SUM(IF((COLUMN()=(COLUMN($AZ6)+COLUMN($A$1:$AZ$1 )))*(COLUMN()<=(COLUMN($AZ6)+$A$1:$AZ$1)),$A6:$AZ6/$A$1:$AZ$1))

Watch the line wrapping. This assumes that any value in the first 52
columns needs to be spread out over the corresponding number of weeks in row
1, and summed up in the BA6:CZ6 cells.

The formula can be copied down as far as you need. However, you might want
to copy it further to the right than CZ6 since some of the values entered in
the rightmost data entry cells (say, column BW) may need to be "spread"
further to the right....

HTH,
Bernie
MS Excel MVP



"BeSmart" wrote in message
...
Hi all

I have a form where users enter a quantity into a cell (eg cell D6 =
450,000) and enters a number of weeks into a second cell (eg D1 = 10).

I have 52 columns (ie 52 weeks) in columns BA6:CZ6 which I'll call the
"thousands grid".

I need a formula in each "thousands grid" cell to:

- Determine if it's equivalent cell is 0 (eg in range A6:AZ6 it will
find
that D6 is0),

- Go to that equivalent cell in the "thousands grid" (BD6) and calculate
the value it found (in this case in cell D6) divided by the number of
weeks
in cell D1

- then repeat that formula in the next X cells to the right (X = number
quoted in D1).

So what I'm trying to do is split the value found on the row by the number
of weeks entered and report that figure in each individual cell over the
period.

I hope that makes sense.
I can't do a pivot table or anything like that because this is one of many
functions occurring on my spreadsheet.

Any help would be greatly appreciated as always.
--
Thank for your help
BeSmart



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
Help adding text values Texas-DC_271 Excel Worksheet Functions 7 January 15th 05 11:14 PM
How do I apply a combo box to multiple cells in Excel so that it . DB Excel Discussion (Misc queries) 1 January 12th 05 03:42 PM
To safety merge cells without data destroyed, and smart unmerge! Kevin Excel Discussion (Misc queries) 0 December 30th 04 07:17 AM
Convert data of cells to any type: Number, Date&Time, Text Kevin Excel Discussion (Misc queries) 0 December 30th 04 06:55 AM
How do I apply a Function to a column of cells and change there va Froggy New Users to Excel 1 December 23rd 04 12:09 AM


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