Formulas insertion in excel 2013 over 2 sheets - excel-formula

I am working in excel 2013 with 6 sheets sheet 1 is a summary Sheets 2-6 are days of the week. it is an incentive program for the plant. is it possible to use a name from sheet one (summary) and have excel search pages 2-6 to find that specific name and return a dollar amount from (Colum f on Sheets 2-6)

The dollar amount is the sum from the incentives throughout the week right?
Assuming the names are listed at Column A as well, you can use multiple sumif:
=SUM(SUMIF(Sheet2!A1:A100,Sheet1!A1,Sheet2!F1:F100),
SUMIF(Sheet3!A1:A100,Sheet1!A1,Sheet3!F1:F100),
SUMIF(Sheet4!A1:A100,Sheet1!A1,Sheet4!F1:F100),
SUMIF(Sheet5!A1:A100,Sheet1!A1,Sheet5!F1:F100),
SUMIF(Sheet6!A1:A100,Sheet1!A1,Sheet6!F1:F100))

Related

Sum across multiple sheets with criteria

I am using the formula below in my 'ALL SALES' sheet to consolidate sales from multiple sheets for a corresponding month in each sheet ... So E618 in each tab would be the sales for say Mar-22 and so on for 60 months. This has been working fine as follows
SUM(Intl_Schedules_Start:Intl_Schedules_End!E618)
The sheets all had Mar-22 through Feb-26 in E617 onward so summing it was simple with the above formula..
Now my sheets are more dynamic in that E617 could have Mar-23 onwards for the other 59 months in row 617 in which case when I add the cells E617 from each sheet together I am getting the wrong result as it is adding E618 from one tab which has Mar-22 in E617 and the other tab's E617 is now Mar-23 which of course is incorrect. I have been searching a way to conduct the same calculation but incorporating one criteria of matching the month value in 'ALL SALES' month column (say Mar-22) with the month in each sheets' E617 which could be different... So to summaries.. IN ALL SALES under mar-22 I need to add all the corresponding values in each tab where the month in cell C217 match
There are examples I have found on the web which require a separate list of all the tabs that are being summed but as my sheets could be moved and new ones with different names added it makes for a very time consuming task....
I anyone able to assist me in this?
I hope the image below gives a better idea
TIA
Based on the formula you give within the comments:
=SUM(FILTERXML("<a><b>"&TEXTJOIN("</b><b>",0,Intl_Schedules_Start:Intl_Schedules_End!AR1,Intl_Schedules_Start:Intl_Schedules_End!E618)&"</b></a>","//b[preceding::*["&SHEETS(Intl_Schedules_Start:Intl_Schedules_End!E618)&"]="""&C2&"""]"))
This could be abbreviated using LET if desired.

Excel - Total cell from certain worksheets in same workbook

I know I can do this in vba but I am trying to see if there are formulas I can use so I do not have to have a macro enabled workbook.
I have a workbook that contains a monthly tab (named MONTHLY), a week tab for each week (named week 1, week2, etc) and a day tab for each day (named d_20200601, d_20200602, etc). (note there will be an unknown number of week tabs and day tabs).
I am trying to total up the days in the week tab and total up the weeks in the month tab - but since I will not know how many week and day tabs there will be, I need to include all the ones that start with "week" and "d_". I can do this in vba, but I wanted to know if anyone has coded something similar with out vba.
Also of note, since the day sheets are added daily and the latest day is at the end, the week 1 sheet will contain the total of the first 7 day sheets, week 2 will be the next 7 and so on.
As per BigBen,
You could setup your sheets like this:
This will work for Jan & Feb totals with formulas like this: =Sum(JanStart:JanEnd!A1)
However you can't use a sum to get the Yearly totals you would have to do a =Jan!A1+Feb!A1...
However if you rearrange your columns like this:
You can now get your yearly totals with: =SUM(Jan:JanStart!A1)
You can also eliminate some of the helper sheets as you Don't need End of Month sheets since you can total from JanStart:FebStart!A1, etc., to get the Month totals.
HTH

Count the number of Sick Days (Denoted by "S") for each employee

so I have created a leaver tracker for our employees in an excel file.
Background: Each sheet represents each month (ie: Jan, Feb, Mar, etc.) which includes the following information:
** Note: This file is a template I downloaded from Google.
I have created another sheet which outlines the following: Note: these are sample data.
Question: What formula can I use to count the number of Sick Days (S), Annual Leavel (H) and Half Days (HA) separately for all 12 months across all sheets with 1 formula?
If I understand well, you can do this:
Without macro
Write a first sum formula in each sheet (after the last day)
In your Dashboard, write a sum formula from the previous sheet formula
or:
Write a marco to do it

Add hours from different sheets based on date

I have an Excel file where I have a few sheets. On one I keep track of my hours I work a the office. The other sheet is used to track the hours I spend travelling.
This is sheet1.
Date Hours
27/11 8
28/11 8
29/11 7
This is sheet2.
Date Hours
27/11 0
28/11 0
29/11 4
I would like to have a column on sheet1, that adds the hours depending on the dates. For example,
Date Total Hours
27/11 8
28/11 8
29/11 11
How would I go about doing this?
Assuming that your date column starts in A2, this should work:
=SUMIF(Sheet2!$A$2:$A$4,Sheet1!A2,Sheet2!$B$2:$B$4)+Sheet1!B2
The conventional solution is not to have the travel hours on a separate sheet in the first place (or if they are needed elsewhere to obtain them from the sheet1). When together with the office hours the data is more compact (e.g. the dates only entered once), so requires less storage space, the ‘picture’ provided by sheet1 ‘at a glance’ is more comprehensive (it may not be coincidence that the one day in the example showing travel time is also the one day with below average hours work at the office) – and the formula is simple, not requiring a question on SO, is easier to maintain, faster to process etc.
I would like to have a column on sheet1, that adds the hours depending on the dates.
Assuming consistency in layout (e.g. say Date is in A1 on both sheets), then copying sheet2 ColumnB into sheet1 ColumnC, inserting Total into sheet1 D1 and entering:
=B2+C2
in sheet1 D2 and copying down would appear to meet your requirement and have the other advantages mentioned, though I suspect not quite the solution you wanted. In your last example you do not show the Hours column that you already had in sheet1 and if this is part of your objective you might, after the above, just hide ColumnsB:C.

Excel Formula to Compare and Import Certain Information between Sheets

I am working on a new spreadsheet that is an update to a spreadsheet from last year. I'm trying to fill in blank columns for this year's data by importing them from the other sheet. However, the order and information has changed from last year and I'm looking for a way to fill the columns in the correct row by comparing only the information that corresponds to the same information from last year.
I have these columns in both sheets:
2014 Rank - 2013 Rank - Address - City - Zip Code
I need to create a formula that will compare the Address, City, and Zip Codes from both sheets and then insert the 2014 and 2013 Ranks into this year's data in the corresponding rows.
The issue is that the ranking from this year has completely changed the order of the rankings from last year so the formula needs to know to search the entire sheet. Any help would be greatly appreciated!
You can create another column in each sheet, concatening the Address, City and Zip with =CONCAT(A1,CONCAT(A2,A3)) and then use =VLOOKUP() to search on this new column.
More info on VLOOKUP (Theres working examples on how to retrieve more than one column and several other stuff):
https://support.office.com/en-us/article/VLOOKUP-function-0bbc8083-26fe-4963-8ab8-93a18ad188a1

Resources