ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Giving Months Numerical Values (https://www.excelbanter.com/excel-discussion-misc-queries/59518-giving-months-numerical-values.html)

luvthavodka

Giving Months Numerical Values
 
I have a spreadsheet containing data over various numbered weeks. From this I
use VLookup to produce a graph showing the data from the last 13 weeks. Each
time the current week number is updated, the last 13 weeks change in turn.

On the same spreadsheet I also keep the data by month. I now want to use a
similar VLookup to produce a graph showing the last 6 months. How/Is it
possible to give eg November a numerical value so the other rows are eg
November-5 (June) November-4 (July) etc?

Roger Govier

Giving Months Numerical Values
 
Hi
With an Excel date in A1,
=Month(A1) will return the Month number
To make it an offset from November, it would be
=11-MONTH(A1)

Regards

Roger Govier


luvthavodka wrote:
I have a spreadsheet containing data over various numbered weeks. From this I
use VLookup to produce a graph showing the data from the last 13 weeks. Each
time the current week number is updated, the last 13 weeks change in turn.

On the same spreadsheet I also keep the data by month. I now want to use a
similar VLookup to produce a graph showing the last 6 months. How/Is it
possible to give eg November a numerical value so the other rows are eg
November-5 (June) November-4 (July) etc?



All times are GMT +1. The time now is 05:56 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com