I have a spread sheet which is organised in date order column A and produces three signals Buy, Sell, No trade in column S. If i get a signal to buy or sell the price is taken in column T so i might have Buy - 1.9977. I wish to calculate the diff between the value taken to buy in this eg and deduct this value from the opp signal at some point ie a sell signal. Other buy signals and notrade signals should be ignored. The opposite is true for a sell signal
Eg
A,s,t,u
13/4/07, buy,19955,35
12/4/07,no signal
11/4/07,no signal
10/4/07,no signal
9/4/07, no signal
8/4/07, no signal
7/4/07, sell, 19990,13
6/4/07,no signal
5/4/07,no signal
4/4/07,buy,19977
if a buy signal is generated then in this eg 19990-19977 gives the diff if selling then 19990-19955 gives the diff .
I am using a spreadsheet to determine if students are meeting Growth Targets between a pre test and post test.
Here is my formula
=If(D8>=C8,"yes","no")
D8 is the Growth Target and C8 is the Post test Score.
After doing this, I need to calculate the percentage of Yes results. This year it will be easy, as it only applies to 25 students. Count the yes's and multiply by 4. Next year, it will apply to number in the neighborhood of 150 students.
I have an excel workbook which requires us to enter the log details of some sites and then a report is generated using these logs (report attached) . [URL] .......
I want that excel should automatically identify the site and calculate its outage with the following formula:
Outage %age= Total Outage(min)/100.80 and add it in the respective column while identifying the outage.
e.g. if outage is of power then the calculated %age outage should be pasted in the power outage column in front of the respected site.
e.g. in the sheet attached above the first row in the first sheet states that SKU2326 was down for 50 mins
Now %age outage will be Outage %age= 50/100.80 Outage %age=0.496
Now as the outage is related to power so this outage should go into power column in sheet number 3 labelled as "Network Total Up time Week#17"
Now the next time SKU2326 becomes down it should be added with this 50 mins and the outage calculated as presented above.
Instead of totalling each range seperately, I need a way (within VBA) to go through every value in both ranges and mutiply them together, then record the total- e.g.
wrkNRP has the values 10 20 30 40
wrkQTY has the values 10 20 30 40
Then I need a way to do (10*10)+(20*20)+(30*30)+(40*40)
Is this possible WITHOUT adding an additional column?
I have a large spreadsheet with about 250 worksheets, each of which contains among other things a row of values that require further calculation (the values are being entered manually). The format of these rows is simple:
CodeH343B734G232L383N343M386 Count 1 3 2 4 3 2
Given that these rows are identical in size and they are in exactly the same cell positions in each of the 250 sheets, I need to find a way of getting each of the values entered in each of the 250 sheets automatically copied across to a different sheet and added to an existing total. In my limited understanding of Excel I consider such operation to be similar to a sum function which involves multiple cells in multiple sheets. Despite my best efforts I’ve yet to find a solution to what may be a very simple problem.
I created a pivot table in which sales amounts are represented and a derived table in which market share percentages are showed. Now i am looking for a formula that is able to calculate average market share values. Depending on which country i selected in the pivot table and which category, the number of active companies are changed. How can i formulate this formula to calculate average market share percentages in a certain period. check out my attached file to clarify the situation.
I need to make a table for an injury category per shift per week. (Falls per shift per week)
I have attached an example of the spreadsheet. I have a formula in the table now that was calculating just the injury type per week but just need to add the function to read per shift but can't seem to get it to read correctly.
I'm trying to calculate total occurrences of a given month. I have included the spreadsheet for reference with totals.
I only want to calculate when the Policy column has a "N". If it has a "Y" I do not need to do anything
If the Policy has a "N" I want the formula to look at the V and P columns and give me a total in the Total Occurrence column. I want it to look at the entire month for a grand total.
If the V or P column has a 4 or less it should equal 0.5, if it has a value is between 4 and 10 it would equal 1. So in the Total Occurrence column should calculate the all of the 0.5 and 1's based on each set of columns and give a total. In the example that I have given in the spreadsheet the total in the Total Occurrence column would be 2 because Jan. 1 has a N and a 8 which equals 1 and Jan. 3 has a N and a 4 which equals 0.5 and Jan. 5 has a N and a 4 which equals 0.5 for a total of 2 occurrences.
I have a set of values. #N/A413636363632. The #n/a is there on purpose for charting reasons. How do I calculate the stdev of that range? i.e. ignoring the error?
I have employees that have different number of business days they work. I need to be able to calculate when the employee has utilized a specific number of business days specific to the days of the week they work and the number of days per week work. For example, if I have an employee that works 3 business days per week (Specifically M, W, and F), and I need to know the date this employee worked a total of 30 business days, is there a way to calcuate this date (which should be 6/9/06 if we use a start date of 4/3/06.
I have a spreadsheet with the second tab hyperlinked to the first tab.
Tab 1 Bus DEC '13 NOV '13 OCT '13 SEPT '13 AUG '13
[Code] ......
ERROR: Row 157, Aug '13
Here's the formula I used: =IF('End of Month'!L3>=0,('End of Month'!L3-'End of Month'!N3),IF('End of Month'!L3>0,('End of Month'!L3-'End of Month'!M3),(0)))
Should return value 339.
The formula should simply take the current month value and subtract it from the previous month value BUT if the value is zero, then it should go to the prior month and so on until it retrieves a positive value.
I've also tried to following formula without any success:
=IF('End of Month'!H3=0,('End of Month'!H3-'End of Month'!J3), IF('End of Month'!H3=0,('End of Month'!H3-'End of Month'!K3), IF('End of Month'!H3=0,('End of Month'!H3-'End of Month'!L3), IF('End of Month'!H3=0,('End of Month'!H3-'End of Month'!M3), IF('End of Month'!H3=0,('End of Month'!N3-'End of Month'!O3), IF('End of Month'!H3>0,('End of Month'!H3-'End of Month'!I3),(0)))))))
I have a file where I have few sheets (link to file below). Sheet zrzut is dropdown from other system - updated daily. Sheet Productivity is filled with data supporting to group data and add conditions (for example column "I" in "zrzut" sheet). Sheet "Vena" has data from "zrzut" based on condition in column "I". Sheet "VENA_PLAN" has the same data as "Vena" but only values - I need only values for other actions. The thing is my current code replaces old data with new, but what I would like to achieve is to have new data stored below old. For now code looks like
Code: Sub PlanVENA() Application.ScreenUpdating = False Worksheets("VENA_PLAN").Range("A3:H300").Value =
This pivot table is used to track referrals for an employment service, and needs to show monthly totals of referrals, enrolments, cancellations and placements.
I have the referral date as one of the row lables, but it seems that each of the others now only reflectes back to that date rather than the date entered in that value
EG:
5 clients referred in September, One was placed in October, 2 in December and 1 in Jan but the totals for placed are all showing in September rather than the month the clinet was placed.
What I have is a spreadsheet with a whole bunch of sporting data on it. see attachment for an idea of the layout, Stats.jpg
In these data each round a player is given a rating. What I want to do is calculate is the average rating for each player across the last 3 and 5 games they have played. When a player misses a game they get a rating of 0 for the round. I want 0 ratings to be ignored in the running averages. Additionally, games yet to be played have a 0 in the cell and should be ignored. To get overall averages ignoring 0's was simple I used the averageif function, but I couldn't figure out how to use that but only extract the last 3 non 0 values. I currently have data up to round 12, so if a player has played in 12, 11 and 10 then the 3 round average should just be the average of these 3, but if they missed for example round 11 then the 3 round average should return the average of 9, 10 and 12.
The data is set out in the following way.
In column B I have a list of player names from cells B3:B618.
Across row 1 from N1:AM1 are labels "round 1" "round 2" etc.
The ratings for each player in each round are in N-AM and from 3-618. i.e. N3:AM3 contains the weekly rating for player 1, 4 contains player 2 etc.
I would like the 3 round averages to be returned for each player in column L and 5 round averages in column M.
I am currently using a pivot to return and populate the required data but this does not refresh correctly and returns zero values every time this report is refreshed. I am therefore hoping that there is a way to calculate this using formulas .
The following applies: The attached document has 2 tabs: Date AND Report The Data tab feeds the report tab The REPORT tab has 2 reports in it but doing the first one then I should be able to do the second one. If you look at the first table you will see the data that needs to be populated. I have added a highlighted (in YELLOW) row at the bottom of this table which shows you which columns populate what column
Requirement: I am after something that will populate this table in a descending order - IE: the figures in the DATA tab Column BE should be sorted from highest to lowest. It must be filtered to the top 30 results only and then all the other columns must be populated.
Column H in the REPORT tab should be formatted to [h]:mm Column F & G in the REPORT tab should be formatted to dd/mm/yyyy hh:mm
If I have a list of 6 values and a number that I want to get as near to as possible (above or below) using any, and as many as needed, of these 6 values - is there a way of calculating the nearest value? And, if there is, is there also a way of showing which values would be used?
Example: Value 1 = 0.190 Value 2 = 0.278 Value 3 = 0.593 Value 4 = 1.079 Value 5 = 2.075 Value 6 = 2.998
Value I want to get as near to as possible = 3.644
I need a way to calculate building rates based selecting the building and the value selected;
I have a list of building construction (fire resistive - protected, non combustible - protected etc)... in cell N8 and the limits in cell O8.
Now what I need to do is calculate the rates in the file attached (cells A5:J21 in my worksheet) based on the building construction and the value/limit I select.
I find this difficult to explain, so have attached an example. I need to total all entries on a calender that are entered after a specific date. EG:
If the given date is 15 Sept 08, I need all values in Sept - Mar to be totalled. I am measuring data on numerous spreadsheets, all others have specific start dates and finish dates, so its a simple a1-b1 to get the number of days, multiplied by costs. This particular spreadsheet is laid out in calender format, hence the problem)
In my code, I'm calculating a very simple ratio and have the result displayed in a message box. However, I want to have this value only show 1 or 2 significant figures (e.g. if I take 9 / 7, I want to show 1.3 and not 1.28571).
The idea is to have our technicians complete a timesheet showing how their time is being allocated between various tasks. I have created the spreadsheet and each row has a drop-down list with 6 options (Project Management, Audit, Office, etc) then a start and finish time which is calculated. I want to automate it so each each task option (Project Management, Audit, etc.) is calculated. There will be multiple entries for each task option over a weekly period. I tried VLOOKUP, but it does not work well with the text entries. I have attached a copy of the spreadsheet to better illustrate what I am trying to explain.
I want to omit null values from monthly averages I'm calculating for some in consistent data. Currently, the macro I wrote reads the empty cells and I believe is viewing them as zeros. When taking the monthly averages, in some cases on parameter 'X' might be sampled for a particular date at a location, but another parameter 'Y' isn't sampled for whatever reason on that particular date at the location. Therefore, there is no value in the cell for parameter 'Y' for that particular date (the value is null). When the macro runs, it sees the blank cell for the particular missing date, but I believe it still views that as a 0 value which it includes in the average, instead of overlooking that cell b/c it is an unknown. So, for example, it might thinks there are actually six actual sampling results instead of five, and calculates the average based on six being the total instead of five which seems to misrepresent the average. (e.g., it's currently viewing 2, 2, Null, 2, 2, 2 as n=6 instead of n=5)
If possible, I'd like to keep the structure of the code as below with only the minimal modifications to address this issue.
I do have Options-->Window Options-->Zero Values de-selected....
Based on filtered data I want to produce a result for the Average trade gain.
Lets say I have 100 rows of data, and based on filtered settings the rows reduce to 5 rows of results.
Of those results I want to find an average of all the positive values (trading profits) and ignore the negative ones.
$2000 $1500 -$700 $4000 -$1000
The answer should be (2000+1500+4000)/3
The need for filtering makes this problematic. I am inclined to use SUBTOTAL as it applies to filters rows only, but I can't see how to use an IF statement within it.
In addition to this I would also love to know how to subtotal all positive values without averaging.
I have an excel calculator that I use daily (mostly written in VBA). I change some of the values to get a new result. Is it possible to post the values of the results in a column so that I can see what the old values are? For security reasons I cannot disclose the calculator but I guess I can post an example of how I would like it to work.
Here is a table with values from Factor1 to Factor 5. Underneath that, for a specific index, I can mark Y or N for factor values. For instance, for index 1, Factor1 and 2 is marked as Y. The goal is to calculate total factor based on variable and factor values. In this case, variable value is 6, factor 1 =1 and factor 2=1.25). So Total factor = 6*1.25*1.5 = 11.25. If all factor values are marked as N, then total factor = variable value (Example is for Index 3)
How this can be implemented. I tried using COUNT function to count the total number of Y but that works only if all factors have same values.
I am working on a custom log file for my company. It has 3 sheets and on each sheet is a service type column with drop downs and next to it an amount coumn. Every day that a service issue is requested someone goes in and chooses the service type from the drop down and enters the amount in USD. I want to add charts to the top of each sheet and on the axis i want to have service type and then the total amount spent on that catagory.