I would like to be able to put the year in A1 and have in column B the months that have 5 Fridays in them. For instance if I put 2010 in A1, I would like in Column B January, April, July,October, December to appear. Any help would be appreciated if I put 2005 in A1 then I would like April, July, September, December.
I need a macro which, when given the date (eg StartMonth = 01/04/2006) of the first day of any month, will return the date of the third Friday of same month (eg ThirdFriday = 21/04/2006)
I have data that i download and I want to label A1 with last fridays date, i have tried =today()-3 but if i start my week on tuesday it will reflect sat date.
any vb code to express the date last friday no matter what day i download the data?
Log sheet Col a = Dates Col d = Route ( Letters and numbers) Col F = Times (1.2-2.3- examples) Log sheet has 1,550 rows +
How I have been finding total for the Last 12 months is the formula below
=SUMIF(LOG!A:A,">="&TODAY()-365,LOG!F:F)
Now what I would like to try and do is the same BUT. using COL D (on LOG sheet) to find out when I went to for example "JTF" be advised that COL D is a route, so there are many results in each cell in col d.. So examples below
COL F On Log sheet OERT-JPF-JMF-ASG1-JTF OERT-JTF-JTF-ADC17-ADC17-ARAB3-ARAB3-DHAMC-JSK OERT-JTF-JTF-ASG1-R655-JPF-JMF-LCL-JTF OERT-JTF-JTF-R655-DHAMC-HAW-DHMAC OERT-JTF-JTF-JTF-HI4-HI4-R655-ADC38-RS55-ES76-JPF-JMF-JPF-JMF OERT-JTF-JTF-HI4-R655-ADC38-ES76-PMT-FLIGHT TOUR VIPS
what is the formula to convert the date in MMYYYY into some numbers so that I can derive the difference between 2 dates?
For example: I have 2 dates 31-Jan-09 and 28-Nov-05 in Column A & Column B respectively. I would like to derive no. of months between the difference of the 2 dates which in this case is 38 months.
Attached is a copy of my data and i want to find the mode of each months data without typing it out into long hand form, eg. 111122222333344444 etc. so i believe the answer will be some where around 5 for most of them, but i just don't know a formular to show it automatically on the spread sheet.
I have collected some data on economic factors for different countries. Unfortunately, the dates when I started to calculated my economic factors are different for each country (due to the data available to me).
What I would like Excel to have done is to take the date when I started to measure for e.g. country A (D3 ie 30/06/2007), copy it into column "I" (for country A, it's cell I3) and fill in the following months in the rows below (with always the date of the last day of a month) until it reaches 28th of Feb 2013. Then, it should go up to the next country (country B) take the starting date (D4, ie 31/07/2007), go to the last entry in "I" (ie I71) and paste the date in, fill in the months until 28th of Feb 2013, do the same for country C and so on.
I have started to code a VBA but I am unfortunately a beginner in VBA and totally stuck at the moment. My VBA code does paste in the months but for some reason, it also changes the starting date of the first month.
Moreover, I tried a workaround for the fact that Excel doesnt know when to stop; ie I introduced a "monthdiff" variable which should calculate the number of months between the starting date (which is variable and unique for each country) and the end date (which is always 28th of Feb 2013). At the moment, it only does this for country A.
VB: Set rng = ActiveSheet.Range("I3" & Cells(monthdiff, "I").Address)[SIZE=4][/SIZE]
I have tried to make this dynamic but have been unsuccessful so far.
Spreadsheet with data&code is attached.
VB: Sub Macro1() Dim mainrange As Range Dim rng As Range
see attached file. Need to find latest non blank value - in attached file it is highlighted in yellow. From there, want to summarise 26 weeks back so, in the attached file:
Row 2 would be finding 750 and summarised back 26 weeks from 30 sep 2012 Row 3 would be finding 2250 and summarised back 26 weeks from 2 dec 2012 Row 4 would be finding 5000 and summarised back 26 weeks from 4 nov 2012
I need to sum data from the most recent 12 months. For example, on June 1, 2007 I want to find the total from June 1, 2006 to June 1,2007. On the 1st of the next month, July 1, 2007, I want to calculate the total from July 1, 2006 to July 1, 2007. I don't need to keep the total from month to month (on July 1, 2007, June's data is obsolete.)
I am working on yet another worksheet. To simplify the task, let's say I have to columns Date and Amount (several hundered entries). I need to be able to sum the first 60 consecutive months, that do not equal 60. Is there a way to use built-in excel formulas to do so, or would I have to create my own formula. I'm trying to stay away from a macro that is run manually.
I input a month as a start date, and then want the next x number of cells to increment by one month based on the start date. I thought this would be easy using the preset DATE function but I can't get the thing to do what I want.
I am trying to find a way to sum 3 months together with the data given. (See attched file). Basically a quarter report. Right now the months are in text format (Jan, Feb, Mar, etc). They can be numeric instead of text if it is easier.
I need to be able to calculate age in months, and round whatever remainder to the middle of the month (.5). I am calculating z-scores and percentiles for in a childhood obesity project. The DoB and Date of measurements must be converted to read anything from 142.0 to 142.9 as 142.5.
This value will be used to look up the the appropriate LMS (Box Cox, Median, and Standard Deviation) in another excel table. I have to be able to compute age in months so 142.5, 143.5, 144.5, 144.5 etc. It is just not rounding off to the nearest half month.
I am using Ron De Bruin's code for sending emails as below, where it says "your monthly totals for", I want it to insert last months month. ie. if i send the mail in March it should automatically insert February in the field
RDB_Mail_PDF_Outlook Filename, "ron@debruin.nl", "This is the subject", _ "your monthly totals for "March" " _ & vbNewLine & vbNewLine & "Regards Ron de bruin", False
My spreadsheet calculates the date on a daily basis.
I would like to create a code in my spreadsheet which uses the year and month in question.
First, 2006 is is designated as a "3" 2007 "4" 2008 "5" 2009 "6" etc
Don't worry about anything prior to 2006.
Next, the months are represented by single digits. So, January = 1, February = 2, March = 3, April =4, etc. September is 9, and October = 10 but all the numbers over 9 have to be reduced to a single digit, so October = 1+0=1, November =1+1= 2, December =1+2= 3.
Now, the formula for the Month is:
Year + current Month
So, May 2007 = 4 + 5 = 9 June 2007 = 4 + 6 = 10 = 1 July 2007 = 4 + 7 = 11 = 2, January 2008 = 5 + 1 = 6, etc
I have managed to create a formula to add a date (contained in cell E3) to a number of months (contained in cell F3).
This formula is in cell G3 =DATE(YEAR(E3), MONTH(E3)+(F3+1), 0)
This works fine. Apart from before I put information into E3 and or F3 then G3 displays "31/01/1900". I wish G3 to remain empty until information is entered into both E3 and F3.
I have used data validation on cell E3 to restrict users to enter a date between 01/01/1980 and 01/01/2099.