Function from graph in excel

Содержание

  1. How to Graph an Equation / Function – Excel & Google Sheets
  2. How to Graph an Equation / Function in Excel
  3. Set up your Table
  4. Fill in Y Column
  5. Creating Scatterplot
  6. Add Equation Formula to Graph
  7. Final Scatterplot with Equation
  8. How to Graph an Equation / Function in Google Sheets
  9. Creating a Scatterplot
  10. Adding Equation
  11. Final Scatterplot with Equation
  12. How to add equation to graph – Excelchat
  13. Tabulate Data
  14. Instant Connection to an Expert through our Excelchat Service
  15. How to Fit an Equation to Data in Excel
  16. Determine the Form of the Equation
  17. Calculate the Equation from the Parameters
  18. Calculate the Sum of Residuals Squared
  19. Find the Best-Fit Parameters
  20. Check the Result
  21. How to Make a Graph in Excel & Add Visuals to Your Reporting
  22. What is the difference between Charts and Graphs?
  23. Charts in Excel
  24. Graphs in Excel
  25. Types of Graphs Available in Excel
  26. How to Make a Graph in Excel
  27. 1. Fill the Excel Sheet with Your Data & Assign the Right Data Types
  28. Choose the Type of Excel Graph You Want to Create
  29. Highlight The Data Sets That You Want To Use
  30. Create the Basic Excel Graph
  31. Improve Your Excel Graph with the Chart Tools
  32. Challenges with Making a Graph In Excel

How to Graph an Equation / Function – Excel & Google Sheets

This tutorial will demonstrate how to graph a Function in Excel & Google Sheets.

How to Graph an Equation / Function in Excel

Set up your Table

  1. Create the Function that you want to graph
  2. Under the X Column, create a range. In this example, we’re range from -5 to 5

Fill in Y Column

Create a formula using the Function, substituting x with what is in Column B.

After using this formula for all the rows, you should have a table that looks like below.

Creating Scatterplot

  1. Highlight Dataset
  2. Select Insert
  3. Select Scatterplot
  4. Select Scatter with Smooth Lines

This will create a graph that should look similar to below.

Add Equation Formula to Graph

  1. Click Graph
  2. Select Chart Design
  3. Click Add Chart Element
  4. Click Trendline
  5. Select More Trendline Options

6. Select Polynomial

7. Check Display Equation on Chart

Final Scatterplot with Equation

Your final equation on the graph should match the function that you began with.

How to Graph an Equation / Function in Google Sheets

Creating a Scatterplot

  1. Using the same table that we made as explained above, highlight the table
  2. Click Insert
  3. Select Chart

4. Click on the dropdown under Chart Type

5. Select Line Chart

Adding Equation

  1. Click on Customize
  2. Select Series

3. Check Trendline

4. Under Type, Select Polynomial

5. Under Label, Select Use Equation

Final Scatterplot with Equation

As you can see, similar to the exercise in Excel, the equation matches the function that we began with.

Источник

How to add equation to graph – Excelchat

We can add an equation to a graph in excel by using the excel equation of a line . Graph equations in excel are easy to plot and this tutorial will walk all levels of excel users through the process of showing line equation and adding it to a graph .

Figure 1: Graph equation

Tabulate Data

  • We will tabulate our data in two columns.

Figure 2: Table of Data

  • We will then highlight our entire table and click on “insert ”, then we will then select the “scatter chart” icon to display a graph

Figure 3 – Scatter chart

Figure 4: Graphical Representation of Data

  • We will now click on the “+” icon beside the chart to edit our graph by including the Chart Title and Axes. We will also remove the gridlines.

Figure 5: Edited Graph Parameters

  • We will now add the equation of the chart by right clicking on any of the point on the chart, select “add trendline” , then scroll down and finally select “Display Equation on Chart” .

Figure 6: Equation of a line

Instant Connection to an Expert through our Excelchat Service

Most of the time, the problem you will need to solve will be more complex than a simple application of a formula or function. If you want to save hours of research and frustration, try our live Excelchat service! Our Excel Experts are available 24/7 to answer any Excel question you may have. We guarantee a connection within 30 seconds and a customized solution within 20 minutes.

Источник

How to Fit an Equation to Data in Excel

You can use Excel to fit simple or even complex equations to data with just a few steps.

Determine the Form of the Equation

The first step in fitting an equation to data is to determine what form the equation should have. Sometimes this is easy, but other times it will be more difficult. Usually, the equation you choose will come from prior knowledge of the system you are analyzing.

