Im looking for an Excel macro that will allow me to input any date and time and produce x,y,z co-ordinate results for planetary positions relative to the centre of the universe. I already have a database with ephemeris data but find it difficult to use manually inputting date and time constantly. I need to perform so many calculations that automating this procedure is essential to me but i dont know how.
I have a page of planetary symbols (astrology) in 3 columns (A,B,C ) in date order, that I'd like to copy across on the same line (date) ,to a designated column on the same sheet, in order of the ColD symbol it won't show here properly as there's no astro font, just tried it.
eg A B C D E F date Mercury 180 Venus Mercury180Venus " Venus 60 Mars Venus 60 Mars " Jupiter 30 Venus Jupiter 30 Venus
here, we have Venus copied to same line in ColE Mars " " " ColF how to sort the columns, Cols B,C & D themselves could be resorted instead into the order of the ColD symbol-- so I'd have colA, date-- the B,C,D sorted by D, into about 8 Cols to the right
I have daily streamflow data for a large number of years. One column is the date and the second column is the streamflow value. I want to compute the maximum value and the 3-day maximum (largest average value for any consecutive 3-day period)for each water year (starts on October 1 and ends on Sept 30). Of course the number of days each year varies by one during leap years.
determining a formula to compute a sales commission.
Here is a sales scenario.
A $25 commission will be paid on sales between $50 to $150. A $50 commission will be paid on sales between $151 to $300 A $75 commission will be paid on sales between $301 to $600
The sales person will enter the sale amount into column B. Column C should compute the total commission for multilple sales.
Example:
Column A Column B Sales Commission $50 $150 (which is the comm. for the combined sales) $175 $360
computing the number of business hours between 2 dates.
Given the following information: - Business Hours: 8am -5pm (8:00-17:00) - Business Days: Mon-Fri - if entry queued falls on a weekend or beyond the business hours, it should count the first hour on the next business hour.
Example: scenario 1 = Starts Sunday, 10am and Ends Monday 9am; count of hours should be 1 scenario 2 = starts on Monday 6pm and ends on Tuesday 10am; count of hours should be 2
My spreadsheet opens. Cell A1 determines what today is, formatted as "weekday, day month year" (e.g., "Tuesday, 18 February 2014").
I have another cell in which I typically enter the date for the coming Friday. Instead of updating this field once each week, I'd like to calculate the date for the next coming Friday based off the value in cell A1 (to be concise, if "today" happens to be a Friday, then it would calculate the date of next Friday). (Continuing the example above, the coming Friday would be computed as 2/21/2014. If I open the spreadsheet on 2/21, it would calculate 2/28.)
What formula or step(s) to follow to render this value automatically?
Using Excel 2003, Column E has a varying and unpredictable number of rows, which only the final 252 rows are of significance. I need to compute the following formulas, here written in English as I can't determine the proper terminology to accomplish this task in Excel:
Final Row with a number in Column E/average (final 252 rows with numbers in column E)+
Final Row with a number in Column E/average (final 126 rows with numbers in column E)+
Final Row with a number in Column E/average (final 63 rows with numbers in column E)
Once again, what makes this not straightforward for me is the column may have wildly varying numbers of rows.
I am trying to set up a spreadsheet that will have a calculator where variables can be modified in order to properly see staffing requirements using the Erlang C formula. I have all of the known variables, but I can't seem to figure out how to calculate the formula to get the numbers I'm expecting.
[URL] is the website I'm using currently, and I'm stuck at the actual Erlang C formula. I'm not very good at math, but here is how I am reading the formula in English (I'm using the given numbers on the site for the variables so I can check my work).
Erlang C = calls per second to the power of agents staffed divided by the factorial of agents staffed. The result is then divided by calls per second to the power of agents staffed divided by the factorial of agents staffed again, that result is added to 1 minus occupancy, that result is multiplied by the summation of 0 to 54 (54 being the result of 55 agents staffed minus 1), which is then multiplied by calls per second to the power of "k" (i haven't yet figured out what k should equal, i assumed zero from the summation) divided by the factorial "k".
The result I get is not even close to what the website shows as the answer for Erlang, which should be .239. Am I making faulty assumptions anywhere? It's entirely possible I'm not computing the formula properly, it's been about 12 years since I've taken a math class, but since I know all the values for the variables (except for "k"), I should be able to write out a simple Excel formula to compute this.
I'm using excel 2007 for analyzing my students grades. I ran two exams and look for a way to compute a final grade score, which should be equal to the grade of the first exam for those students who took just the first exam and should be equal to the second score for those students who took the second exam. (Clarification: for those students who took both terms, their final grade should be equal to their score in the second term).
I need a macro that can autofill irrespective of where the source cells are. Like, this is what I want to do:
Select two cells containing a descending order such as 50, 40. Hit the hotkey and the macro should autofill the same way as double clicking the bottom right corner of the selection.
The problem is that the two source cells can be anywhere in the sheet, and autofill range isn't fixed. Essentially, I just want a keyboard shortcut for Excel's own Autofill function.
I want this macro to be rid of the mouse when I'm working on excel (it really slows me down to use the mouse every time I want to autofill).
I'm having trouble with a macro not looping back to the right place. The macro runs fine but is looping back to the very beginning instead of to the DO WHILE point which is the bit I would like to loop through. The code I have posted is a little long I am afraid (with the first part being largely irrelevant to the issue I am trying to solve), but I have marked where I am trying to get the macro to loop though.
Sub Collect_Trade_Data()
Dim y As String
Dim strResult As String strResult = Dir("K:BTSFilesMQ_FromBloombergutilities.txt") Select Case strResult Case ""
This seems really basic, but I can't seem to find it...
Using Visual Basic, if I have a named range, lets say like "NAMEDRANGE", how can I refer to cells in that range by their position in the range? For example, if I want to refer to the cell in the 2nd row and 3rd column of the range.
Also is their an easy way to refer to the first(top-left) cell in a named range?
I need a macro that will create a new blank worksheet, move it to the last spot and paste the entire contents of the sheet named "master" into the newly created sheet. I have tried to do this with the recorder but have been unable to get it to work.
My OS is Windows 7. My version of Excel is 2007. I have read how to get a macro to move around a page in a relative way, but is there a way to move from page to page in a relative way as well?
Is there an easy to use macro or VBA function to delete the rows with "position" column value of a zero? I have both positive and negative values in the column. I tried to put on filter but am not sure how to make it a rule based function: i.e. show only < 0 <.
Date Type NamePosition 2006/09/20CRGJacob11167 2006/09/20CRGTom 0 2006/09/20CRGMark 58371 2006/09/20CRGSue0 2006/09/20CRGDawn0
I have some cells with some spaces and then text where I want to find the position of the first letter. Do any of you know about any function I can use?
The example below contain 5 spaces and then my name. It should give me the answer 6.
I would like to end a macro with a specific cell (e.g. E50) in the first cell in the upper left hand corner of the screen. How might I accomplish this?
In cell A2 I have text with a lot of /, so I need formula that will return the position of the before last / in the cell. (Or the last if above isnt possible).
I've written code that involves adding a number of new sheets to a workbook. I want to specify that each new sheet is positioned to the right hand side of all other sheets in the book, so that the sheets are positioned in the order (when reading from left to right) that they are added.
I know about the Copy After:= thing but I only know how to specify copying after a particular sheet name. I could solve my problem by each time referencing the sheetname from the previously-created sheet, but I think there must be a way to it properly.
I have created a button in an excel worksheet that when clicked, creates new tabs each containing a chart. I have tried to modify the code to position the chart within a specific range of cells on each tab, however, I have not been able to get it to work. Below is my code. Please see the code following 'Add the Chart.
VB: Sub AddCharts() Dim lastr As Long, r As Long Dim shname As String Dim ltitles As Range, rng As Range, rData As Range, x As Range, tbl As Range, r2Data As Range
On Error Goto ErrorCatch:
Set ltitles = Sheet1.Range("A3:N3") Set rng = Sheet1.Range("A4:A" & Sheet1.Range("A3").End(xlDown).Row)
[Code] ......
ErrorCatch: 'Debug.Print Err.Number 'Debug.Print Error If Err.Number = 1004 Then shname = x.Value & x.Row + 1 End If If Err.Number = 20 Then Exit Sub Resume End Sub
Formula/code to change the position of where the subtotals are placed. I don't want them appearing at the beginning or end of the data set but in a separate column beside each data set. how to access the code so I can try and alter it myself.
I use a Workbook with several Sheets. I want to be able to quickly move to the same cell (whatever cell is currently in use) up and down the Sheets. Ideally I would also like the chosen cell to be centered on the page as well!!