This action might not be possible to undo. Are you sure you want to continue?

in Excel. If you are not familiar with Array Formulas, click here. Array To Column Sometimes it is useful to convert an MxN array into a single column of data, for example for charting (a data series must Averaging Values In A Range You can use Excel's built in =AVERAGE function to average a range of values. By using it with other functions, you can extend its functionality. For the formulas given below, assume that our data is in the range A1:A60. Averaging Values Between Two Numbers Use the array formula 0 Where Low and High are the values between which you want to average. Averaging The Highest N Numbers In A Range To average the N largest numbers in a range, use the array formula 0 Change "1:10" to "1:N" where N is the number of values to average. Averaging The Lowest N Numbers In A Range To average the N smallest numbers in a range, use the array formula 0 Change "1:10" to "1:N" where N is the number of values to average. In all of the formulas above, you can use =SUM instead of =AVERAGE to sum, rather than average, the numbers. Counting Values Between Two Numbers If you need to count the values in a range that are between two numbers, for example between 5 and 10, use the following array formula: #VALUE!

To sum the same numbers, use the following array formula: #VALUE! Counting Characters In A String The following formula will count the number of "B"s, both upper and lower case, in the string in B1. 0 Date And Time Formulas A variety of formulas useful when working with dates and times are described on the DateTime page. Other Date Related Procedures are described on the following pages. Adding Months And Years The DATEDIF Function Date Intervals Dates And Times Date And Time Entry Holidays Julian Dates Duplicate And Unique Values In A Range The task of finding duplicate or unique values in a range of data requires some complicated formulas. These procedures are described in Duplicates. Dynamic Ranges

You can define a name to refer to a range whose size varies depending on its contents. For example, you may want a ran #VALUE!

Be sure to use absolute cell references in the formula. Also see then Named Ranges page for more information about dyn Finding The Used Part Of A Range Suppose we've got a range of data called DataRange2, defined as H7:I25, and that cells H7:I17 actually contain values. The rest are blank. We can find various properties of the range, as follows:

To find the range that contains data, use the following array formula: =ADDRESS(ROW(DataRange2),COLUMN(DataRange2),4)&":"& ADDRESS(MAX((DataRange2<>"")*ROW(DataRange2)),COLUMN(DataRange2)+ COLUMNS(DataRange2)-1,4) This will return the range H7:I17. If you need the worksheet name in the returned range, use the following array formula: =ADDRESS(ROW(DataRange2),COLUMN(DataRange2),4,,"MySheet")&":"& ADDRESS(MAX((DataRange2<>"")*ROW(DataRange2)),COLUMN(DataRange2)+ COLUMNS(DataRange2)-1,4) This will return MySheet!H7:I17. To find the number of rows that contain data, use the following array formula: #NAME? This will return the number 11, indicating that the first 11 rows of DataRange2 contain data. To find the last entry in the first column of DataRange2, use the following array formula: =INDIRECT(ADDRESS(MAX((DataRange2<>"")*ROW(DataRange2)), COLUMN(DataRange2),4)) To find the last entry in the second column of DataRange2, use the following array formula: =INDIRECT(ADDRESS(MAX((DataRange2<>"")*ROW(DataRange2)), COLUMN(DataRange2)+1,4)) First And Last Names Suppose you've got a range of data consisting of people's first and last names. There are several formulas that will break the names apart into first and last names separately. Suppose cell A2 contains the name "John A Smith". To return the last name, use =RIGHT(A2,LEN(A2)-FIND("*",SUBSTITUTE(A2," ","*",LEN(A2)LEN(SUBSTITUTE(A2," ",""))))) To return the first name, including the middle name (if present), use =LEFT(A2,FIND("*",SUBSTITUTE(A2," ","*",LEN(A2)LEN(SUBSTITUTE(A2," ",""))))-1) To return the first name, without the middle name (if present), use

Suppose A1 contains the string "First Second Third Last".1})-1) Where A10 is the cell containg the text.ROW(INDIRECT ("1:"&LEN(A10)+1)). B10+{0.SMALL(IF(MID(" "&A10.ROW(INDIRECT("1:"&LEN(A10)+1))). Returning First Word In A String Array This will return the word "First".1} and {-1. B10). Returning Last Word In A String Array Formulas This formula in as array formula. To return any single word from a single-spaced st =MID(A10. and C10 is the number of words. the {0.1})-1) Where A10 is the cell containing the text.1} are enclosed in array braces (curly brackets {} ) not parenthese Download a workbook illustrating these formulas. B10).SUM(SMALL(IF(MID(" "&A10&" ". starting a Note that in the above array formulas.. This formula can be extended to get any set of words in the string. the 5th wo =MID(A10.#VALUE! We can extend these ideas to the following.1})*{-1. This will return the word "Last" Returning All But First Word In A String Formulas This will return the words "Second Third Last" Returning Any Word Or Words In A String The following two array formulas come compliments of Laurent Longre.ROW(INDIRECT("1:"&LEN(A10)+1))).ROW(INDIRECT("1:"&LEN(A10)+2))). To get the words from M for N words (e.1)=" ".1)=" ". and B10 is the number of the word you want to get.1})*{-1.ROW(INDIRECT ("1:"&LEN(A10)+2)). B10+C10*{0. (This formula comes from Laurent Longre).g. B10 is the number of the word to get.ROW(INDIRECT ("1:"&LEN(A10)+1)).ROW(INDIRECT ("1:"&LEN(A10)+2)).1)=" ".SUM(SMALL(IF(MID(" "&A10&" ". Grades .ROW(INDIRECT("1:"&LEN(A10)+2))).1)=" ".SMALL(IF(MID(" "&A10.

use either of the following formulas: #NAME? =INDIRECT(ADDRESS(ROW(Rng)+MATCH(C1. This is simple. is provided by Laurent Longre."B"."F".Grades.80. You can add entries to the Grades array for other grades like C. use the following array formula: .A frequent question is how to assign a letter grade to a numeric value."D". However. C1 is the value you want to look up. NumRange may contain duplicate values. See the Lookups page for many more examples of lookup formulas.COLUMN(A:A) )) Where Rng is the range containing the lookup values."C". replace "A:A" with the column containing the retrieval data. and uses the CALL function t Left Lookups The easiest way do table lookups is with the =VLOOKUP function.90."A"} Then. If you need to retrieve a value in a column to the left of the column containing the lookup value. you cannot retrieve values in column A. Another method to do this. The formulas below use the following example: Address Of First Minimum In A Range To return the address of the cell containing the first (or only) instance of the minimum of a list.and C+.60.70. For example. In both examples. For example. First create a define name called " ={0. In the second syntax.Rng. Suppose we've got a range of numeric values called NumRange.B1) Cell B1 will contian the highest value that has ever been present in A1:A10. without using circular references. if you're looking up a value in column B.0)-1.2) where A1 is the cell contains the numeric value. supp =MAX(A1:A10. use VLOOKUP to convert the number to the grade: =VLOOKUP(A1. and ColsToLeft is the number of columns to the left of Rng that the retrieval values are. High And Low Values You can use Excel's Circular Reference tool to have a cell that contains the highest ever reached value. even if that value is deleted from the range. Minimum And Maximum Values In A Range Of course you can use the =MIN and =MAX functions to return the minimum and maximum values of a range. =VLOOKUP requires that the value returned be to the right of the value you're looking up.

. the address of the first '5' in the range.ROW(NumRange)*(NumRange<>""))). use the following array formula: =ADDRESS(MAX(IF(NumRange=MIN(NumRange). and enter into it the number of values you want to return (e. Download a workbook illustrating these formulas.#NAME? This function returns B2. with the same number of rows) called TopRng. Create a range next to RankRng (starting in the same row. use the following array formula: =ADDRESS(MAX(IF(NumRange=MAX(NumRange). create a named cell called TopN. COLUMN(NumRange).ROW(NumRange)*(NumRange<>""))). 5 for the top 5 values in RankRng). Suppose we have a range of numeric data called RankRng. use the following array formula: #NAME? This function returns B1. COLUMN(NumRange). the address of the last '1' in the range. Address Of The Last Minimum In A Range To return the address of the cell containing the last (or only) instance of the minimum of a list.g. Ranking Numbers Often. Also. it is useful to be able to return the N highest or lowest values from a range of data. the address of the first '1' in the range. Address Of First Maximum In A Range To return the address of the cell containing the first instance of the maximum of a list. the address of the last '5' in the range. Address Of The Last Maximum In A Range To return the address of the cell containing the last instance of the maximum of a list.4) This function returns B4.4) This function returns B5. Enter the following formula in the first cell in . Most Common String In A Range The following array formula will return the most frequently used entry in a range: #NAME? Where Rng is the range containing the data.

the formulas are slightly more complicated.$D$1)=0.0)) If you want to sum the values in rows 3. use #NAME? The list of numbers returned by these functions will automatically change as you change the contents of RankRng or TopN. Download a workbook illustrating these formulas. 9. For example.$A$1:$A$20. an =SUM(IF(MOD(ROW($B$3:$B$22)-ROW($B$3)+1. A9. A6. To return the full sheet name (including the file path) to a cell. 6. A7.TopRng. use the following array formula: =SUM(IF(MOD(ROW($A$1:$A$20)-1.$B$3:B$22. and N = 3 is in D1. etc.$D$1)=0. suppose you want to sum every 3rd cell.. etc.$B$3:B$22.$D$1)=0. are described in NoBlanks.0)) If you want to sum the values in A1. use the following array formula: =SUM(IF(MOD(ROW($B$3:$B$22)-ROW($B$3). etc. Summing Every Nth Value You can easily sum (or average) every Nth cell in a column range. Suppose your data is in A1:A20.$D$1)=0. Removing Blank Cells In A Range The procedures for creating a new list consisting of only those entries in another list. A4. Miscellaneous Sheet Name Suppose our active sheet is named "MySheet" in the file C:\Files\MyBook. Suppose our data is in B3:B22.0)) If your data ranges does not begin in row 1. excluding blank cells. See the Ranking page for much more information about ranking numbers in Excel.Xls. and use Fill Down to fill out the range: #NAME? To return the TopN smallest values of RankRng. use . The following array formula will sum the values in A3. =SUM(IF(MOD(ROW($A$1:$A$20).$A$1:$A$20.0)) Download a workbook illustrating these formulas.

not your actual filename.A1).xls" To return the file name with the path. To return the file name without the path.FIND("[".CELL("filename". use =MID(CELL("filename".FIND("]". without the path.CELL("filename".Note that the argument to the =CELL function is the word "filename" in quotes."[".FIND("]"."]".CELL("filename". This will return "C:\Files\[MyBook. use =MID(CELL("filename".A1))+1. LEN(CELL("filename".A1).A1))) This will return "MySheet" File Name Suppose our active sheet is named "MySheet" in the file C:\Files\MyBook.A1))-1) This will return "MyBook.A1))).A1))+1.FIND("]". the A1 argument to the =CELL function force . CELL("filename".A1).A1))-FIND("[".xls]MySheet" To return the sheet name.xls" In all of the examples above.xls]" The second syntax will return "C:\Files\MyBook.FIND("]".CELL("filename".A1). CELL("filename".Xls."").CELL("filename".A1))) Or =SUBSTITUTE(SUBSTITUTE(LEFT(CELL("filename".A1))-FIND("]". use either =LEFT(CELL("filename"."") The first syntax will return "C:\Files\[MyBook.

Click here for more details. .r charting (a data series must be a single row or column).

you may want a range name that refers only to the portion of a list of numbers that are not blank.example. . such as only the first N n or more information about dynamic ranges.

.

use the following array formula: e number of words. the 5th word for 3. and 7th words).g. use the following array formula: M for N words (e. to get. . y brackets {} ) not parentheses. or the 5th.. 6th. starting at B10.e word from a single-spaced string of words.

