Repeat sequence of numbers

Explanation In this example, the goal is to repeat a sequence of numbers. This is a useful way to create repeating sequences of numbers by itself. The evaluation of SEQUENCE works like this: The final result is a zero-based sequence of 12 numbers. The array can be one dimensional, or two-dimensional, determined byrowsandcolumnsarguments. … MOD Function The Excel MOD function returns the remainder of two numbers after division. For example, MOD(10,3) = 1....

April 14, 2025 · 1 min · 89 words · John Houston

REPLACE Function

REPLACE function takes four separatearguments. The first argument,old_text, is the text string to be processed. The second argument,start_numis the numeric position of the text to replace. The third argument,num_chars,is the number of characters that should be replaced. The last argument,new_text, is the text to use for the replacement. Use theSUBSTITUTE functionto replace text by searching when the location is not known. UseFINDorSEARCHto determine the location of specific text. When the text is not found, FIND returns a #VALUE error....

April 14, 2025 · 1 min · 79 words · Nicole Fisher

Replace one character with another

Explanation The SUBSTITUTE function is full automatic. All you gotta do is supply “old text” and “new text”. SUBSTITUTE will replace every instance of the old text with the new text. See this “clean telephone numbers” formula for an example. If you should probably replace a character at a specific location, see theREPLACE function. SUBSTITUTE is case-sensitive and does not support wildcards….

April 14, 2025 · 1 min · 62 words · Allison Watson

Replace one delimiter with another

Note that a space sometimes appears with the comma, but it is not consistent. This means we also need to handle this variation. TheCHAR functionreturns a character when given a validASCII code page number. TEXTJOIN then joins the values in the array with line breaks and returns the result to cell D5. you’re able to enable Text wrap on the home tab of the ribbon in the Alignment group. Or, you could display Format cells with the shortcutControl + 1then enable text wrap on the Alignment tab....

April 14, 2025 · 1 min · 175 words · Angela Carter

Replace ugly IFs with MAX or MIN

To illustrate, let’s look at two examples. A free lunch with MAX Let’s say you have a $50 credit at a restaurant. It’s a one-time use credit that expires tomorrow, so you take your friend to dinner today. You split a salad, a pizza, and a couple of beers. But what happens when the credit is greater than the total? The IF function now catches negative results and returns zero instead....

April 14, 2025 · 1 min · 187 words · Gabriel Lee

REPT Function

Although REPT can repeat numbers as well as text, the result from REPT is always atext value. REPT can be used topad values to a certain lengthor to build asimple in-cell histogram. To pad numeric values with zeros, acustom number formatmay be a better option. The REPT function appears in more advanced formulas thatsolve some tricky problems. See below for more examples. When the text is not found, FIND returns a #VALUE error....

April 14, 2025 · 1 min · 78 words · Laura Hudson

Required recovery rate

Background One of the most important aspects of investing is the math of gains and losses.

April 14, 2025 · 1 min · 16 words · Tyler Gutierrez

Return array with INDEX function

Explanation It is surprisingly tricky to get INDEX to return more than one value to another function. The problem is that INDEX only returns the first item in the array to the SUM function. Similarly, this formula: correctly returns 60, the sum of 10, 20, and 30. Instead, INDEX delivers a full array of values to SUM. Jeff Weir has agood explanation here on stackoverflow. you’re free to use INDEX to retrieve individual values, or entire rows and columns....

April 14, 2025 · 1 min · 113 words · Jamie York

Return blank if

Explanation The goal is to display a blank cell based on a specific condition. If the value in column B is anything else, we want to display nothing. It is important to understand that the IF function is not case-sensitive. However, numeric valuesshould notappear in quotes. Note if you jot down "" directly into a cell in Excel, youwill seethe double quote characters. In other words, while you would expect ISBLANK to return TRUE, it actually returns FALSE....

April 14, 2025 · 1 min · 133 words · Whitney Pierce

Reverse a list or range

TheSORTBY functioncan perform a “reverse sort” with help from theSEQUENCE function. The first count is used as therowsargument in sequence, the second count is used for thestartargument. it’s possible for you to use INDEX to retrieve individual values, or entire rows and columns. COUNTA does not count empty cells. ROW Function The Excel ROW function returns the row number for a reference. For example, ROW(C5) returns 5, since C5 is the fifth row in the spreadsheet....

April 14, 2025 · 1 min · 132 words · Katherine Mills

Reverse text string

Dynamic array with SEQUENCE function Excel 365supportsdynamic array formulas. In Excel 365, theSEQUENCE functioncan generate dynamic number arrays in one step. For example, =MID(“apple”,2,3) returns “ppl”. INDIRECT Function The Excel INDIRECT function returns a valid cell reference from a given text string. INDIRECT is useful when you want to assemble a text value that can be used as a valid reference. SEQUENCE Function The Excel SEQUENCE function generates a list of sequential numbers in an array....

April 14, 2025 · 1 min · 86 words · Rachael Jones

Reverse VLOOKUP example

Explanation Introduction A key limitation ofVLOOKUPis it can only look up values to theright. Notice zero (0) is provided as the last argument to force an exact match. Effectively, we have swapped columns 1 and 3. This formula shows how INDEX and MATCH can be more flexible than VLOOKUP. With XLOOKUP XLOOKUP also provides a very good solution. Because XLOOKUP performs an exact match by default, there is no need to set the match mode explicitly....

April 14, 2025 · 1 min · 117 words · Aaron Thompson

RIGHT Function

The first argument,text, is thetextstring to extract from. This is typically a reference to a cell that contains text. The second argument, callednum_chars, specifies the number of characters to extract. Ifnum_charsis not provided, it defaults to 1. Ifnum_charsis greater than the number of characters available, RIGHT returns theentiretext string. The result is the two-letter abbreviation for the state. When the result is TRUE, IF returns “x”. When the result is FALSE, IF returns an empty string “”....

April 14, 2025 · 2 min · 249 words · Anna Jensen