Formula to repeat a value

chipgiii

Board Regular
Joined
Nov 24, 2008
Messages
136
I have two sets of months in a row, each column in that row is the next month. The first set of months is Jan thru Dec. The second set is two years of Jan thru Dec.

In the first 12 months only one month will have a value, the rest is zeros. I want a formula that repeats the value of that one month for twelve months in second (two year) 24 months.

Jan Feb Mar Apr May..... Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec Jan Feb Mar Apr
50 0 50 50 50 50 50 50 50 50 50 50 50 50 0 0 0
60 0 0 0 0 60 60 60 60 60 60 60 60 60 60 60 60


The month columns are actually dates 1/1/2017 2/1/2017 etc,

Having no luck.

Thanks,
Chip
 
Last edited:

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Hi,

I might be misunderstanding your description, is this what you mean?


Book1
ABCDEFGHIJKLMNOPQRSTUVWX
1JanFebMarAprMayJunJulAugSepOctNovDecJanFebMarAprMayJunJulAugSepOctNovDec
20005000000000505050505050505050505050
30000000060000606060606060606060606060
Sheet32
Cell Formulas
RangeFormula
M2=MAX($A2:$L2)


Drag formula down and across as required.
 
Upvote 0
Hi,

I might be misunderstanding your description, is this what you mean?

ABCDEFGHIJKLMNOPQRSTUVWX
1JanFebMarAprMayJunJulAugSepOctNovDecJanFebMarAprMayJunJulAugSepOctNovDec
20005000000000505050505050505050505050
30000000060000606060606060606060606060

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet32

Worksheet Formulas
CellFormula
M2=MAX($A2:$L2)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>



Drag formula down and across as required.

I think I figured it out. Your example above is close but the "60" would not start until September and then continue for 12 months.
I ended up with this: =IF(F4=0,I4,IF(AND($D4<=AH$3,EDATE($G4,-1)>=AH$3),MAX($I4:$AF4),0)). The first part "If(F4=0" is to determine whether to start the in put that is to repeat. This is a bit of a nightmare as they are looking at a savings amount and then if it is a one time event, make it one time, other wise spread if over the next 12 months....

Thanks for you interest and help.
 
Upvote 0

Forum statistics

Threads
1,215,568
Messages
6,125,599
Members
449,238
Latest member
wcbyers

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top