Showing percent difference in values in excel - excel

I have a table and in Column 1 is a list of companies, and company names may appear more than once because Column 2 is a year. Column 3 is the amount a company spent in that respective year. How can I show the percent differences between each year without spilling into the next company? For instance Company, A is 2017-2020 and i want to show the % growth for that. But the next row is Company B for 2017-2020 and I don't want to calculate the % between the values for 2020 Company A and 2017 Company B.

To calculate the % between the values for different companies:
Sort the data by company.
Find the percentage of the amount. Select the cell. Click Home > Number Format > Percentage. Enter the formula in cell C2: =B2/A2.
Find the percentage of change between two amounts. Select the cell. Click Home > Number Format > Percentage. In cell B3, divide the company A's second year’s sales by the first year, and then subtract 1, or enter the formula in cell C3. =(B2/A2)-1.
Read more about calculating percentages at support.microsoft.com.
Hope it helps, Please upvote!

You can use a Pivot Table for this:
As you can see, Company A invested 1000 on 2017 and 2000 on 2018. So 2000-1000=1000 and '1000 / 2017 investment (which is 1000)= 100%'
Company A invested 3000 on 2019 and 2000 on 2018. So 3000-2000=1000 and '1000 / 2018 investment (which is 2000)= 50%'
And so on.
About Pivot Tables, check:
Create a PivotTable to analyze worksheet data
My setup in Pivot Table is:
Field Company into rows section
Field Year into Columns Section
Field 'Amount' into Values section
IMPORTANT: Field Amount must change setup. Change option show values as and choose % difference with previous year

Related

Excel SUMIF Offset

I have a spreadsheet that is used for inventory planning. It has, in columns, 5 weeks (per month) followed by a month total, then another 5 weeks, followed by another month total, and so on for 12 months. Each week column is labelled "Wk 1", "Wk 2" and so on. Each Month is labelled as "Jan", "Feb" and so on.
I have the product code at cell A2, and a lead time (in weeks) at cell C2. The lead time varies by product.
Column B is the first column with data (column A is used for labels).
On row 5 there is opening stock on hand.
On row 6 there is the sales forecast.
On row 7 there are Purchase Orders received.
On row 8 is closing stock on hand.
Row 10 is a staging area. This is my problem row. These are my planned orders.
My cell B10 formula is =SUM(B6:OFFSET(B6,0,C2-1)). My planned purchase order = planned sales for the next x weeks, so I need to exclude the month columns.
The result should be as shown in cell B11. Formula for that cell is =SUM(B6:F6)+SUM(H6:K6)+SUM(N6:R6). Note that cell L6 is excluded.
Not sure how to increase the number of columns to include in the offset as a lead time may be 26 weeks, so there could be a few "month" columns I need to exclude, and then how to exclude the monthly totals?
I'm thinking maybe using a Sumif combined with Offset, but I am scratching my head.
Your help will be much appreciated.
Image of Excel file showing structure
Havent tried anything, as am unsure what to try.
see attached photo for your answer.
The formula you seek for cell B10 is:
=SUMIFS(OFFSET(B6,0,0,1,C2+(COUNTA(B4:ZZ4)-COUNTIF(B4:ZZ4,"wk*")+COUNTIF(B3:ZZ3,"exclude"))),OFFSET(B4,0,0,1,C2+(COUNTA(B4:ZZ4)-COUNTIF(B4:ZZ4,"wk*")+COUNTIF(B3:ZZ3,"exclude"))),"=wk*")
Solution

Excel spreadsheet with historical data & add more data in future using formulas and functions

I have a spreadsheet with historical data. There are rows and columns, the first couple of columns remain the same throughout the years but as we add new data, a new column must be added.
every year has 4 columns,
domestic
international
total = domestic+ International (this includes the sum formula of two columns)
Total Workforce unit = domestic*$0.52(0.52 is the fixed value which we have to pick from another cell)
The values are for fall, summer and winter and they should be calculated like that
these four columns remain the same every year
I would like to create a drop-down filter that listed the years 2017, 2018, and so on...
if we select 2017 year, then there should be information all 4 columns for fall, summer, and winter would appear with all the formulas in place. and if we select any other year, then it will display information related to that particular.
if we select 2023, then we would be able to add the information manually and save it on the same page and so on.

Get total figure from multiple figures in Excel

I have a spread sheet with data on it that I am trying to add up to get a grand total for each week and month.
The data is displayed within a single sheet/tab on excel that has a date column and goes back to lets say 1st December. What im trying to do is add each total up to basically get a weekly and monthly figure instead of a figure for each individual day.
For example sake lets say im trying to add up the weekly total of apples picked for each person.
A1 = EMPLOYEE ID
B1 = DATE APPLES WERE PICKED
C1 = how many apples were picked on that 1 day
The hard bit is there is 100 people each day picking these so its hundreds of lines of data.
Im wanting to get a total weekly amount for each person but its hard to do as there are too many employees so I cant do it by manually working it out
Output basically looks like that
A1 20332332
B1 FROM 10/2/16 - 17/02/16
C1 312 (APPLES PICKED)
A2 888865
B2 FROM 10/2/16 - 17/02/16
C2 222 (APPLES PICKED)
You must try to do it with Pivot Table (here I use Excel 2010, but it exist in previous releases)
First select your data and go to the insert pane:
Then Ok
Finally check the date and "number of apples" fields:
See Excel pivot table range and cross reference for more.
To better meet your need, add 2 columns, one being "month", the other being "year" and calculated from DATE. You must put the "number of apple" column in the "sum" subwindow (lower left).
Here is what I get for example:

Excel - Sum values based on date

I have a cell that includes a drop down list of months for a user to select from.
What I would like to do is use whatever month is selected in the drop down to drive sums in the workbook.
For example, in one sheet I have the the drop down list of months in C4.
In another sheet I have dates and corresponding data (starting in A1 and A2):
July August September October etc... YTD Total
50 100 75 60 etc... ?
So what I'm looking to achieve here is to sum the monthly figures up to the date selected in the drop down menu by the user, i.e. if September is selected in the drop down - then the YTD total will include July, August, September (NB - financial year starts in July, not Jan).
Thanks in advance people.
Using INDIRECT you can create the range reference for the SUM from a string.
Something like this:
=SUM(INDIRECT("R2C1:R2C"&MATCH(C4,A1:E1,0),FALSE))

Calculate Amount in Microsoft Excel according to Date

I have written my expenses for 7 months. I want to know my monthly expense sum as on 5th of every month. How should I do that in excel?
Detailed: Expenses are written roughly on everyday basis. And I can calculate the sum total of all the expenses till date. Now I want to create a checkpoint or say the monthly expense.
Format:
S. No. | Date | Particulars | Amount
No need for VBA with this.
If you have XL 2007 (2010) and Analysis ToolPak available as an add-in, you can use this.
Say your columns are in A:D, with row 1 hold column headings.
Place your monthly dates down column F, starting in F2
1/5/2012
2/5/2012
3/5/2012
Then in G2, write this formula:
=SUMIFS($D$2:$D$37,$B$2:$B$37,"<="&F2,$B$2:$B$37,">"&EDATE(F2,-1))
'adjust $37 to fit your specific row number where your data ends
Then fill that down against your dates. You will have monthly sums from the 6th of the previous month to the 5th of the given month.
If you need a slight adjustment, let me know, but this should really get you started on the right path.
Lastly, if you are on different version of XL or don't have ToolPak, let me know and I can adjust the formulas to work with you.

Resources