Get total figure from multiple figures in Excel - 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:

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

Showing percent difference in values in 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

Excel Generating a table based on positions in another table

I have a forecast for a number of countries, and I want to simulate how different launch years for these countries will impact the total sales for each year.
Say I have these forecasts for each market (Denmark, Norway and Finland):
What I would like to achieve, is to be set the launch year in a setup table like this:
And then finally end with a table, where each country's forecast is repositioned according to the launch year I define in the previous setting. This would ultimately look like this, based on my example:
I.e. the first year of Denmark's forecast is shown in year one (based on the input from cell H2), the first year of Norway's forecast is shown in year 3 (based on the input from cell H3) and vice versa for Finland.
So with this in hand, the last table (in A8:E11) will update when I change the inputs for launch year in each country.
Do you know of a good way to do this in Excel?
As #JosephMason said. INDEX/MATCH will return your figures.
Simple version:
In cell B9 in your example:
=IF(B$8-$H2+1<=0,0,INDEX($B$2:$E$4,1,B$8-$H2+1))
Cell B10:
=IF(B$8-$H3+1<=0,0,INDEX($B$2:$E$4,2,B$8-$H3+1))
Cell B11:
=IF(B$8-$H4+1<=0,0,INDEX($B$2:$E$4,3,B$8-$H4+1))
Slightly more complex version:
So you don't need to change the row number in the INDEX function (entered in B9 and dragged across/down):
=IF(B$8-$H2+1<=0,0,INDEX($B$2:$E$4,MATCH($A9,$A$2:$A$4,0),B$8-$H2+1))
Looks it all up version:
So the order of countries in G2:G4 doesn't matter:
=IF(B$8-INDEX($H$2:$H$4,MATCH($A9,$G$2:$G$4,0))+1<=0,0,INDEX($B$2:$E$4,MATCH($A9,$A$2:$A$4,0),B$8-INDEX($H$2:$H$4,MATCH($A9,$G$2:$G$4,0))+1))
I would use an INDEX function with a MATCH function for the row referencing on the country, and another MATCH function for the year column referencing off your input.
The simplest way to do this that I can think of now is via pivot.
First you will need to redimension this table
via pivot to this by sum or max + tabular format + repeat item labels + off all grand totals + rename value from sum of 1 to 1 (add a space)
Copy and paste the pivot as value into a new range and add in additional column called "new seq", use the formula below for "new seq" column which references to the launch year table next to it.
=INDEX(G$2:G$4,MATCH(A2,F$2:F$4,0))+NUMBERVALUE(B2)-1
Next, just pivot the new range to get the final result.
Just change the launch year value in launch year table and refresh pivot to see the values change.

Guide me Regarding Compare the Value of Cell contain date and other cell contain Drop down list

Hy Every One, I need help in excel formula, I have two sheets, sheet1 for sale tracker, sheet two for goals tracker, I used Now() to enter date automatically, and its working fine, Next in goal sheet, I use =Sumif() to calcualte various category totals and refer them in cell. Its also working fine. But I want to track record according to month and category. Like I have 6 categories detail is as under,
Sales Tracker
In the First picture Column Date consist of formula "=IF(ISBLANK(B5),"-",TODAY())" and it display the name of month like "October"
While in second picture there is a drop down list of "Month" Column.
1- I want to use if statement like =if(Date=Month, Sum(Revenue Secure column Data), "-") But its not working the formula I wrote here is an example....
2- I want when I select any month from second sheet like January, February, It should calculate sum from picutre one data and only show the sum of january etc.
Please help me, this is eating my brain a huge,,,,,,:)
Thanks in advance....
In short my question is how can I use If statement to compare value of cell that contain formula and other that contain drop down list?
Or use the MONTH function to change your date to a number 1 to 12 corresponding to the month. Then have the combo return a number for the month chosen. It might be faster using integers than test
I Believe you have to compare the month and not the whole date.
You can do TEXT(NOW();"mmmm") to get the full month name of the current data (in the language of excel) and then compare it to your drop down.
If you replace the NOW() with any data it works as well.

Get total from excel records

I have a problem with csv for example, i have multiple rows with a date and a price with more of the same date and time for example
01-01-2015 10:00, 10.00
01-01-2015 11:00, 12.00
01-01-2015 12:00, 9.00
02-01-2015 11:00, 4.00
02-01-2015 13:00, 6.50
There are thousands of rows like this and what i try to accomplish with excel is to get the total from all the days so with the example data i would want the following result:
01-01-2015, 31.00
02-01-2015, 10.50
Does anyone know an ease way to accomplish this (keep in mind that the file involves thousands records)
I also hope that i used the right forum for this problem, i couldn't find a specific forum for excel or office on this website
Open a new column. assuming that your first date on is in cell A2 (If it is on A1 then insert header first. it will be important to the pivot table) and your first price is on cell B2 the on C2 enter =rounddown(A2,0) this will extract the date with no hour.
Then, insert a pivot table. select all your data and on the insert ribbon press insert pivot table. Drag all the fixed date for the row and the price drag for the value. If the values are on count, change the values from count to sum by clicking the definition field.

Resources