Either way, it all starts with inspecting the data, and the easiest way to do that is to plot it in a chart. I’ve done that with some sample data below, and it’s obvious that we can fit a quadratic function to this data. Regardless of the complexity of the function, the method I’ll be showing is still valid. I’ve just chosen a simple example for this demonstration.

Once you’ve determined the form the equation should have, the next step is to define the parameters for the equation. Assuming the y-intercept is 0, a quadratic equation has the form:

so, our parameters are a and b.

We can input arbitrary values for those parameters on our spreadsheet. The values that are entered don’t matter for now because we’ll be adjusting them later to fit the function to the data.

Calculate the Equation from the Parameters

Next, we calculate a new series in Excel using the equation above. The series will be a function of the parameters a and b, and the independent variable, x.

Plotting the original y-data and the calculated result, “ycalc”, on the same graph tells us that the parameters of the function are not yet correct. But we will fix that soon by adjusting them to find the best fit.

Calculate the Sum of Residuals Squared

Although it would be tedious, we could manually adjust the two parameters and “eyeball” the curve fit until it looked good. But we’re smarter than that, so we’ll use the method of least squares along with Solver to automatically find the parameters that define the best fit curve much more efficiently.

Solver works by optimizing a single objective cell, so we’ll need to create an output that defines how well the function fits the data. This output is the sum of the residuals squared.

Residuals are the difference between the value provided by the function and the data value at a given value of x.

So, let’s create another column for the residuals:

Then, to calculate the sum of the residuals squared, use the SUMSQ function:

Minimizing this term will let us know that we have found the parameters that best fit the function to the data. To minimize this term, we’ll use Solver.

Find the Best-Fit Parameters

If you haven’t already activated the Solver add-in in your copy of Excel, you can find instructions to do that right here.

Once installed, you can open it from the far-right side of the Data tab:

With Solver open, select the cell that contains the SUMSQ formula as the objective, and the cells containing the values for “a” and “b” as the variable cells.

The goal, of course, is to minimize the sum of the residuals squared, so select the button next to “Min” in the Solver window.

Finally, uncheck the box next to “Make unconstrained variables non-negative.” We don’t know beforehand that the best values of a and b are necessarily positive, so this constraint is invalid.

For my worksheet, the Solver window has the following setup:

For a simple model like this, it’s not necessary to change any of the solver options. However, for more complex equations that may be necessary, and I’ve explained how to do so in this post.

All that’s left now is to click “Solve” and let Solver find the optimum parameters for the function.

Check the Result

Solver adjusts the values of the constants until the sum of the squared residuals is minimized. Those values are shown below:

The magnitude of the minimized sum of squared residuals is relative and depends on the data you are working with. Smaller data values are going to result in a smaller sum of squared residuals than larger values.

Finally, we can check the fit of the equation to the data by plotting both on the same chart. In the chart below, the orange circles are the function and the blue circles are the underlying data from which the function was derived.

Are you struggling to the find the right solutions to your engineering problems in Excel?

In Engineering with Excel, you’ll learn Excel for advanced engineering calculations through a step-by-step system that helps engineers solve difficult problems quickly and accurately.

Источник

How to Make a Graph in Excel & Add Visuals to Your Reporting

Most companies (and people) don’t want to pore through pages and pages of spreadsheets when it’s so quick to turn those rows and columns into a visual chart or graph. But someone has to do it…and that person must be you.

Ready to turn your boring Excel spreadsheet into something a little more interesting?

In Excel, you’ve got everything you need at your fingertips. Excel users can leverage the power of visuals without any additional extensions. You can create a graph or chart right inside Excel rather than exporting it into some other tool.

What is the difference between Charts and Graphs?

According to reference.com…“The difference between graphs and charts is mainly in the way the data is compiled and the way it is represented. Graphs are usually focused on raw data and showing the trends and changes in that data over time. Charts are best used when data can be categorized or averaged to create more simplistic and easily consumed figures.

So technically, charts and graphs mean separate things, but in the real world, you’ll hear the terms used interchangeably. People generally accept both so don’t worry too much about it!

In this post, you’ll learn exactly how to create a graph in Excel and improve your visuals and reporting…but first let’s talk about charts. Understanding exactly how charts play out in Excel will help with understanding graphs in Excel.

Charts in Excel

Charts are usually considered more aesthetically pleasing than graphs. Something like a pie chart is used to convey to readers the relative share of a particular segment of the data set with respect to other segments that are available. If instead of the changes in hours worked and annual leaves over 5 years, you want to present the percentage contributions of the different types of tasks that make up a 40 hour work week for employees in your organization then you can definitely insert a pie chart into your spreadsheet for the desired impact.

Graphs in Excel

