Page 322 of 516« First...102030...320321322323324...330340350...Last »

Chart trendline formula is inaccurate in Excel

The equation displayed for a trendline on an xy (scatter) chart
is incorrect. When you manually substitute values for the x variable,
Microsoft Excel then plots the trendline incorrectly.

Note The trendline formula should only be used when your chart is an XY Scatter chart. This chart plots both the X axis and the Y axis as values. Line, Column, and Bar charts plot only the Y axis as values. The X axis is plotted only as a linear series in these chart types, regardless of what the labels actually are. Therefore, the trendline will be inaccurate if displayed on these types of charts. This behavior is by design.

Microsoft Excel plots trendlines correctly. However, the
equation that is displayed may give incorrect results when you manually
type x values. For appearance, each x value is rounded in the number of
significant digits that are displayed in the chart. This behavior allows the equation to occupy less space in the chart area. However, the accuracy of the chart is significantly reduced, which can cause a trend to appear to be incorrect.
To work around this behavior, increase the digits in the trendline equation
by increasing the number of decimal places that are displayed. To do this,
follow these steps:

  1. In the chart, select the trendline equation.
  2. On the Format menu, click Selected Data Labels.
  3. Click the Number tab, and then click Number in the Category list.
  4. In the Decimal places box, increase the number of decimal places to 30 so that you can see all the decimal places.
  5. Click OK.

Read More:
Chart trendline formula is inaccurate in Excel

Cannot press ENTER to expand or to collapse a PivotTable in an Excel workbook that is saved on a SharePoint site that is running Excel Services in SharePoint Server 2010

Consider the following scenario:
  • You edit an Excel workbook that is saved on a SharePoint site that is running Excel Services in Microsoft Office SharePoint Server 2010.
  • The workbook contains a PivotTable.
  • You press ENTER to expand the PivotTable, or you press ENTER to collapse the PivotTable.

In this scenario, the PivotTable does not expand or it does not collapse.

This behavior occurs because the keyboard shortcut to expand or to collapse a PivotTable is different in Excel Services in SharePoint Server 2010.
To expand a PivotTable in Excel Services in SharePoint Server 2010, press ALT+DOWNARROW.

To collapse a PivotTable in Excel Services in SharePoint Server 2010, press ALT+UPARROW.

See more here:
Cannot press ENTER to expand or to collapse a PivotTable in an Excel workbook that is saved on a SharePoint site that is running Excel Services in SharePoint Server 2010

Cannot change the value of a cell that contains an array formula in a workbook that is saved to a SharePoint site that is running Excel Services in SharePoint Server 2010

Consider the following scenario:
  • You have a server that is running Excel Services in Microsoft Office SharePoint Server 2010.
  • On this server, you have a Microsoft Excel workbook that is saved to a SharePoint site.
  • You edit the workbook.
  • You type a new value into a cell that contains an array formula.

In this scenario, the contents of the cell changes to show to the new value and then the contents of the cell changes back to the array formula. However, you do not receive an error message.

To work around this behavior, follow thesesteps:
  1. Open the Excel workbook in the client version of Microsoft Excel 2010.
  2. Make the change to the cell value.
  3. Save the Excel workbook to the SharePoint site.

See more here:
Cannot change the value of a cell that contains an array formula in a workbook that is saved to a SharePoint site that is running Excel Services in SharePoint Server 2010

How to use the OFFSET function in Excel

This article describes how to use the
OFFSET function to return the value of a cell that is a
specified number of rows and columns away from a cell or range of cells that
you referenced in an adjacent range.
Enter the following data into a blank Excel worksheet. You
will use this data for all sample formulas in this article.

Collapse this tableExpand this table

A1: Name B1: Dept C1: Age
A2: Henry B2: 501 C2: 28
A3: Stan B3: 201 C3: 19
A4: Mary B4: 101 C4: 22
A5: Larry B5: 301 C5: 29

Enter the following formulas into cell E2 (or any
available blank cell):

=OFFSET(C2,2,-1,1,1)

  • C2 – The referenced cell.
  • 2 – Indicates the number of rows to move. Positive numbers mean
    move down, and negative numbers mean move up.
  • -1 – Indicates the number of columns to move. Positive numbers mean move to the right, and negative numbers mean move to the left.
  • 1 (second last value) – (Optional.) Indicates how many rows of data to return. This
    number must be a positive number.
  • 1 (last value) – (Optional.) Indicates how many columns of data to return. This
    number must be a positive number.

Examples:

When you use this formula, the OFFSET function
returns the value of the cell that is located two rows down (2) and 1 row to
the left (-1) of cell C2 (which is cell B4). The value in cell B4 is “101″.
Therefore, the formula returns “101″.

