To remove a field simply uncheck the field in PivotTable Fields OR drag it from the Areas to anywhere outside
Now you would be able to see the Tax payable as below both in the Table and Chart
I believe that everything has a story. And that story can be told in many ways. This story is about ways in which spreadsheets can make life@work less cumbersome and more exciting. Be it a macro or a simple formula. Nevertheless, it's always fun to learn! I write on AI @ https://medium.com/@soniknitr
In this post, we review some basic spreadsheet arithmetic along with some flavour of in-cell graphics. Let’s take the quarterly sales data of your prime salespeople namely Alex, Bruce, Candy & Dorothy and look at how we would like to incentivize them to keep it rolling.
You might create the below table in your worksheet.
If they are the only sales people in your company, you might need to look at overall sales of your company for a quarter.
(1) So building on the above table we would like to get some basic arithmetic in place.
Syntax = SUM(Start Cell:End Cell)
You can replace SUM with COUNT, AVERAGE, MAX or MIN to get the required result.
COUNTA calculates the number of non-empty cells.
(2) Now if you want to find out what was the 2nd highest or 3rd lowest sale of that particular quarter, MAX or MIN would not work. The functions to use would be SMALL or LARGE.
Syntax = SMALL(Start Cell:End Cell, Index number) Replace SMALL with LARGE
Since we have only 4 salespersons the 2nd maximum and the 3rd minimum will be the same.
Let’s have a look.
Now if I wish to have the formula replicated over the entire table, I would just drag the handle, seen as a black square at the bottom right corner when I select cells B6 : B12. If the handle is not visible you may either copy paste the entire range till F12 else go to Excel Options from either Office Logo (Top-left corner – 2010) or File (2013) and select the Enable fill handle from Advanced.
(3) We can have some visual add-in to check the trend in a single cell. These are called sparklines and they come in Insert Tab (Office 2010 onwards).
It will ask for a range for which we would select Alex’s sales data from Q1 to Q4. And the output would be cell H2, which would come automatically if your cursor is present there before insert action.
Alternatively you can also insert a line graph in another cell. You can highlight the high and low points and select custom marker colours for high and low in the DESIGN tab.
(4) For incentive calculation, let us have a rule that the minimum sales per quarter should be more than 1300 to get any incentive.
And incentive can be 10% of total sales if the condition is met.
So, how do we formulate the incentive with functions we already know ?
Here is an example with the IF condition:
(5) Now you wish to award an additional bonus of 1000, if the sales per quarter has exceeded 1300 and total annual sales is more than 6500 for your salesperson.
That’s it for today. Have a good night.
You would have come across data with dates and sometimes you would have needed to get a corresponding date or day after a certain period of time. For example, a confirmation date after 6 months or a date post payment terms of 90 days or post an ageing schedule for 6 months.
Please refer this post for Date basics
We shall take up this exercise in a common template which is given below. It will take just a few seconds to type in.
Case 1) Employee 007 has joined your organization on 01-May-2013. We need to find his date of confirmation after a period of six months {in the cell D2}
An easier but more approximate method would be directly add the number of days in D2.
6 months ~ 180 days
Syntax = D2 = C2 + 180
However, it’s an approximation as each of the months succeeding May-2013 would not have exactly 30 days.
*If the cell is not in a format that displays a date, you can right-click on the cell and format cell as date.
(Refer this post in case of any doubts)
Case 2) 2a) Alternatively, we can use a formula called EDATE, which would correctly add up the six following months after 01-May-2013
Syntax = EDATE(Start Date or Input Date, Number of Months)
Use of EDATE with inputs as previous cell and 6 months gives the desired result.
So, Mr. Bond should have been confirmed on 01-Nov-2013, we may need to check out if it’s a working day or not. You would not like to give a confirmation letter to Mr. Bond on a Sunday, right?
2b) Let’s find out the day of the week for that purpose.
Syntax = WEEKDAY(Input Date or D2, Return type usually as 1)
2c) DATEDIFFERENCE This case refers to a situation in which need to find the time for which James Bond has served your organization.
There is a MS-undocumented function which historically is borrowed by Microsoft from a company called, well it’s Lotus (now owned by IBM). So, it will never show the arguments for an input although a small popup surfaces, when you type DATEDIF(
Syntax = DATEDIF(Start Date, End Date, Unit of Formatting)
Units of Formatting
DF.Syntax Y – Number of compete Years
DF.Syntax M – Number of compete Months
DF.Syntax D – Number of Days
DF.Syntax YM – Number of complete Months after subtracting the completed years. (< 12) (Days not summing to 1 month are ignored)
DF.Syntax MD – Number of Days after subtracting the completed months & years
DF.Syntax YD – Number of Days after subtracting the completed years (months included)
If you take the start date of our James Bond, and dynamic function - TODAY() as the end date taking the M argument gives the following result.
Exercise
Now applying the same principles can you get an output of Total Experience like the one in the bottom-right cell ? (You may do a search on text operators)
Have a nice weekend folks!