. . ched value. Click here for details. You can set up a cell that will contain the highes ue is deleted from the range.create a define name called "Grades" which refers to the array: r other grades like C. suppose you have a worksheet used to track team scores. For example. Just make sure the numeric values in the array are in increasing order. and uses the CALL function to access the Excel4 macro function library.and C+. Use the =MIN function to get the lowest ever value.

.

8. 11.u want to sum every 3rd cell. ppose our data is in B3:B22. and N = 3 is in D1. To sum the values in rows 5. values in A3. etc. A9. A6. etc. use the following array formula: .

.

.

lank. Define a name called MyRange. and set the Refers To property to: . such as only the first N non-blank cells in A2:A20.

.

.

even if that score is deleted from the list. . Suppose the score are in A1:A10. First.ell that will contain the highest score ever reached.

.

array formula: .

.

.

fers To property to: .

.

.

the score are in A1:A10. go to the Tools->Options dialog. and check the Interations check box. First. click on the Calculation tab. Then .

.

.

.

.

.

.

.

e Interations check box. enter the following formula in cell B1: . Then.

- Excel Formulas
- Excel Formulas
- Excel
- Excel Foemula
- Excel Formulas1
- excel Array Formulas
- Array Formula Small
- Returning Distinct Items in a Range
- Excel
- Ormulas and Functions
- Array Formulas
- Excel Function
- Excel File Format
- How to Look Up a V
- Formulas to Count the Occurrences of Text, Characters, Or Words in Excel for Mac
- excell real tutorial.docx
- 38072467 Vlookup MS Excel
- Excel Formulas 2007 PDF
- Excel Manual
- Lecture 4 - Creating Simple Formula
- excell 2007
- Fusion Fast Formulas Guide
- Formatting Sheets
- lec3
- Inf Mgt Policy Electronic File Name Standard v2 4
- Using Fast Formula
- assignment
- Solution Heap Question
- 82722025 Vangorp Ch 6 What if Analysis
- DEMO Excel Tips
- Formula

Are you sure?

This action might not be possible to undo. Are you sure you want to continue?

We've moved you to where you read on your other device.

Get the full title to continue

Get the full title to continue reading from where you left off, or restart the preview.

scribd