Continue reading here:
How to use the OFFSET function in Excel

How to calculate compound interest for an intra-year period in Excel

The future value of a dollar amount, commonly called the compounded value,
involves the application of compound interest to a present value amount.
The result is a future dollar amount. Three types of compounding are
annual, intra-year, and annuity compounding. This article discusses intra-year calculations for compound interest.

For additional information about annual compounding, click the article number below
to view the article in the Microsoft Knowledge Base:

141695 

(http://support.microsoft.com/kb/141695/EN-US/
)
XL: How to Calculate Compound Interest

Calculating Future Value of Intra-Year Compound Interest

Intra-year compound interest is interest that is compounded more frequently than
once a year. Financial institutions may calculate interest on bases of
semiannual, quarterly, monthly, weekly, or even daily time periods.

Microsoft Excel includes the EFFECT function in the Analysis ToolPak add-in for versions older than 2003. The Analysis ToolPak is already loaded. The EFFECT function returns the compounded interest rate based on the annual interest rate and the number of compounding periods per year.

The formula to calculate intra-year compound interest with the EFFECT worksheet function is as follows:

=P+(P*EFFECT(EFFECT(k,m)*n,n))

The general equation to calculate compound interest is as follows

=P*(1+(k/m))^(m*n)

where the following is true:

P = initial principal
k = annual interest rate paid
m = number of times per period (typically months) the interest is
compounded
n = number of periods (typically years) or term of the loan

Examples

The examples in this section use the EFFECT function, the general
equation, and the following sample data:

   Intra-Year                 Number of compounding
   compounding rate          periods per year
   -----------------------------------------------
   Semiannual                  2
   Quarterly                   4
   Monthly                    12
   Weekly                     52
   Daily                     360 or 365(actual)
				

An investment of $100 pays 8.00 percent compounded semiannually. If the money is left in the account for three years, how much will the $100 be worth?

Use the EFFECT Worksheet Function

Because of semiannual compounding, you must repeat the EFFECT function twice to calculate the semiannual compounding periods. In the following example, the result of the nested function is multiplied by 3 to spread out (annualize) the compounded rate of over the term of the investment:

=100+(100*EFFECT(EFFECT(.08,2)*3,3))

The example returns $126.53.

Using the General Equation

The following example uses the general equation:

=100*(1+.08/2)^(2*3)

The example returns $126.53.

Calculate Interest Rates for Intra-Year Compounding

You can find the compounded interest rate given an annual interest rate
and a dollar amount.

The EFFECT worksheet function uses the following formula:

=EFFECT(EFFECT(k,m)*n,n)

To use the general equation to return the compounded interest rate, use
the following equation:

=(1+(k/m))^(m*n)-1

Examples

Use the EFFECT Worksheet Function

An investment of $100 pays 7.50 percent compounded quarterly. The money is left in the account for two years, for example. The following formula returns the compounded interest rate:

=EFFECT(EFFECT(.075,4)*2,2)

The example returns 16.022 percent.

Use the General Equation

The following equation returns the interest rate:

=(1+(.075/4))^(4*2)-1

For more information about compound interest, click Microsoft Excel Help on the
Help menu, type effect in the Office Assistant or the Answer Wizard, and then click Search to view the topic.

View original post here:
How to calculate compound interest for an intra-year period in Excel

How to calculate the number of months between two dates in Excel

This step-by-step article shows you how to calculate the number of months
between any two dates.

To calculate the number of months between any two dates, use one of the
following methods. Note that both methods use the following information:

  • EDate = Earlier Date
  • LDate = Later DateNOTE: If you type LDate or EDate directly into this formula instead of into their cell references, you must surround it by quotation marks (for example, “9/7/00″).

Round Up

This method does not use the day of the month in its calculations. For example, given a start date of 10/31/00 and an end date of 11/2/00, one month is returned even though only two days elapsed.

For this method, use the following formula

=(YEAR(LDate)-YEAR(EDate))*12+MONTH(LDate)-MONTH(EDate)

as shown in the following example:

  1. Type 10/31/99 in cell A1.
  2. Type the following formula in cell A2:

    =(YEAR(NOW())-YEAR(A1))*12+MONTH(NOW())-MONTH(A1)

    The number that is returned equals the number of months from 10/31/99 to today’s date, rounded up to the next whole number.

Round Down

This method uses the number days in its calculations and rounds down to the nearest number of whole months. For example, given a start date of 10/30/00 and an end date of 11/30/00, one month is returned; however, an end date of 11/29/00 returns a zero.

For this method, use the following formula