Graphs represent variations in values of data points over a given duration of time. They are simpler than charts because you are dealing with different data parameters. Comparing and contrasting segments of the same set against one another is more difficult.

So if you are trying to see how the number of hours worked per week and the frequency of annual leaves for employees in your company has fluctuated over the past 5 years, you can create a simple line graph and track the spikes and dips to get a fair idea.

Types of Graphs Available in Excel

Excel offers three varieties of graphs:

  • Line Graphs: Both 2 dimensional and three dimensional line graphs are available in all the versions of Microsoft Excel. Line graphs are great for showing trends over time. Simultaneously plot more than one data parameter – like employee compensation, average number of hours worked in a week and average number of annual leaves against the same X axis or time.
  • Column Graphs: Column graphs also help viewers see how parameters change over time. But they can be called “graphs” when only a single data parameter is used. If multiple parameters are called into action, viewers can’t really get any insights about how each individual parameter has changed. As you can see in the Column graph below, average numbers of hours worked in a week and average number of annual leaves when plotted side by side do not provide the same clarity as the Line graph.

  • Bar Graphs: Bar graphs are very similar to column graphs but here the constant parameter (say time) is assigned to the Y axis and the variables are plotted against the X axis.

How to Make a Graph in Excel

1. Fill the Excel Sheet with Your Data & Assign the Right Data Types

The first step is to actually populate an Excel spreadsheet with the data that you need. If you have imported this data from a different software, then it’s probably been compiled in a .csv (comma separated values) formatted document.

If this is the case, use an online CSV to Excel converter like the one here to generate the Excel file or open it in Excel and save the file with an Excel extension.

After converting the file, you still may need to clean up the rows and the columns. It is better to work with a clean spreadsheet so that the Excel graph you’re creating is clean and easy to modify or change.

If that doesn’t work, you may also need to manually enter the data into the spreadsheet or copy and paste it over before creating the Excel graph.

Excel has two components to its spreadsheets:

  • The rows that are horizontal and marked with numbers
  • The columns that are vertical and marked with alphabets

After all the data values have been set and accounted for, make sure that you visit the Number section under the Home tab and assign the right data type to the various columns. If you do not do this, chances are your graphs will not show up right.

For example if column B is measuring time, ensure that you choose the option Time from the drop down menu and assign it to B.

Choose the Type of Excel Graph You Want to Create

This will depend on the type of data you have and the number of different parameters you will be tracking simultaneously.

If you are looking to take note of trends over time then Line graphs are your best bet. This is what we will be using for the purpose of the tutorial.
Let us assume that we are tracking Average Number of Hours Worked/Week/Employee and Average Number of Leaves/Employee/Year against a five year time span.

Highlight The Data Sets That You Want To Use

For a graph to be created, you need to select the different data parameters.

To do this, bring your cursor over the cell marked A. You will see it transform into a tiny arrow pointing downwards. When this happens, click on the cell A and the entire column will be selected.

Repeat the process with columns B and C, pressing the Ctrl (Control) button on Windows or using the Command key with Mac users.

Your final selection should look something like this:

Create the Basic Excel Graph

With the columns selected, visit the Insert tab and choose the option 2D Line Graph.

You will immediately see a graph appear below your data values.

Sometimes if you do not assign the right data type to your columns in the first step, the graph may not show in a way that you want it to. For example, Excel may plot the parameter Average Number of Leaves/Employee/Year along the X axis instead of the Year. In this case, you can use the option Switch Row/Column under the Design tab of Chart Tools to play around with various combinations of X axis and Y axis parameters till you hit on the perfect rendition.

To change colors or to change the design of your graph, go to Chart Tools in the Excel header.

You can select from the design, layout and format. Each will change up the look and feel of your Excel graph.

Design: Design allows you to move your graph and re-position it. It gives you the freedom to change the chart type. You can even experiment with different chart layouts. This may conform more to your brand guidelines, your personal style, or your manager’s preference.

Layout: This allows you to change the title of the axis, the title of your chart and the position of the legend. You might go with vertical text along the Y axis and horizontal text along the X axis. You can even adjust the grid lines. You have every formatting tool conceivable at your fingertips to improve the look and feel of your graph.

Format: The Format tab allows you to add a border in your chosen width and color around the graph to properly separate it from the data points that are filled in the rows and columns.

And there you have it. An accurate visual representation of the data that you have imported or entered manually to help your team members and stakeholders better engage with the information and utilize it to create strategies or be more aware of all the constraints while taking decisions!

Challenges with Making a Graph In Excel

When manipulating simple data sets, you can create a graph fairly easily.

