offset function

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all,
I have a yearly cost in a column, I need to create another column for
quarterly cost with the source taken from yearly cost column. Am I right to
choose offset funtion in this case and if yes, how to set the correct one
(especially regarding the "height" in the function criteria).
Any help would be much appreciated.
LA
 
Do you want to sum quarterly based on a column of dates and amounts? If so
use

=SUMPRODUCT(--(A1:A365>=--"2005-01-01"),--(A1:A365<=--"2005-03-31"),B1:B365)

for the date range from Jan 1 to Mar 31
 
As an aside...........what is the difference between using " -- " in
sumproduct formulas, and using asteriks to seperate the criteria instead
instead.....?

Phil
 
I do not think "sumproduct" would help in this case where annual cost is in
one cell for one year, how can I divide it into 4 (4 quarter a year) in the
quarterly column. Is there any other posibble function?
Tks for your response.
 
I think you need to give some examples of your data and your expected
results.

Other than that it looks like =A1/4 to me, which I am sure is too
simplistic.

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
Tks, the scenario is as follow
In Column A (A1:A30), I have annual cost from year 1 to year 30 which is of
30 cells
Column B(B1:B120) is quarterly cost which consists of 120 cell (4 quarter a
year).
Now, I need to use a function to divide each cell in column A into 4 to 4
cells in Column B. Say: B1=A1/4, B2=A1/4, B3=A1/4, B4=A1/4 then (B5:B8)=A2/4
and so on.
So in this case, I do not think "sumproduct" would help but "offset" would.
But I do not know how to set up a correct formular. And I do not want to
divide it manually because in fact, I have much more than just only column A
and B. Do you have any idea?
 
LA said:
... annual cost is in one cell for one year,
how can I divide it into 4 (4 quarter a year) in the
quarterly column

Suppose in A2:A3, you have 2 yearly amounts, say:

100
200

and you want the 4 quarter amounts in B2:B9 as:

25
25
25
25
50
50
50
50

Put in B2:
=OFFSET($A$2,INT((ROWS($A$1:A1)-1)/4),,)/4
Copy down to B9
 
Think my earlier guess on the set-up was ok <g>

Try this ..

Put in B1:
=OFFSET($A$1,INT((ROWS($A$1:A1)-1)/4),,)/4
Copy down to B120
 
Great, that's what I need. Thank you very much

Max said:
Suppose in A2:A3, you have 2 yearly amounts, say:

100
200

and you want the 4 quarter amounts in B2:B9 as:

25
25
25
25
50
50
50
50

Put in B2:
=OFFSET($A$2,INT((ROWS($A$1:A1)-1)/4),,)/4
Copy down to B9
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top