Fill Value from a table

Hendric

New Member
Joined
Jan 4, 2018
Messages
14
All,

What best formula can be used to transfer this table below A1:B5 to table C1:O2?
[TABLE="width: 500"]
<tbody>[TR]
[/TR]
[TR]
[/TR]
</tbody>[/TABLE]

[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD="align: center"]A
[/TD]
[TD="align: center"]B
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD="align: center"]Month
[/TD]
[TD="align: center"]Cost
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD="align: center"]Jan
[/TD]
[TD="align: center"]100
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD="align: center"]Apr[/TD]
[TD="align: center"]250
[/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD="align: center"]Jun
[/TD]
[TD="align: center"]200
[/TD]
[/TR]
[TR]
[TD]5
[/TD]
[TD="align: center"]Aug
[/TD]
[TD="align: center"]0
[/TD]
[/TR]
</tbody>[/TABLE]

This result what I am looking for as per table below. When B4 equal zero, B3 value will replace all value until Dec.
If B5 not equal zero, Aug to Dec will be filled by B5.

[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD="align: center"]C
[/TD]
[TD="align: center"]D
[/TD]
[TD="align: center"]E
[/TD]
[TD="align: center"]F
[/TD]
[TD="align: center"]G
[/TD]
[TD="align: center"]H
[/TD]
[TD="align: center"]I
[/TD]
[TD="align: center"]J
[/TD]
[TD="align: center"]K
[/TD]
[TD="align: center"]L
[/TD]
[TD="align: center"]M
[/TD]
[TD="align: center"]N
[/TD]
[TD="align: center"]O
[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]Month
[/TD]
[TD="align: center"]Jan
[/TD]
[TD="align: center"]Feb
[/TD]
[TD="align: center"]Mar
[/TD]
[TD="align: center"]Apr
[/TD]
[TD="align: center"]May
[/TD]
[TD="align: center"]Jun
[/TD]
[TD="align: center"]Jul
[/TD]
[TD="align: center"]Aug
[/TD]
[TD="align: center"]Sep
[/TD]
[TD="align: center"]Oct
[/TD]
[TD="align: center"]Nov
[/TD]
[TD="align: center"]Dec
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]Cost
[/TD]
[TD="align: center"]100
[/TD]
[TD="align: center"]100
[/TD]
[TD="align: center"]100
[/TD]
[TD="align: center"]250
[/TD]
[TD="align: center"]250
[/TD]
[TD="align: center"]200
[/TD]
[TD="align: center"]200
[/TD]
[TD="align: center"]200
[/TD]
[TD="align: center"]200
[/TD]
[TD="align: center"]200
[/TD]
[TD="align: center"]200
[/TD]
[TD="align: center"]200
[/TD]
[/TR]
</tbody>[/TABLE]

Thank you very much for any feedback.

Regards,
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
something along these lines I assume



Excel 2010
E
3100
Sheet1
Cell Formulas
RangeFormula
E3=IFERROR(1/(1/INDEX($B$2:$B$8,MATCH(E$2,$A$2:$A$8,0))),D3)




Excel 2010
ABCDEFGHIJKLMNOPQ
1MonthCost
2Jan100MonthJanFebMarAprMayJunJulAugSepOctNovDec
3Apr250Cost100100100250250200200200200200160160
4Jun200
5Aug0
6Oct0
7Nov160
8Dec0
Sheet1
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,260
Members
452,627
Latest member
KitkatToby

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