Excel spreadsheet with maths - excel

hi i am having trouble with working out this problem i have been given on excel, i am new to it so please could somebody help me :)
here is the question
A company has an asset valued at £4000 which it believes will lose 5% of its value each year. Create a spreadsheet to show the value of the asset each year for 12 years and the corresponding amount of depreciation.
Ensure that your spreadsheet allows you to change the initial value of the asset and the
depreciation rate easily.
Use the IF-function to allow you to specify the number of years to list in the table.

If A1 contained the 4000 and A2 contained the percentage of depreciation then a formula for the end of that year could be A1/100*(100-A2). Hopefully that makes sense and you have that part and are just unsure on the IF-statement part. Basically what they are asking is to enclose the formula above in an IF that asks if the years are less than those allowed (which you would specify as the question states)
How to use IF - http://www.exceltrick.com/formulas_macros/excel-if-statement/

Related

Calculating Multiple Averages

It's my first time posting a question to this forum. Though I have found answers here many times before, I have been unable to find a solution to my current predicament.
I work in a call center and each week I need to analyze data from the thousands of call that took place over the week. I'm new to programming in Excel-VBA but I've been able to get pretty far.
The data is produced by a third party program and the format is nigh unreadable. Much of the programming I've done so far has been geared towards making the data more organized. Now, I'd like to get into more analysis.
The data is arranged by employee number (NOT in order, though). Each employee takes several calls over the course of the week, some for which the customer takes a survey. It's the survey scores I want. I want to take the average of all the surveys for each employee and then display that average in the same row as each of the entries.
Example
The yellow highlighted area is what I want to add. Any ideas? Thanks for any help in advance!
No need for VBA. If you have the supported version of Excel you can use AVERAGEIF. If not you can use below formula.
Enter as an array formula by pressing Ctrl+Shift+Enter when exiting cell edit mode (instead of just enter).
=AVERAGE(IF($A$2:$A$13=A2,$B$2:$B$13))
Then copy down for all rows.

Adding numeric value based on tickbox in Sharepoint formula

I'm trying to create a simple leave planner application using Sharepoint. I've got the bulk of it working but I'm going back to do edge cases now like Bank Holidays and half days. So I've added a checkbox column and if ticked, I want it to deduct 0.5 from the total value (half-day). The formula that's working for the full days is:
=(DATEDIF(dateFrom,dateTo,"D"))-INT(DATEDIF(dateFrom,dateTo,"D")/7)*2-IF((WEEKDAY(dateTo)-WEEKDAY(dateFrom))<0,2,0)+1
So I just created another two columns called shalfday and ehalfday. If they're ticked then deduct 0.5 from the total (If dates match and both ticked then deduct 0.5 still).
I've tried playing round with things like
-IF([shalfday],"0.5")
and other variants as google results are not being too kind this morning but they're returning #NAME? variables.
Any pointers on the syntax or what I should be looking at?
I would suggest:
-IF([shalfday],0.5,0)
Since you are trying to subtract you should work with integers and not strings (i removed the quotation marks).
I ended up doing this another way. I instead asked the user to specify how many half days were in their leave in another site column and used this suffix in the formula. It also got rid of the validation check to make sure the user wasn't taking two half days on 1 days leave.
New site column called 'Total Half Days' set to number, default value of 0;
Appended to original formula:
-([Total Half Days]/2)+1
Full formula:
=(DATEDIF(dateFrom,dateTo,"D"))-INT(DATEDIF(dateFrom,dateTo,"D")/7)*2-IF((WEEKDAY(dateTo)-WEEKDAY(dateFrom))<0,2,0)-([Total Half Days]/2)+1

IF AND SharePoint Calculated Field

I have been researching this and I have found several different iterations of the formula, but I just can't get mine to work. I am trying to create an if/and formula in a calculated field. I am trying to show data based on three criteria.
If the create date is greater than month 2 and less than month 8 then OCTOBER 1
If the account change type is Immediate: Error or Business Case then MONTH([CreateDate])+1 and 1.
Otherwise MARCH 1
This is the formula I have:
=IF(AND([Created]>2,[Created]<8),"OCTOBER 1",IF([Account Change Type]="Immediate: Error or Business Case"),"ASAP","MARCH 1"))
These are the forums I have looked at and still can't get it:
Stack Overflow
Social TechNet
StackExchange
The simple answer that pops to mind is that you have an extra parentheses at the end of that formula. If you want to test these formula syntax wise, just put them in Excel.
If you're having another issue beyond that, can you provide an error or specific symptom of some sort?

Trying to use countif with multiple criteria involving a time range and a set amount [duplicate]

This question already has answers here:
Excel Countif with multiple if requirements
(4 answers)
Closed 8 years ago.
Needing to automate results of alerts within certain time frames based on a 24 hour clock (00:00:00). I believe that a COUNTIF command may be a solution, but not really sure how to use or setup.
Here are my columns that I am trying to use...
E11:E61 - represents my time. I am looking to pick out those values that fall within 02:00:00 - 06:59:59 from this column.
Then, after filtering that answer. I need to see which of cells in that time frame equal a win or a loss. My column for win or losses is Q11:Q61. That will be one separate field that I will calculate this in.
Then, in another field, I need to calculate a win amount based on whether a cell falls within the time frame and shows a win. My win amount column is U11:U61.
So, a little more complicated than my experience allows me to solve. So, I could whatever suggestions or recommendations for solving this.
This has been a great resource for me, and I appreciate everyone's input.
As guitarthrower suggested in the comments, you could use the COUNTIFS function to achieve what you are looking for:
WINS =COUNTIFS(E11:E61,">=2:00:00",E11:E61,"<=6:59:59",Q11:Q61, "WIN")
LOSSES =COUNTIFS(E11:E61,">=2:00:00",E11:E61,"<=6:59:59",Q11:Q61, "LOSS")

Excel NPV/IRR - Populate a range from annual savings as input

To provide a valid input to the NPV and IRR functions, I'm trying to create a range of values of annual even returns for a given number of years. Although question is also valid for any similar excel function, my specific case is related with NPV and IRR.
My initial investment is 25000$ and I get 5000$ from that investment annually for 10 years. Interest rate is 10% for NPV and IRR.
Instead of providing these values like BEFORE I'm looking for a way similar to AFTER, if possible without any macros, only by using a few functions?
Your first formula is actually discounting a 25000 investment made in 1 years time, then receiving cashflow of $5000 a year from the end of year 2, year 3 .... year 11
You wanted
=NPV(C1,C5:C14)-C4
=5777.84
which as an annuity can be calculated directly with
=-PV(10%,10,5000)-25000
=5777.84
On your second formula
=RATE(10,5000,-25000)
=15.1%

Resources