Funktionen VÄLJ är otroligt smart, och ett bra verktyg i din verktygslåda! Se varför här.

David Stavegard
25 Sept 202404:00

Summary

TLDRIn this video, David explores the versatile 'CHOOSE' function in Excel. He demonstrates how it can be used to create interactive dropdowns for summing rows based on user selection, selecting and summing different columns, and even determining quarters from dates. With examples, he shows how 'CHOOSE' can dynamically change cell references and calculations, making it a fun and practical tool for Excel users.

Takeaways

  • 📊 The video is about the 'CHOOSE' function in Excel.
  • 🔢 The presenter demonstrates how to use 'CHOOSE' to sum a variable number of rows based on a dropdown selection.
  • 🎲 The script shows an example where choosing 11 rows results in the sum of 66, and choosing 4 rows results in the sum of 10.
  • 📋 The 'CHOOSE' function is used within a SUM function to dynamically select a range of cells to sum based on the value in cell D5.
  • 📈 The script explains how 'CHOOSE' can be used to select and sum different columns based on user input.
  • 🗓️ Another example provided involves using 'CHOOSE' to determine the quarter of the year based on a date.
  • 📑 The presenter corrects a mistake by ensuring that 'CHOOSE' does not select a NULL value, which was causing an error.
  • 💡 The video emphasizes the versatility and 'fun' aspect of using the 'CHOOSE' function for various tasks in Excel.
  • 📝 The script ends with an invitation for viewers to ask questions in the comments.
  • 👋 The presenter signs off with a friendly reminder to meet again next Thursday.

Q & A

  • What is the main topic of the video script?

    -The main topic of the video script is the 'CHOOSE' function in Excel and how it can be used for various calculations and selections.

  • What does the speaker create in the Excel file to demonstrate the CHOOSE function?

    -The speaker creates a dropdown that allows the user to select the number of rows to be summed, which then dynamically updates the total based on the selection.

  • How does the CHOOSE function work according to the script?

    -The CHOOSE function works by selecting an index number as its first argument, and then it selects the corresponding argument from the list provided after the index.

  • What is the outcome when the dropdown in the Excel file is set to 11?

    -When the dropdown is set to 11, the sum function calculates the sum of numbers from 1 to 11, which equals 66.

  • How does the script demonstrate the flexibility of the CHOOSE function?

    -The script demonstrates the flexibility of the CHOOSE function by using it to select different ranges of cells to sum based on the value chosen from the dropdown.

  • What is the purpose of the second example provided in the script?

    -The second example shows how to use the CHOOSE function to select which column to sum based on the value in a specific cell.

  • What is the third example in the script about?

    -The third example is about converting a date into a quarter using the CHOOSE function by selecting the appropriate quarter number based on the month of the date.

  • How does the speaker correct the error in the third example?

    -The speaker corrects the error by ensuring that the CHOOSE function is applied to the entire range of cells, including the last two rows, to avoid selecting a NULL value.

  • What is the final outcome of the third example in the script?

    -The final outcome is a formula that prepends the word 'Quarter' to the calculated quarter number based on the date.

  • What does the speaker encourage viewers to do after the demonstration?

    -The speaker encourages viewers to ask questions and leave comments if they have any.

  • What is the recurring theme or sign-off phrase mentioned in the script?

    -The recurring theme or sign-off phrase is 'See you next Thursday, precisely as always'.

Outlines

00:00

📊 Excel's CHOOSE Function Explained

In this video segment, David introduces the Excel function 'CHOOSE'. He demonstrates its versatility by creating a dropdown that allows the user to select the number of rows to sum. For instance, selecting 11 rows results in the sum of 1+2+3+...+11, which equals 66. He also explains how the function works with the first argument determining which of the subsequent arguments to select. He uses this function within a SUM function to dynamically change the range of cells being summed based on the dropdown selection. David also shows how to use CHOOSE to select a column to sum and how to format the output to display 'Quarter' before the calculated quarter number.

Mindmap

Keywords

💡Excel