But when you start adding in several types of data with multiple parameters, then there will be glitches. Here are some of the challenges that you’re going to have:

  • Data sorting can be problematic when creating graphs. Online tutorials might recommend data sorting to make your “charts” look more aesthetically appealing. But beware of when the X axis is a time-based parameter! Sorting data values by magnitude may mess up the flow of the graph because the dates are sorted randomly. You may not be able to spot the trends very well.

You may forget to remove duplicates. This is especially true if you have imported the data from a third-party application. Generally, this type of information is not filtered of redundancies. And you might end up corrupting the integrity of your information if duplicates sneak into your pictorial representation of trends. When working with copious volumes of data, it is best to use the Remove Duplicates option on your rows.

Creating graphs in Excel doesn’t have to be overly complex, but, much like with creating Gantt charts in Excel, there can be some easier tools to help you do it. If you’re trying to create graphs for workloads, budget allocations or monitoring projects, check out project management software instead.

Many of those functions are automated and without manual data entry. And you won’t be left wondering about who has the latest data sets. Most project management solutions, like Workzone, have file sharing and some visualization capabilities built-in.

Источник

Return to Charts Home

This tutorial will demonstrate how to graph a Function in Excel & Google Sheets.

How to Graph an Equation / Function in Excel

Set up your Table

  1. Create the Function that you want to graph
  2. Under the X Column, create a range. In this example, we’re range from -5 to 5

Starting Dataset to find Equation for X Y Axis

Fill in Y Column

Create a formula using the Function, substituting x with what is in Column B.

Formula Calculate Y Value for Equation in Excel

After using this formula for all the rows, you should have a table that looks like below.

Formulas all Values X Y Axis in Equation

Creating Scatterplot

  1. Highlight Dataset
  2. Select Insert
  3. Select Scatterplot
  4. Select Scatter with Smooth Lines

Scatterplot Chart in Excel from Equation

This will create a graph that should look similar to below.

Equation Curve Excel Function

Add Equation Formula to Graph

  1. Click Graph
  2. Select Chart Design
  3. Click Add Chart Element
  4. Click Trendline
  5. Select More Trendline Options

Creating a Trendline from an Equation in Excel

6. Select Polynomial

7. Check Display Equation on Chart

Polynomial Equation Trendline for Curve in Excel

Final Scatterplot with Equation

Your final equation on the graph should match the function that you began with.

Equation Formula on Graph in Excel

How to Graph an Equation / Function in Google Sheets

Creating a Scatterplot

  1. Using the same table that we made as explained above, highlight the table
  2. Click Insert
  3. Select Chart

Equation Table for Curve Google Sheets

4. Click on the dropdown under Chart Type

5. Select Line Chart

Line Chart for Equation Google Sheets

Adding Equation

  1. Click on Customize
  2. Select Series

Trendline Equation for Line Chart Google Sheets

3. Check Trendline

4. Under Type, Select Polynomial

5. Under Label, Select Use Equation

Polynomial Trendline and Equation for Curve in Google Sheets

Final Scatterplot with Equation

As you can see, similar to the exercise in Excel, the equation matches the function that we began with.

Equation from Google Sheets on Graph

Learning how to graph functions in Excel can be daunting, but it is a good skill to learn. Luckily, Excel has many wonderful features that make the process easy to learn and use. This article outlines the process with step-by-step instructions to help you graph functions in Excel in no time. 

We’ll go over what graph functions are, discuss the top reasons you should learn how to graph functions in Excel, and show you the benefits of using this software program. This detailed step-by-step guide will have you using Excel like a pro. 

Get offers and scholarships from top coding schools illustration

Find Your Bootcamp Match

  • Career Karma matches you with top tech bootcamps
  • Access exclusive scholarships and prep courses

Select your interest

First name

Last name

Email

Phone number

By continuing you agree to our Terms of Service and Privacy Policy, and you consent to receive offers and opportunities from Career Karma by telephone, text message, and email.

What Are Graph Functions in Excel?

Graph functions in Excel are preset formulas used to determine an output variable using input variables. This function calculates the necessary variables you want to define and uses them to display the data visually on a graph or chart. 

Graph functions make it easier for businesses to track their performance and predict possible future sales, solutions, and problems. This tool allows you to make statistical calculations quickly and creates a visual representation of complex data.

