Dude 2 Excel Dude
New Member
- Joined
- Apr 21, 2014
- Messages
- 8
I have a database where my information is up to Aug-17.
If I use the Month function in Aug-17 the result will be 8.
However, I want the latest month available have a result 1.
This means that if I have historical information, the previous months also reclassify.
[TABLE="width: 268"]
<tbody>[TR]
[TD]Month[/TD]
[TD]Result Month #[/TD]
[/TR]
[TR]
[TD]Jul-16[/TD]
[TD="align: right"]14[/TD]
[/TR]
[TR]
[TD]Aug-16[/TD]
[TD="align: right"]13[/TD]
[/TR]
[TR]
[TD]Sep-16[/TD]
[TD="align: right"]12[/TD]
[/TR]
[TR]
[TD]Oct-16[/TD]
[TD="align: right"]11[/TD]
[/TR]
[TR]
[TD]Nov-16[/TD]
[TD="align: right"]10[/TD]
[/TR]
[TR]
[TD]Dec-16[/TD]
[TD="align: right"]9[/TD]
[/TR]
[TR]
[TD]Jan-17[/TD]
[TD="align: right"]8[/TD]
[/TR]
[TR]
[TD]Feb-17[/TD]
[TD="align: right"]7[/TD]
[/TR]
[TR]
[TD]Mar-17[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD]Apr-17[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD]May-17[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]Jun-17[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD]Jul-17[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]Aug-17[/TD]
[TD="align: right"]1[/TD]
[/TR]
</tbody>[/TABLE]
If my latest information was up to Sep-17 this would be the resulta:
[TABLE="width: 165"]
<tbody>[TR]
[TD]Month[/TD]
[TD]Result Month #[/TD]
[/TR]
[TR]
[TD]Jul-16[/TD]
[TD="align: right"]15[/TD]
[/TR]
[TR]
[TD]Aug-16[/TD]
[TD="align: right"]14[/TD]
[/TR]
[TR]
[TD]Sep-16[/TD]
[TD="align: right"]13[/TD]
[/TR]
[TR]
[TD]Oct-16[/TD]
[TD="align: right"]12[/TD]
[/TR]
[TR]
[TD]Nov-16[/TD]
[TD="align: right"]11[/TD]
[/TR]
[TR]
[TD]Dec-16[/TD]
[TD="align: right"]10[/TD]
[/TR]
[TR]
[TD]Jan-17[/TD]
[TD="align: right"]9[/TD]
[/TR]
[TR]
[TD]Feb-17[/TD]
[TD="align: right"]8[/TD]
[/TR]
[TR]
[TD]Mar-17[/TD]
[TD="align: right"]7[/TD]
[/TR]
[TR]
[TD]Apr-17[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD]May-17[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD]Jun-17[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]Jul-17[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD]Aug-17[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]Sep-17[/TD]
[TD="align: right"]1
[/TD]
[/TR]
</tbody>[/TABLE]
Thanks in advance,
Dude
If I use the Month function in Aug-17 the result will be 8.
However, I want the latest month available have a result 1.
This means that if I have historical information, the previous months also reclassify.
[TABLE="width: 268"]
<tbody>[TR]
[TD]Month[/TD]
[TD]Result Month #[/TD]
[/TR]
[TR]
[TD]Jul-16[/TD]
[TD="align: right"]14[/TD]
[/TR]
[TR]
[TD]Aug-16[/TD]
[TD="align: right"]13[/TD]
[/TR]
[TR]
[TD]Sep-16[/TD]
[TD="align: right"]12[/TD]
[/TR]
[TR]
[TD]Oct-16[/TD]
[TD="align: right"]11[/TD]
[/TR]
[TR]
[TD]Nov-16[/TD]
[TD="align: right"]10[/TD]
[/TR]
[TR]
[TD]Dec-16[/TD]
[TD="align: right"]9[/TD]
[/TR]
[TR]
[TD]Jan-17[/TD]
[TD="align: right"]8[/TD]
[/TR]
[TR]
[TD]Feb-17[/TD]
[TD="align: right"]7[/TD]
[/TR]
[TR]
[TD]Mar-17[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD]Apr-17[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD]May-17[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]Jun-17[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD]Jul-17[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]Aug-17[/TD]
[TD="align: right"]1[/TD]
[/TR]
</tbody>[/TABLE]
If my latest information was up to Sep-17 this would be the resulta:
[TABLE="width: 165"]
<tbody>[TR]
[TD]Month[/TD]
[TD]Result Month #[/TD]
[/TR]
[TR]
[TD]Jul-16[/TD]
[TD="align: right"]15[/TD]
[/TR]
[TR]
[TD]Aug-16[/TD]
[TD="align: right"]14[/TD]
[/TR]
[TR]
[TD]Sep-16[/TD]
[TD="align: right"]13[/TD]
[/TR]
[TR]
[TD]Oct-16[/TD]
[TD="align: right"]12[/TD]
[/TR]
[TR]
[TD]Nov-16[/TD]
[TD="align: right"]11[/TD]
[/TR]
[TR]
[TD]Dec-16[/TD]
[TD="align: right"]10[/TD]
[/TR]
[TR]
[TD]Jan-17[/TD]
[TD="align: right"]9[/TD]
[/TR]
[TR]
[TD]Feb-17[/TD]
[TD="align: right"]8[/TD]
[/TR]
[TR]
[TD]Mar-17[/TD]
[TD="align: right"]7[/TD]
[/TR]
[TR]
[TD]Apr-17[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD]May-17[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD]Jun-17[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]Jul-17[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD]Aug-17[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]Sep-17[/TD]
[TD="align: right"]1
[/TD]
[/TR]
</tbody>[/TABLE]
Thanks in advance,
Dude
Last edited: