This auto run macro does not seems to run/repeat itself daily. I can't figure out why am I missing something? My end result should be that these reports run at the times listed on the macro every day 24/7. The spreadsheet will be on a computer that is never off.
I have a shared workbook where 5-6 people could be updating the log sheet at any one time. The problem is a I have a macro that I would like to run to update ( cut n paste to different sheets, etc) that doesnt like running when the workbook is shared. What I currently do is have a button that when clicked - changes the document to exclusive, runs the macro, then changes back to shared. I was hoping I could run the macro on an worksheet event? But i'd like it to run only once - Possibly when its first opened for the day by anyone of the users.
I have a file that gives some statistical data to my co-workers every 15 minutes. A common question I get is "How does that compare to last week?" Then I have to open the file from 7 days ago, find the data from the same time interval, and subtract it from this week's number in my head. I'd like to have excel do this for me.
I know how to get data from an external file. The problem is, these files are named with a date on the end of the file name. So tomorrow, the static formula won't work anymore (or rather, it will give data for a file from 8 days ago, instead of 7). I'd like to excel to use today's date, find the file from 7 days ago, and get the data from that file to compare to the current file.
Here's what I've done so far:
Code: ThisDate = Range("C1").Value 'the cell with todays date in it ThisDateName = Format$(ThisDate, "yyyy-mm-dd") 'now formatted the way I need it ThisDate7 = Range("G1").Value 'the cell with the date 7 days ago ThisDateName7 = Format$(ThisDate, "yyyy-mm-dd") 'formatted correctly ThisDate14 = Range("G2").Value 'the cell with the date 14 days ago ThisDateName14 = Format$(ThisDate, "yyyy-mm-dd") 'you know, in case of a holiday 7 days ago
I have no clue what to do next. I want Excel to: Use "ThisDateName7" to find the file with the name "pph_tracker_[ThisDateName7].xlsm"Get data from a cell in that file (say, C15)Subtract it from the data in the same cell (C15) in today's file (this week - last week)Give me the result in today's file (say in cell C20)Do that again for cells D15, E15, and so on (result in D20, E20, etc)
I assume I can figure out the rest from there. Can I use the variable names in an actual formula in cell C20? Something like:
=C15 - '[pph_tracker_{ThisDateName7}.xlsm]Sheet1'!C15 or even =C15 - '[pph_tracker_{The Date in Cell $G$1}.xlsm]Sheet1'!C15 which would require no macros at all!
I have a table of data covering the last 9 months based on values automatically collated from 15 minute intevals. The date/time is in column A (01/01/2009 00:00) with the data collected in column D.
My wish is to get the average daily data from column D and I am slowly losing my head!!!
Is there anyway of getting a formula to auto-average the daily values bearing in mind there are currently 96 daily entries.
I have tried converting the first 5 digits of column A to numeric (i.e. 31894 for 01/01) then trying to write a formula saying =average(D1:D24577,if(range="31894",1)).
I can now see a simpler way but am so confused after an hour or so of trying.
Each day has 96 readings so I need an auto adding formula. average column cell A would say =average(D1:D96).
Is there are way to have the cell below auto-update itself to look at the next 96 values and so on and so forth?
I have a large set of daily rainfall and evaporation data (see attached sheet) which I would like to sum into monthly data. I have previously been doing this in Access, can anyone show me a quick way to do it in excel?
How to write a macro that will sum daily figures into monthly figures? On the attached spreadsheet I would like to take the daily figures on the amounts on the VRU DAILY worksheet and sum them in the appropriate month on the VRU # sheet.
I have a daily log for work that keeps track of purchases and returns among other items and I was wondering if there was a way I could have all this information get put into a log that will amend everything for each week, month and year.
I have a query regarding making a Excel Sheet for Daily sales.
here I go, Well i want to make an Excel Sheet where in I just need to enter the Date, Invoice Number , Product , No of Product and rest it should calculate the VAT (Rounding Off) amount N den the Grand Total..
I have a table which contains Day, Projects, Proj Completed and % completed. I would need to get the target % starting thu so that I can end the week completing 90% of all my projects. Fri - Sun would show the same targets as Thu. Once Fri comes, i just need to update Thu with the actual projects I completed and Fri - Sun will show me my new target % to achieve 90%. Just in case hitting 100% will not achieve the 90%, it will just show 100% for the remaining days.
DayProjectsCompleted% Mon4375% Tue55100% Wed8450% Thu9?? If today is Thu, whats my target % to close the week at 90% ? Fri8??Fri, Sat and Sun would show equal targets as Thu. Sat6?? Sun7?? Total 47?90%target % at end of week ( formula for % is total completed / total projects)
I use a program called Fishbowl for inventory management. Each day, the program generates a report of all orders fulfilled that day as a .csv file. I want to create a macro that will automatically open this file daily, reformat it, save it as an Excel file and email a .pdf of the reformatted file to my boss.
I can work out the formatting, and emailing. Where I am having trouble is right up front. The program saves the .csv file to a folder with the name Shipments today YYYY-MM-DD HH-MM
The report is generated each day at 18:00 so that part of the name remains the same, but the date changes daily.
If I ran the macro at 18:10 each day, is there a way to code it so it can open the right file?
Im handling a graph, line type, that needs to be updated daily, as daily, another cell in the row will be filled.
Anyone can tell me how I can make it update daily and still only show untill todays data. For instance: today is the 7 of May and I want only to show the evolution from the first of the month to the 7th but tomorrow I want it to automatically show from 1 to the 8th,and so on...
I have a two rows of data one containing names and the other containing corresponding numbers. The names are static and the numbers change on a daily basis. I want to be able to copy the numbers to a static table next to each name on a daily basis (so I can see what the value was a few weeks ago).
Is there anything I can write to do this job?
My thinking was to set a vlookup to grab the data but i'm not sure how this would work because the vlookup would change daily when the numbers change
I have a spreadsheet that needs to reference another spreadsheet to obtain a daily target figure. Unfortunately the way the system is set up at work, each day of the year has it's own spreadsheet in it's own folder, and the figure I need needs to be updated each day from the corresponding spreadsheet.
At the moment I simply have 366 (a spare unused one for leap years) different formulas to compare dates and return the figure from todays date. The downside here is that it takes excel 50 seconds to open the spreadsheet because of this, so I assume it's checking all of these figures in all those spreadsheets instead of just the one that's true.
so I have =IF(E2=AF2,spreadsheet address,0) Where E2 is todays date and AF2 is a date from a list.
What I'd like is a method to do something similar but with one or two formulas that will simply update the address of the file I need the figure from based on what date it is so that it will only look at one spreadsheet when it opens instead of all 365.
I tried the following: IF(E$2=AF302,('C:spreadsheets('H:[Punch 2 Spreadsheet.xlsb]Punch 2 Metrics'!Z$28)[UVS Cell WEB.xlsx]Punch 2'!B$3)/1000,#N/A)
Where the section in bold replaces the part of the address with the date folders (20091091) for example, and instead has a cell reference which is formatted to replace this section and updates automatically each day.
It does not work obviosuly and I wanted to know I'm just not formatting the formula correctly or if this idea is a dead end.
I need to count the daily average of a task to a week ending number. I need to see the current average after each day during the week. Example – Mon = 2, Tues = 4 AVERAGE is 3 – Wed = 2 AVERAGE IS NOW 2.6…and so on averaging out after each day is added.
The data was taken in 15 min intervals and is organized by date. I have one column with the date and time and another column with the data. I need to find the average for each day. I have almost a years worth of data. Is there any formula I can enter to find the values in a given day and return the average of the values (without having to select the data for each day)? I want to be able to copy the formula down a column with the value per day.
I this, We are distributing work on 6 hrs/day basis. What I need is, I need to automate the work distribution on daily basis and should show the hrs also. and the projected date of completion. (yellow highlighted cells are where the formulas are needed)
I am performing a given exercise every day in the month of march. I have the dates all lined up in my spreadsheet, with the sum at the bottom. What I want to do is have another cell that will give me my daily average of performance. For example today is the 2nd and I have performed this exercise 360 times, making my daily average 130 per day. If I performed 200 of the exercise tomorrow I would have a grand total of 560 repetitions making my daily average roughly 186 per day (the day, march 3 divided by the number of repetitions, 560) and so on and forth.
I need a formula that will automatically calculate that daily average as I progress with the month. But I want the calculation to stop at the end (i.e. I don't want it to continue as the year progresses, meaning the divisor keeps going throughout the rest of the year). Basically, I guess, I am looking to fill in the daily repetition and the divisor to increase each day as I do so. My average is to be displayed in cell B36, so today my formula should read (=2/B36) and on March 31st the formula would be (=31/B36).
Formula to calculate a daily compound interest based on the higher rate of the two rates for the first 5 years, then after 5 years the calculation would only be based solely on the blocked rate.
I am trying to build a sales sheet that will keep all the records during the month but every day it refreshes to a blank sheet, then allowing users to flick back to a previous day and all the data from then is still saved?
I think this is possible in excel as I am sure I have seen a working sheet before but I don't know where to start or even what the process would be called in excel?
Is it possible to turn monthly data into daily? Repeating the same data for four sets of five working days to turn a CPI monthly inflation index into daily data, to turn example 1 into example 2.
Some years ago I came across a formulae to calculate Daily Interest on a Building Society Savings account in the UK. I have used this since but find my calculations never work out the same as my BS, although to my advantage! It is =B3*B4/360*DAYS360(B5,B6,TRUE) Where:
B3=Capital B4=Interest Rate B5=Starting Date B6=Finishing Date
For some reason the formulae uses 360/year and not 365/year. Using both still gives wrong answer.
Column A = Date Column B = Numbers Column C = results
As you can see Column C, I manually did what I want the formula to do, which is get last number from the previous week. (weekdays only, but can be either 1,2,3,4 or 5 days due to holidays).