Why Learning How to Graph Functions in Excel is Useful

  • Excel Helps You Visualize Your Data Quickly. Excel has a wide variety of helpful functionalities that can execute simple or complex calculations. You can use it to turn your function and data into a graph or dynamic chart in only a few simple steps.
  • You Can Improve and Gain Excel Skills. Many businesses use Excel to perform complex and day-to-day tasks. Learning how to graph functions in Excel will develop your Excel skills which can open up more opportunities for you to get promoted or apply for higher-paying jobs. 
  • Excel Helps You Learn Which Graph to Use. There are many graph types in Excel you can choose from such as column graphs and bubble charts. Trying different chart options will help you understand which are the best graphs to use for the kinds of data you want to display. One scenario might call for a bubble chart, while another requires a scatter chart. 
  • You Can See Your Data in a New Way. Graphing functions in Excel can help you see your data in a new light. This can help you view your data differently and see any problems with the data set that you may have missed before. You can add trendlines on charts to ensure they are easy to interpret. 

How to Graph Functions in Excel: A Step-By-Step Guide

Step 1: Write Down the Headers

Open the program and create a new worksheet to start your graph function in Excel. First, you’ll need to write your headers into cells. These headers will determine your input and output columns. You can either name them “x” and “y”, or you can be specific and name them “sales” and “profit”, for example. Cell A1 is your input column, cell B1 is your output column.

Step 2: Insert Your Input Variables

Now, you need to enter the values for the horizontal x-axis. Start by typing the first value in cell A2, the next value in cell A3, and continue in that column until every input variable is written. Select all the values in the input column by dragging the cursor down until you have selected them all, open the “Formula” tab at the top of the page, and click “Define Name”. Write the “x” in the name box and click “OK”.

Step 3: Enter your Formula

You’ll then need to write the formula into cell B2 for your graphing function. Start by writing the “=” symbol in the B2 cell followed by the formula. Don’t leave any spaces after the “=” or else the formula won’t work. 

For example, if you want to find out what levels of sales you need to break even, write “=(A2*50)-2500” in the cell. The “*” symbol represents multiplication, the number 50 is for the cost of each product and 2500 is what you paid for the products and advertising costs. You can use this calculation method to track anything.

Step 4: Put the Formula Into the Output Column

Now that your formula is written out and ready to use, copy the formula you have written in cell B2 by clicking on it and selecting the “Copy” icon at the top of the Home tab. Select all of the cells in your output column starting with cell B3, then select the arrow on the “Paste” option and click on “Formulas” to paste the formula into the cells of your current selection. You should end up with a value in each cell up to the column up to the last input and output variable.

Step 5: Create Your Graph

With all the difficult work done, you can now create your graph. Select all the cells in your worksheet containing variables, including the headers in your selection. Open the “Insert” tab, go to the “Chart” menu and select the type of graph you want to use out of the many options you have available. 

You can go for a scatter plot with smooth lines, a column chart, or any other chart type that will work with your data set. You can also use a trendline to make data trends more obvious. Excel has several trendline options. 

Benefits of Graph Functions in Excel

  • It’s Easy to Learn and Use. Many industries use Excel because it’s simple, widely available, and equally easy to access and understand for people. Microsoft has many training videos, and other establishments offer fantastic online Excel courses and training that can show you how to graph functions and use all of its other functionalities.
  • It Lets You Identify Trends and Issues. Looking at raw data or even data in a table can sometimes be challenging to interpret. Using Excel to graph functions can help you better assess business trends and possible problems. 
  • It Lets You Easily Create Data-Driven Reports. Excel is a fantastic software with many formulas and functions you can use to easily graph functions the data you enter into a table.
  • It Has Plenty of Customization Options. Excel allows you to quickly and easily customize your table and individual chart elements. You can customize your chart title and chart style and change a graph after you’ve made it if you need to.   
  • It’s Cheap. Microsoft 365, which comes with Excel, costs around $6 to $9 per month, depending on whether you buy it for personal or business use. It’s a cost-effective program considering everything you can do on it. 

Importance of Learning How to Use Excel Sheets

Learning how to use Excel sheets is essential for many professionals. Excel’s automated functionalities make admin and data entry and analysis jobs much easier. According to Statista, over one million companies use Office 365. Learning how to use this program will make you a valuable asset to your company. Learning how to use Excel can also open you up to job opportunities due to the sheer number of them that use it.  

If you want to broaden your horizons and learn how to use Excel sheets, you can enroll in an Excel bootcamp. Bootcamps are short-term, intensive learning programs that can teach you all you need to know about a specific topic.

How to Graph Functions in Excel FAQ

Can you add multiple functions to one graph?

Yes, you can add more functions to a graph after creating the first. First, go to “Chart Tools” and select the “Design” tab, then click the “Select Data Source” button. Add your new variables by clicking “Add” below the “Series” option. There, you can add the new variables and press “OK” to finish the process.

