Excel Assignment
Excel Assignment
Ans – I have explained this formula from point to point, which you have seen given below
(1) COUNTIF: This is an Excel function that counts the number of cells within a range that meet
the given condition.
(2) In Excel, the dollar sign $ is used for absolute cell references.
(3) When the $ is before both the column letter and the row number (like $C$4:$D$21), both
the column and row references are fixed.
(4) $C$4:$D$21: This is the range of cells that the formula will look at. The dollar signs $ in front
of the column letters and row numbers make this an absolute reference, which means no
matter where you copy this formula, it will always refer to the cells from C4 to D21.
(5) F5: This is the criteria that the COUNTIF function will use to count cells. The function will
count the number of cells in the range $C$4:$D$21 that are equal to the value in cell F5.
Ans – Sure, here are the steps to separate the data using the Text to Columns feature in Excel:
1. Select the Data: Click and drag to select the cells that contain the data you want to
split12.
2. Open Text to Columns: Go to the Data tab on the Ribbon, and click on "Text to
Columns"12.
3. Choose Delimited: In the Convert Text to Columns Wizard that appears, choose
“Delimited” and click Next12.
4. Select Delimiters: Choose the delimiters for your data. For example, if your data is
separated by spaces, check the box for “Space”. You can see a preview of your data in
the Data preview window12.
5. Choose Destination: Select the destination in your worksheet where you want the
split data to appear. Make sure you have multiple empty columns on the right side of
your original data. Splitting text will overwrite any data to the right of the source data
Q – 3 - How to use the VLOOKUP function with auto-update (data validation for names)
on the following data?"
Q - 4"How to use the SUMIF function with auto-update (data validation for names)
on the following data?"
Ans - The formula =SUMIF($E$5:$E$19,J4,$F$5:$F$19) is used to calculate the
total sales for a given city from the table in E5:F19.
The SUMIF function takes three arguments: range, criteria, and sum_range.
The range is $E$5:$E$19, which is the range of cells that contains the city names. The
dollar signs make the references absolute, so they will not change when you copy the
formula to other cells.
The criteria is J4, which is the cell where you enter the name of the city you want to
find the total sales for.
The sum_range is $F$5:$F$19, which is the range of cells that contains the sales
figures. The dollar signs make the references absolute, so they will not change when
you copy the formula to other cells.
The SUMIF function sums all the sales figures ($F$5:$F$19) where the
corresponding city name ($E$5:$E$19) matches the criteria in cell J4.
For example, if J4 is “Nagpur”, the SUMIF function will return 2958, which is the
sum of 986, 986, and 986.
To apply data validation with a dropdown list of cities for the criteria cell, using
below this formula because city names are repeating
let’s break down the formula =OFFSET('Questions 4'!
$E$5,0,0,COUNTA(UNIQUE('Questions 4'!$E$5:$E$19)),1):
1. OFFSET: The OFFSET function in Excel returns a reference to a range that is offset
from a given cell or range by a specified number of rows and columns1.
2. ‘Questions 4’!$E$5: This is the starting point of the range. The dollar signs in the cell
references mean that they are absolute references, so if you copy the formula to
another cell, these references will not change1.
3. 0,0: These two zeros indicate that we’re not offsetting any rows or columns from the
starting point1.
4. COUNTA(UNIQUE(‘Questions 4’!$E$5:$E$19)): This counts the number of
unique values in the range ‘Questions 4’!$E$5:$E$19, and this count determines the
number of rows in the dynamic range. Please note that the UNIQUE function is
available in Excel 365 and Excel 2019. If you’re using an older version of Excel, you
might need to use a different approach to count the unique values.
5. 1: This indicates that the dynamic range should be 1 column wide
6. And this formula apply in name manger to create Reference Range to create data
validation list