Excel Office

Excel How Tos, Tutorials, Tips & Tricks, Shortcuts

Tag: CHOOSE function

CHOOSE function: Description, Usage, Syntax, Examples and Explanation

What is Excel CHOOSE function? CHOOSE function is one of Lookup and Reference functions in Microsoft Excel that uses index_num to return a value from the list of value arguments. Use CHOOSE to select one of up to 254 values based on the index number. For example, if value1 through value7 are the days of the week, CHOOSE returns one of the days…

How to fill cell ranges with random number from fixed set of options in Excel

To quickly fill a range of cells with random numbers from a set of fixed options (i.e. 25,50,75,100), you can use a formula based on the CHOOSE and RANDBETWEEN functions. Formula =CHOOSE(RANDBETWEEN(1,4),num1,num2,num3,num4) Explanation In the example shown, the formula in B4 is: =CHOOSE(RANDBETWEEN(1,4),25,50,75,100) Which returns a random number from the numbers provided. How this formula works The CHOOSE function does…

How to fill cell ranges with random text values in Excel

To quickly fill a range of cells with random text values, you can use a formula based on the CHOOSE and RANDBETWEEN functions. Formula =CHOOSE(RANDBETWEEN(1,3),”Value1″,”Value2″,”Value3″) Note that RANDBETWEEN will calculate a new value whenever the worksheet is changed. Once you have values in the range, you may want to replace the formulas with values to prevent further changes. Explanation In…

How to randomly assign data to groups in Excel

To randomly people (or anything) to groups you can use the RANDBETWEEN function with the CHOOSE function. Formula =CHOOSE(RANDBETWEEN(1,3),”Group A”,”Group B”,”Group B”) Explanation In the example shown, the formula in F3 is: =CHOOSE(RANDBETWEEN(1,3),”A”,”B”,”C”) When copied down the column, this formula will generate a random group (A, B, or C) for each person in the list. How this formula works The…

Custom weekday abbreviation in Excel

This tutorial shows how to create custom weekday abbreviation in Excel using example below. To create a custom weekday abbreviation, you can use a formula based on the CHOOSE and WEEKDAY functions. With this approach, you can generate a custom one-letter abbreviation, two-letter abbreviation, or any weekday that makes sense in your particular situation. Formula =CHOOSE(WEEKDAY(date),”S”,”M”,”T”,”W”,”T”,”F”,”S”) Explanation In the example shown,…

Steps to create Dynamic calendar grid in Excel

This tutorial show how to  create Dynamic calendar grid in Excel using the example below. You can set up dynamic calendar grid on an Excel worksheet with a series of formulas, as explained in this article. Explanation of how this formula works In the example shown, the formula in B6 is: =start-CHOOSE(WEEKDAY(start),0,1,2,3,4,5,6) where “start” is the named range K5, and contains the date…

Get first Monday before any date in Excel

To find the first Monday before any date you can use a formula based on the WEEKDAY function. Formula =date-WEEKDAY(date-2) In the example shown, the formula in C6 is: =B5-WEEKDAY(B5-2) Explanation If you imagine you have any random date and want to look back in time to find the nearest Monday, you can see that you will need to “roll…

Get fiscal quarter from date in Excel

This tutorial show how to Get fiscal quarter from date in Excel. If you want to calculate the fiscal quarter from a date, and the fiscal quarter starts in a month other than January, you can use a formula based on the CHOOSE function. Formula =CHOOSE(MONTH(date),1,1,1,2,2,2,3,3,3,4,4,4) > Explanation Note: if you just need to calculate a “normal” quarter based on a…

Excel Rank with ordinal suffix Example

This tutorials shows how to Rank with ordinal suffix in Excel. To add an ordinal suffix to a number (i.e. 1st, 2nd, 3rd, etc.) you can use a formula based on the CHOOSE function to assign the suffix. Formula =CHOOSE(number,”st”,”nd”,”rd”,”th”,”th”,”th”,”th”,”th”,”th”,”th”) Explanation In the example shown, the formula in C5 is: =CHOOSE(B5,”st”,”nd”,”rd”,”th”,”th”,”th”,”th”,”th”,”th”,”th”) How this formula works Ordinal numbers represent position or…

Map inputs to arbitrary values in Excel

This tutorial shows how to Map inputs to arbitrary values in Excel using the example below; Formula =VLOOKUP(input,map_table,column,0) If you need to map or translate inputs to arbitrary values, you can use the VLOOKUP function. In the example, we need to map the numbers 1-6 as follows: Input Output 1 10 2 81 3 17 4 23 5 13 6…

How to use Excel CHOOSE Function

This Excel tutorial explains how to use the CHOOSE function with syntax and examples. Excel CHOOSE function Description The Microsoft Excel CHOOSE function returns a value from a list of values based on a given position. The CHOOSE function is a built-in function in Excel that is categorized as a Lookup/Reference Function. It can be used as a worksheet function (WS) and a…

How to get Holiday Date from Year in Excel

This example teaches you how to get the date of a holiday for any year (2019, 2020, etc). Before you start: the CHOOSE function returns a value from a list of values, based on a position number. For example, =CHOOSE(3,”Car”,”Train”,”Boat”,”Plane”) returns Boat. The WEEKDAY function returns a number from 1 (Sunday) to 7 (Saturday) representing the day of the week of a date. 1. This is…

Excel VLOOKUP and HLOOKUP functions Examples

Learn all about Excel’s lookup & reference functions such as the VLOOKUP, HLOOKUP, CHOOSE, MATCH and INDEX  function. Navigation: Formula Tab → Function Library Group → Lookup and Reference Vlookup VLOOKUP stands for Vertical lookup.  The VLOOKUP function looks for a value in the leftmost column of a table, and then returns a value in the same row from another column you specify. Syntax for VLOOKUP function: …