How do I add a title to my graph in Excel?

You can add a heading to your graph in excel by following simple steps. Click the “Chart Title” option and type in your header when you are on the chart. Next, click on the + symbol at the top-right of the graph and select the arrow. Click on Centered Overlay, and your title should appear on your graph. 

What professions use Excel often?

Professions that use Excel include sales managers, quality analysts, economists, construction managers, and statisticians, among many others. There is a wide range of jobs that use Excel skills.

Why is a graph better than looking at raw data?

Using a graph to represent data is much better than looking at raw data because a graph is easier to understand and interpret.

Как строить график функции в Экселе

Вариант 1: График функции X^2

В качестве первого примера для Excel рассмотрим самую популярную функцию F(x)=X^2. График от этой функции в большинстве случаев должен содержать точки, что мы и реализуем при его составлении в будущем, а пока разберем основные составляющие.

  1. Создайте строку X, где укажите необходимый диапазон чисел для графика функции.
  2. Создание первой строки для построения графика функции X^2 в Excel

  3. Ниже сделайте то же самое с Y, но можно обойтись и без ручного вычисления всех значений, к тому же это будет удобно, если они изначально не заданы и их нужно рассчитать.
  4. Создание второй строки для построения графика функции X^2 в Excel

  5. Нажмите по первой ячейке и впишите =B1^2, что значит автоматическое возведение указанной ячейки в квадрат.
  6. Создание формулы для автоматического расчета значений при работе с графиком функции X^2 в Excel

  7. Растяните функцию, зажав правый нижний угол ячейки, и приведя таблицу в тот вид, который продемонстрирован на следующем скриншоте.
  8. Растягивание формулы перед создание графика функции X^2 в Excel

  9. Диапазон данных для построения графика функции указан, а это означает, что можно выделять его и переходить на вкладку «Вставка».
  10. Выделение всего диапазона данных для создания графика функции X^2 в Excel

  11. На ней сразу же щелкайте по кнопке «Рекомендуемые диаграммы».
  12. Переход в меню выбора диаграммы для создания графика функции X^2 в Excel

  13. В новом окне перейдите на вкладку «Все диаграммы» и в списке найдите «Точечная».
  14. Выбор точечного графика для создания графика функции X^2 в Excel

  15. Подойдет вариант «Точечная с гладкими кривыми и маркерами».
  16. Добавление выбранного графика на лист для создания графика функции X^2 в Excel

  17. После ее вставки в таблицу обратите внимание, что мы добавили равнозначный диапазон отрицательных и плюсовых значений, чтобы получить примерно стандартное представление параболы.
  18. Проверка созданного графика функции при работе с X^2 в Excel

  19. Сейчас вы можете поменять название диаграммы и убедиться в том, что маркеры значений выставлены так, как это нужно для дальнейшего взаимодействия с этим графиком.
  20. Редактирование графика функции X^2 в Excel после его добавления на лист

  21. Из дополнительных возможностей отметим копирование и перенос графика в любой текстовый редактор. Для этого щелкните в нем по пустому месту ПКМ и из контекстного меню выберите «Копировать».
  22. Кнопка для копирования созданного графика функции X^2 в Excel

  23. Откройте лист в используемом текстовом редакторе и через это же контекстное меню вставьте график или используйте горячую клавишу Ctrl + V.
  24. Успешная вставка построенного графика функции X^2 в Excel в текстовый редактор

Если график должен быть точечным, но функция не соответствует указанной, составляйте его точно в таком же порядке, формируя требуемые вычисления в таблице, чтобы оптимизировать их и упростить весь процесс работы с данными.

Вариант 2: График функции y=sin(x)

Функций очень много и разобрать их в рамках этой статьи просто невозможно, поэтому в качестве альтернативы предыдущему варианту предлагаем остановиться на еще одном популярном, но сложном — y=sin(x). То есть изначально есть диапазон значений X, затем нужно посчитать синус, чему и будет равняться Y. В этом тоже поможет созданная таблица, из которой потом и построим график функции.