=IF(DAY(LDate)>=DAY(EDate),0,-1)+(YEAR(LDate)-YEAR(EDate))
*12+MONTH(LDate)-MONTH(EDate)

as shown in the following example:

  1. Type 10/31/99 in cell A1.
  2. Type the following formula in cell B1:

    =IF(DAY(NOW())>=DAY(A1),0,-1)+(YEAR(NOW())-YEAR(A1))
    *12+MONTH(NOW())-MONTH(A1)

    NOTE: Ensure that cell B1 is formatted as General.

    The number returned equals the number of months from 10/31/99 to today’s date, rounded down to the nearest number of whole months.

Read More:
How to calculate the number of months between two dates in Excel

How to combine cells of information in Excel

In Microsoft Excel, it is possible to combine, or concatenate, different cells of data into one cell. This article contains two examples.

Simple Concatenation

The following formula combines data from cells A1, B1 and C1. Write this formula into another column, such as column D1:

=A1&B1&C1

Add Spaces Between Each Column

The following formula combines data from cells A1, B1 and C1 and adds spaces between each set of data. Write this formula into another column, such as column D1:

=A1&” “&B1&” “&C1

For more information, click the article numbers below to view the articles in the Microsoft Knowledge Base:

113237 

(http://support.microsoft.com/kb/113237/
)
Visual Basic macro to concatenate columns of data

290359 

(http://support.microsoft.com/kb/290359/
)
How to remove leading space for values converted to strings

154873 

(http://support.microsoft.com/kb/154873/
)
Error when you concatenate string and numeric values

See more here:
How to combine cells of information in Excel

You receive an error message when you try to save a file in Excel

When you save a document in Microsoft Excel, one of the
following error messages may appear.

Message 1

Cannot access
read-only document filename

Message 2

Message 3

Message 4

Document not completely saved.

Message 5

Document not saved. Any previously saved
copy has been deleted.

The document is not saved.

Message 6

Filename.xls is
locked for editing by ‘user name’. Click ‘Notify’ to open a read-only copy of the document and
receive notification when the document is no longer in use.

This problem will occur when the process that Excel uses to
save a file is interrupted. For example, if you are saving to an external drive
such as a network drive, the connection has been dropped. Or, if you are saving
to a removable disk, such as a floppy diskette, the disk has been removed.
To continue working with this file, save the workbook to a
different disk drive. You must restore the connection or correct the problem
with the original target drive before you can save to that drive again.
When you work in a file, Microsoft Excel saves the file
with a temporary file name and places this file in the same folder as the
original file. When you save your file, the original file is then deleted and
the temporary file is renamed with the original file name.

If this
process is interrupted, your file may not be saved properly or you may find one
or more temporary files in the folder where you tried to save your file. In
addition, you may receive one of several alert or error messages.

The following information lists some of the possible messages you may receive
and explanations as to why you may receive them.

“Cannot access read-only document

The drive you are saving to is a network drive and you do not
have sufficient privileges to save to that drive. Save to your local hard disk
drive or to a floppy disk drive.

“Disk is full”

The drive you are saving to does not have enough space for the
temporary file. Delete some files from the current drive and save to another
drive or to a floppy disk drive.

“Document not saved,” or “Document not completely saved”

The process was interrupted while creating the temporary file
because you pressed ESC, there was some hardware or software failure, or there
was another media problem. The original file is still intact and ,unless your
computer or workstation failed, the version of the file containing your current
changes is still open in memory. Save the file to an alternate drive. If your
computer or workstation did fail, you can use the original file. (Note that any
changes made in the last revision will be lost.)

“Document not saved. Any previously saved copy has been deleted”

The process was interrupted while deleting the original or
renaming the temporary file. This problem will occur for the same reasons as
the scenario described in the “‘Document not saved,’ or ‘Document not
completely saved’” section. In this case, your original file is gone (though
the temporary file may be readable). If your computer or workstation failed,
use the temporary file. If the interruption was caused by something else, the
version of the file containing your current changes is still open in memory.
Save the file to an alternate drive.

For more information, click the following article numbers to view the articles in the Microsoft Knowledge Base:

223816 

(http://support.microsoft.com/kb/223816/
)

Error message: The disk is full

223812 

(http://support.microsoft.com/kb/223812/
)
Error message: Document not saved

Read the article:
You receive an error message when you try to save a file in Excel

Description of the RAND function in Excel

This article describes the modified algorithm that is used in the random number generator function, RAND, in Microsoft Office Excel.
The RAND function in earlier versions of Excel used a
pseudo-random number generation algorithm whose performance on standard tests
of randomness was not sufficient. Although this is likely to affect only those
users who have to make a large number of calls to RAND, such as a million or
more, and not to be a concern for almost every user, the pseudo-random number
generation algorithm that is described here was first implemented for Excel 2003. It
passes the same battery of standard tests.

