Dates + Macros

DarkOwl

New Member
Joined
Dec 28, 2004
Messages
34
Basically i have a problem, to which i cannot find a working solution.
I have a sheet with an invoice on, which has a date.
I am trying to get a macro which takes the value of the cell which has the date in, and detrmines what Month it is in, and pastes it in a Table, which has the Months down one column.
Basically i need to knw what funcions to use to sort dates in the form of dd/mm/yy into a table showing months

I cna change the formt the date is displayed in if needed or helpfull.
Thanks in advance :)
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Hi

Why don't you copy the whole date over and format the cell to "mmmm" which will then display the month.
If the months need to be sorted irrespective of the year just create another column with the formula showing "=MONTH(a2)" where a2 is the full date.

HTH

John
 
Upvote 0

Forum statistics

Threads
1,206,833
Messages
6,075,128
Members
446,123
Latest member
junkyardforme

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