Lumpics.ru

  1. Для удобства укажем всю необходимую информацию на листе в Excel. Это будет сама функция sin(x), интервал значений от -1 до 5 и их шаг весом в 0.25.
  2. Добавление объяснений перед построением графика функции y=sin(x) в Excel

  3. Создайте сразу два столбца — X и Y, куда будете записывать данные.
  4. Добавление двух столбцов при построении графика функции y=sin(x) в Excel

  5. Запишите самостоятельно первые два или три значения с указанным шагом.
  6. Добавление первых значений для X при построении графика функции y=sin(x) в Excel

  7. Далее растяните столбец с X так же, как обычно растягиваете функции, чтобы автоматически не заполнять каждый шаг.
  8. Растягивание значений при построении графика функции y=sin(x) в Excel

  9. Перейдите к столбцу Y и объявите функцию =SIN(, а в качестве числа укажите первое значение X.
  10. Добавление первого числа для формулы при расчете Y для построения графика функции y=sin(x) в Excel

  11. Сама функция автоматически высчитает синус заданного числа.
  12. Добавление первого числа для формулы при расчете Y для построения графика функции y=sin(x) в Excel

  13. Растяните столбец точно так же, как это было показано ранее.
  14. Растягивание формулы перед построением графика функции y=sin(x) в Excel

  15. Если чисел после запятой слишком много, уменьшите разрядность, несколько раз нажав по соответствующей кнопке.
  16. Удаление лишней разрядности перед построением графика функции y=sin(x) в Excel

  17. Выделите столбец с Y и перейдите на вкладку «Вставка».
  18. Выбор стандартного графика для построения графика функции y=sin(x) в Excel

  19. Создайте стандартный график, развернув выпадающее меню.
  20. Выбор диапазона данных для построения графика функции y=sin(x) в Excel

  21. График функции от y=sin(x) успешно построен и отображается правильно. Редактируйте его название и отображаемые шаги для простоты понимания.
  22. Успешное построение графика функции y=sin(x) в Excel и его добавление на лист

Еще статьи по данной теме:

Помогла ли Вам статья?

(Note: This guide on how to graph a function in Excel is suitable for all Excel versions including Office 365)

Time and time, Excel has proven to be a beneficial tool for performing various calculations. Excel offers calculations and simplifications on a vast amount of mathematical functions ranging from simple addition functions to complex quadratic, exponential, and trigonometric functions.

In addition to calculating the values, Excel also has the ability to provide a relationship between the input and output values. This representation in the form of graphs provides an easy way to compare and interpret the data. 

In this article, I will show you how to use a function in Excel and how to graph a function in Excel using 2 easy ways. 

You’ll Learn:

  • What are Functions?
  • How to Use Functions in Excel?
    • By using Functions from Excel Library
    • By Manually Entering the Function
  • How to Graph a Function in Excel?
  • How to Customize the Graph?

Watch our video on how to graph a function in Excel

Related Reads:

VLOOKUP vs INDEX/MATCH vs XLOOKUP

How to Use Logical Functions in Excel ?

Logical Functions in Excel (IF, IFS, AND, OR, COUNTIF, SUMIF)

What are Functions? 

Before we get to using a function, let us know what are functions.

Generally, functions are a set of calculations having a finite set of operations together with a variable to arrive at the output. In other words, they provide a relationship between the input and the output. 

Let us see an example to know more about functions. 

You all might have heard about the trigonometric functions like the Pythagoras theorem (c2=a2+b2) or quadratic equations like ax2+bx+c=0.

You all might have heard about the formula to calculate the radius of a circle. We use the formula πr2, where r is the radius of the circle and is a variable. For the different radii of the circle, the area will also be different.

In this case, the radius(r) is considered the input, and the area is the output. When it comes to plotting the points on a graph, the inputs are taken along the x-axis and the outputs are plotted along the y-axis.

How to Use Functions in Excel?

In Excel, you can use the functions to establish a relationship between the input and output easily. There are two ways to use functions in Excel. 

1. By using Functions from Excel Library

If you are going to be operating on any mainstream function, Excel has a huge library of built-in functions you can choose from. You can just select the functions, enter the values and Excel gives you the output.

  • Select a cell and enter any value. Let the input value be Angle and output value be Sine Value since we’ll be operating on a sine function. In this case, I have entered the value 0 in cell A4. You can also enter multiple values as inputs.
Select a cell and enter a value
Select a cell and enter a value
  • Now, to add a function, click on any destination cell.
  • Navigate to Formulas in the menu bar. Under Function Library, you will find a variety of categories consisting of different functions like Financial, Logical, Math&Trig, etc. Depending on your operation, choose the function from the Function Library. 
Choose the formula from the categories
Choose the formula from the categories

If you are having a hard time trying to find the location of the function, click on Insert Function from the Function Library or from any of the dropdowns from the categories.

Use the Insert function
Use the Insert function
  • This opens up a new Insert Function dialog box. You can choose the category and select the function you want. In case, if you are still unable to find the appropriate function, you can type the description and Excel shows you a list of related functions.
Choose the function
Choose the function
  • Now that you have found the function, click Okay.
  • This opens up another dialog box asking you to enter the arguments for the function. You can enter any constant value or if you want to select or add the name of the cell in the text box and click OK. In this case, I will pass the argument as A4 since this cell houses the value for the input.
Enter the argument in the dialog box
Enter the argument in the dialog box
  • This gives the Sine value for the given input. Now, you can use the drag handle to perform the function on other cells too.
Drag all the values in the output column
Drag all the values in the output column

2. By Manually Entering the Function

There are some functions that might not be available in the Excel Function Library. In such cases, you can manually create a function and get the output.

Manually entering the function in Excel is very simple. Just add an “=” before the function in the destination cell and type them. In the case of variables, select or enter the cell number to get the output.

Consider the example of a quadratic equation y=4x2+2x+5. In this case, x is the input and y is the output to be calculated. To obtain multiple values for the quadratic function, add different inputs in different cells.

Enter the inputs in one column. Let it be called x. The inputs can be positive, decimal, negative, or even zero. 

Enter the inputs
Enter the inputs

Here, the destination cell is B4. So in the place of x, now enter the function =4(A4)2+2(A4)+5 in the destination cell. Always remember to add “*” in place of multiplication when entering functions manually. Press Enter.

Enter the function in the destination cell
Enter the function in the destination cell

This gives you the output corresponding to the function and the input. You can use the drag handle to add the function to other cells and get a series of outputs.

Use the drag handle and apply the formula to other cells
Use the drag handle and apply the formula to other cells

Also Read:

How to Use AVERAGEIF in Excel? With 5 Different Criteria

IFERROR Excel-The Ultimate Guide to Catching Errors in Excel

How to Filter in Excel? A Step-by-Step Guide

How to Graph a Function in Excel?

Once you have the input and output for the required function, it is fairly easy to plot a graph. 

  • To plot a graph, select the x-axis(input) and y-axis(output) of the graph.
Select the cells
Select the cells
  • Go to the Insert menu. Under Charts, select Scatter. Though there are ways to represent your data using other graphical representations like bar charts or pie charts, scatter represents the graph by specifying each point in the function. 
Select the Scatter chart
Select the Scatter chart
  • Click on the type of scatter chart to represent the data. This plots a graph for the function with the inputs and outputs along the x-axis and y-axis respectively. 
How to Graph a Function in Excel
How to Graph a Function in Excel

How to Customize the Graph

When you click on the scatter chart, the graph usually populates in the center of the Excel sheet. You can move the graph to its desired places by clicking on the graph and dragging it. Move the pointer to the edges of the graph to resize the chart area.

You can also customize the chart by using the shortcut options which appear when you click on the chart.

Customize a graph in Excel

Customize a graph in Excel

Use the Chart Element option to add, show or hide any elements like headers, legends, and other projections.  

Using Chart Elements

Using Chart Elements

Use the Chart Styles option to change the style and color of the chart. Changing the style and color gives the chart a more suitable appearance to present the data.

Using style and color

Using style and color

When your chart contains more than one data representation, you can use the Filter option to add or remove any data based on your preferences.

Using Filter

Using Filter

For in-depth and extensive customization of the chart, you can use the Chart Design and Format options in the Main menu. 

Using the Chart Design option, you can change the layout of the chart, the color of the chart, switch axes, and move the chart between sheets.

Using Chart Design

Using Chart Design

Using the Format option, you can add any shapes, or text to add cues about the chart, align, and resize the chart.

Using Format

Using Format

Suggested Reads:

How to Add Leading Zeros in Excel? 4 Easy Methods

Excel String Compare – 5 Easy Methods

How to Hide and Unhide Columns in Excel? (3 Easy Steps)

Closing Thoughts

Plotting a function in the form of a graph gives an insight into the usage of the function easily interpret the data. 

In this article, we saw how to use a function, and graph a function in Excel. We also learned how to customize the graph in Excel.

If you need more high-quality Excel guides, please check out our free Excel resources center. Simon Sez IT has been teaching Excel for over ten years. For a low, monthly fee you can get access to 130+ IT training courses. Click here for advanced Excel courses with in-depth training modules.

Simon Calder

Chris “Simon” Calder was working as a Project Manager in IT for one of Los Angeles’ most prestigious cultural institutions, LACMA.He taught himself to use Microsoft Project from a giant textbook and hated every moment of it. Online learning was in its infancy then, but he spotted an opportunity and made an online MS Project course — the rest, as they say, is history!

Like this post? Please share to your friends:
  • Function for sum in excel
  • Full in the correct word 5 класс
  • Full forms of teacher word
  • Full form of word book
  • Full form of teacher word