Moving cells by adding rows.

kramart

New Member
Joined
Apr 3, 2014
Messages
39
2017-07
2017-06
2017-07
2017-07

<colgroup><col style="mso-width-source:userset;mso-width-alt:1974;width:41pt" width="54"> <col style="mso-width-source:userset;mso-width-alt:4315;width:89pt" width="118"> <col style="width:48pt" width="64"> </colgroup><tbody>
[TD="width: 54"]2017-06
[/TD]
[TD="class: xl65, width: 118, align: center"]AAA
[/TD]
[TD="width: 64, align: right"]163386[/TD]

[TD="class: xl65, align: center"]AAA
[/TD]
[TD="align: right"]12807
[/TD]

[TD="class: xl65, align: center"]BBB
[/TD]
[TD="align: right"]31531[/TD]

[TD="class: xl65, align: center"]BBB[/TD]
[TD="align: right"]16388[/TD]

[TD="class: xl65, align: center"]CCC
[/TD]
[TD="align: right"]114734[/TD]

</tbody>

This is my data. The first column is date then client code and finally value. Every month the data is amended by adding extra rows for a new month, so it looks like this.

2017-07
2017-08
2017-06
2017-07
2017-08
2017-07
2017-08

<colgroup><col style="mso-width-source:userset;mso-width-alt:1974;width:41pt" width="54"> <col style="mso-width-source:userset;mso-width-alt:4315;width:89pt" width="118"> <col style="width:48pt" width="64"> </colgroup><tbody>
[TD="width: 54"]2017-06[/TD]
[TD="class: xl65, width: 118, align: center"]AAA
[/TD]
[TD="width: 64, align: right"]163386[/TD]

[TD="class: xl65, align: center"]AAA[/TD]
[TD="align: right"]12807
[/TD]

[TD="class: xl65, align: center"]AAA[/TD]
[TD="align: right"]555444
[/TD]

[TD="class: xl65, align: center"]BBB[/TD]
[TD="align: right"]31531[/TD]

[TD="class: xl65, align: center"]BBB[/TD]
[TD="align: right"]16388
[/TD]

[TD="class: xl65, align: center"]BBB[/TD]
[TD="align: right"]222333[/TD]

[TD="class: xl65, align: center"]CCC[/TD]
[TD="align: right"]114734[/TD]

[TD="class: xl65, align: center"]CCC[/TD]
[TD="align: right"]111555
[/TD]

</tbody>

I need a formula that would get values for given months. For example, if the value for the client AAA for 2017-07 is 12807 (cell C2) then after adding a row for 2017-08 the formula would get the value 555444 (cell C3) and next month would go to cell C4 and so on. For other clients, the same scenario.


Cheers,

A
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Supposing you want results in col D (?) =IF($B1<>$B2,$C1,"") and pull down as needed
 
Upvote 0
However I want to use the formula on a separate sheet for each client for a period of 12 months so if I use this formula the fourth month / cell will show the value from another client. Is there a way to make sure that values are from the required client?
 
Upvote 0

Forum statistics

Threads
1,224,825
Messages
6,181,190
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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