Excel is a widely used spreadsheet program developed by Microsoft. It is part of the Microsoft Office suite and is used for creating and managing tables of data, performing calculations, creating charts, and more. In the video, Excel is the platform where the demonstrations of various functions are being showcased.

💡Function

In Excel, a function is a predefined formula that performs a specific calculation or operation. Functions can range from simple arithmetic to complex statistical or financial calculations. The video focuses on the 'CHOOSE' function, which is used to select a value from a list based on a given index number.

💡CHOOSE

The CHOOSE function in Excel is used to select a value from a list of values based on the position of the value in the list. It is defined by the index number provided as the first argument. In the video, the CHOOSE function is used to select a range of cells to sum based on the value selected from a dropdown.

💡Dropdown

A dropdown, also known as a drop-down list or combo box, is a user interface element that allows the user to click a button to view a list of options and then select one. In the context of the video, a dropdown is used to input the number of rows to be summed in an Excel spreadsheet.

💡Sum

The SUM function in Excel adds up all the numbers in a specified range of cells. It's a fundamental function used for calculating totals. The video demonstrates how the SUM function is combined with the CHOOSE function to dynamically sum a range of cells based on user input.

💡Argument

In the context of Excel functions, an argument is a value or reference to a value that a function requires to perform its task. The CHOOSE function, for example, requires an index number as its first argument to determine which value to select from the list of arguments provided. The video explains how different arguments are used to control the output of the function.

💡Cell

A cell in Excel is the basic unit that contains data such as numbers, text, or formulas. Cells are organized in rows and columns and can be referenced by their column letter and row number. The video uses cell references to demonstrate how the CHOOSE function selects values based on the input from other cells.

💡Range

A range in Excel refers to a set of cells in a worksheet. It can be a single cell, a row, a column, or a group of cells. The video uses the concept of range to show how the CHOOSE function can select a range of cells to be summed based on the value chosen from a dropdown.

💡MONTH

The MONTH function in Excel returns the month of a specified date, represented by a number from 1 to 12. In the video, the MONTH function is used to extract the month from a date, which is then used to determine the quarter of the year using the CHOOSE function.

💡Quarter

A quarter is one of four equal periods into which a year is divided. In Excel, calculating the quarter from a date can be done using functions like CHOOSE in conjunction with MONTH. The video demonstrates how to use these functions to determine the quarter of the year based on a given date.

💡Concatenation

Concatenation in Excel is the process of joining together two or more strings of text to create a single text string. The video shows how to concatenate the word 'Quarter' with the result of a formula to display the quarter of the year as text.

Highlights

Introduction to the Excel 'Choose' function

Creating a dynamic dropdown to select the number of rows to sum

Using 'Choose' function to select rows based on a dropdown value

Calculating the sum based on the selected number of rows

Explanation of how 'Choose' function works with its arguments

Demonstration of 'Choose' function selecting values from a range

Using 'Choose' to dynamically select columns for summing

Showing how 'Choose' can handle different block sizes in a range

Applying 'Choose' function to calculate the quarter of a date

Using 'Choose' to select between quarters based on the month

Creating a formula to prepend 'Quarter' to the calculated quarter number

Addressing an error caused by not updating a formula correctly

Encouraging viewers to ask questions in the comments

Invitation to join the next session on Thursday

The presenter's signature sign-off 'preciiiiis as always'

Using 'Choose' function for creating interactive Excel features

Highlighting the versatility of the 'Choose' function in Excel

Transcripts

play00:00

Hallå allesammans, David här, det är torsdag, och det är dags för ett nytt litet spännade

play00:04

välj-avsnitt i Excel - idag ska vi nämligen prata om funktionen

play00:08

välj. Så här är det - den här funktionen kan man ha väldigt mycket olika

play00:12

roliga grejer med - det hände faktiskt att när jag gjorde den här filen

play00:16

så stod och lekte lite här för den var rolig att hålla på med.

play00:21

Vad jag gjort här är en liten dropdown

play00:24

så säger jag hur många rader ska summeras här

play00:28

om man väljer 11 får man 66, för 1+2+3+4 osv

play00:32

upp till 11 blir 66, väljer man fyra rader får man 10

play00:36

och väljer man 5 får man 15 osv.