The battery of tests is
named Diehard (see note 1). The algorithm that is implemented in Excel 2003 was
developed by B.A. Wichman and I.D. Hill (see note 2 and note 3). This random
number generator is also used in the RAT-STATS software package that is
provided by the Office of the Inspector General, U.S. Department of Health and
Human Services. It has been shown by Rotz et al (see note 4) to pass the
DIEHARD tests and additional tests developed by the National Institute of
Standards and Technology (NIST, formerly National Bureau of Standards).

Notes

  • The tests were developed by Professor George Marsaglia,
    Department of Statistics, Florida State University and are available at the
    following Web site:
  • Wichman, B.A. and I.D. Hill, Algorithm AS 183: An Efficient and Portable Pseudo-Random Number Generator, Applied Statistics, 31, 188-190, 1982.
  • Wichman, B.A. and I.D. Hill, Building a Random-Number Generator, BYTE, pp. 127-128, March 1987.
  • Rotz, W. and E. Falk, D. Wood, and J. Mulrow, A Comparison of Random Number Generators Used in Business, presented at Joint Statistical Meetings, Atlanta, GA,
    2001.

The basic idea is that if you take three random numbers on 0,1 and sum them, the fractional part of the sum is itself a random number on 0,1. The critical
statements in the Fortran code listing from the original Wichman and Hill
article are:

C IX, IY, IZ SHOULD BE SET TO INTEGER VALUES BETWEEN 1 AND 30000 BEFORE FIRST ENTRY

IX = MOD(171 * IX, 30269)

IY = MOD(172 * IY, 30307)

IZ = MOD(170 * IZ, 30323)

RANDOM = AMOD(FLOAT(IX) / 30269.0 + FLOAT(IY) / 30307.0 + FLOAT(IZ) / 30323.0, 1.0)

Therefore IX, IY, IZ generate integers between 0 and 30268, 0 and
30306, and 0 and 30322 respectively. These are combined in the last statement
to implement the simple principle that was expressed earlier: if you take three
random numbers on 0,1 and sum them, the fractional part of the sum is itself
a random number on 0,1.

Because RAND produces pseudo-random numbers,
if a long sequence of them is produced, eventually the sequence will repeat
itself. Combining random numbers as in the Wichman-Hill procedure guarantees
that more than 10^13 numbers will be generated before the repetition begins.
Several of the Diehard tests produced unsatisfactory results with earlier
versions of RAND because the cycle before numbers started repeating was
unacceptably short.

Results in Earlier Versions of Excel

The RAND function in earlier versions of Excel was fine in
practice for users who did not require a lengthy sequence of random numbers
(such as a million). It failed several standard tests of randomness, making its
performance an issue when a lengthy sequence of random numbers was needed.

Results in Excel 2003

A simple and effective algorithm has been implemented. The new
generator passes all standard tests of randomness.

Conclusions

Power users of RAND who require lengthy sequences of random numbers are better off with the new generator of Excel 2003 and later versions. Other users should be undeterred from using RAND in earlier versions of Excel.

For more information about an issue that was documented to occur in
RAND, click the following article number to view the article in the Microsoft Knowledge Base:

834520 

(http://support.microsoft.com/kb/834520/
)

The RAND function returns negative
numbers in Excel 2003

Read this article:
Description of the RAND function in Excel

How to calculate weighted averages in Excel

A weighted average differs from an average in that a weighted average returns a number that depends on the variables of both value and weight.

Consider the following example:

A shipment of 10 cases of widgets costs $0.20 per case. Because of heavy consumption of widgets, a second shipment of 40 cases now costs $0.30 per case.

The average cost of the cases in each shipment — determined by the formula ($0.20+$0.30)/2 = $0.25 — is not an accurate measure of the average cost of the cases because it does not take into account that there are 30 more cases being purchased at $0.30 than at $0.20. The weighted average would return $0.28, a more accurate representation of the average cost of a case of widgets in these two shipments.

To find a weighted average, follow these steps:

  1. In a new worksheet, type the following data:
       A1:  Cost     B1:  Cases
       A2:  $.20     B2:  10
       A3:  $.30     B3:  40
    					
  2. Type the formula below in any blank cell (it is not necessary to type this formula as an array):
    =SUMPRODUCT(A2:A3,B2:B3)/SUM(B2:B3)

    or

    =((A2*B2)+(A3*B3))/SUM(B2:B3)

Original post:
How to calculate weighted averages in Excel

Page 322 of 516« First...102030...320321322323324...330340350...Last »

Recent Comments

    Archives

    Categories