play00:39

Den här är ganska kul att leka med, ja du ser

play00:43

om man uppdaterar siffrorna så ändras summan.

play00:46

Vad jag gjort här, det är att jag använder funktionen VÄLJ (eller choose)

play00:50

välj fungerar så här - första argumentet

play00:54

är vilken ska den välja av alla som kommer efter första

play00:58

så här har jag valt

play01:02

det som står i D5 vilket just nu är siffran tre

play01:06

då ska den ta det tredje argumentet av de som står här

play01:10

då kommer den alltså ta B7 och returnera den. MEN så har jag lagt in

play01:14

allt det här i en summa-funktion, så den får från B5 till

play01:18

B7, eftersom vi valt tre. Så då blir det summa(B5:B7)

play01:22

och då får man ut de tre första raderna,

play01:26

Hade vi valt en annan siffra så hade den valt en annan av de här

play01:30

B-referenserna - hade vi till exmepel valt två så hade den tagit det andra argumentet där.

play01:36

Så här fungerar VÄLJ till exempel, himla fiffigt bara

play01:39

den här enkla grejen kan man stå och leta med - om man öhh - ja, är lagd åt det hållet.

play01:43

Men - så kommer vi till ett annat exempel här

play01:47

här har jag valt att man kan välja vilken kolumn den ska summera

play01:52

Så jag säger att den ska summera kolumn två eller ett,

play01:55

så ser du att den summerar de här siffrorna. Hur jag har gjort

play01:59

det här? Jo - då har jag skrivit SUMMA och så

play02:03

säger jag VÄLJ D23 - dvs den där,

play02:07

bestämmer om den ska välja A23 till A27

play02:11

B23 till B29 eller C23 till C32

play02:15

du ser - det behöver inte ens vara likastora block här va,

play02:19

och så väljer den helt enkelt ut dem, skickar in i summa och så får vi summan av det man valt.

play02:23

Också en väldigt kul funktion att stå och leka med så där.

play02:27

Sen har jag ytterligare ett exempel, och det här tänkte jag göra live, så får du se

play02:31

här har vi massa datum,

play02:35

och kör man =MÅNAD för den där cellen så får man ut vilken

play02:39

månad det är, men ska vi göra om det här till kvartal, jo då gör man så här

play02:43

VÄLJ och så säger vi att den

play02:47

cellen ska få välja, och vad ska den välja bland? Jo

play02:51

Den väljer bland 1, 1 eller 1 för kvartal ett,

play02:56

2, 2 eller 2 för kvartal två,

play02:59

och så vidare här va, och vad jag gjort nu är att jag säger att den ska välja månad

play03:03

och om det är första, andra eller tredje månaden kommer den returnera

play03:07

den första eller andra eller tredje argumentet här, vilket ju alla tre är ettor, osv

play03:11

och då får vi ut kvartal. Vill jag nu att det ska stå kvartal framför

play03:15

då gör man bara så här, - man säger ="Kvartal "

play03:19

mellanslag, slutcitationstecken &

play03:23

innehållet i den där, och vips så har vi

play03:27

en väldigt snygg liten funktion som bara räknar ut BEEEBÖÖÖÖÖP!

play03:31

Vips så har vi byggt upp en smart liten funktion som

play03:35

räknar ut vilket kvartal det är beroende på datumet här, och felet här nere? Ja, det beror på

play03:39

att jag inte hade skjutsat ner den här hela vägen, den kan ju inte välja ett NULLvärde

play03:43

i den där cellen, utan då måste man dra ner den här hela vägen och så får vi ut

play03:47

de två sista raderna också. Stort tack för att du sett på det här, har du frågor?

play03:51

Skriv en kommentar här nedanför, så ses vi nästa torsdag igen

play03:55

preciiiiis som alltid - hejdå!

Rate This

5.0 / 5 (0 votes)

Etiquetas Relacionadas
Excel TutorialCHOOSE FunctionData AnalysisSumming DataColumn SelectionQuarter CalculationDate FunctionsExcel TipsVBA ScriptingEducational ContentInteractive Learning
¿Necesitas un resumen en inglés?