I am trying to sum of workers and sales. I have 2 workbooks right now. Workbook A has a "Names" column and a "Sales" while Workbook B has a "Names" column and a "Profit" column. The "Names" columns are not in the same order between the two workbooks. I am looking to find the sum of profits in Workbook B, of all the workers in Workbook A that has more than 10 sales. So something like =SUMIFS('[WorkbookB.xlsx]Sheet1'!$B:$B, '[WorkbookA.xlsx]Sheet1'!$B:$B > 10, '[WorkbookA.xlsx]Sheet1'!$A:$A = '[WorkbookB.xlsx]Sheet1'!$A:$A).
I've seen a few posts about sumproducts and indirects but I'm not sure how that works so I apologize if this is an easy solution that I should have found.
I also know I can do a simple Vlookup to match the profits from Workbook B onto Workbook A and then do a sum from there but in this scenario, I can't display profits and names and sales all together.
Related
I have two spreadsheets and I want to sum up the total and then vlookup but when I do it I get 0 as a result.
Basically I have all 12 weeks, so I want to sum up all the numbers for "week 1" then vlookup the total to the other spreadsheet. the spreadsheet I want to sup up, so 7x10 = 70
the overview spreadsheet I want to get the "70" from week 1
You don't need a Vlookup, because you have many values for week 1, and no identifier for the week 1 total. Instead, on the summary sheet, you can use a Sumif() or Sumifs() function. Something along the lines of this:
=Sumifs(Sheet1!C:C,Sheet1!A:A,Sheet2!A3)
In words: Sum up all the values from Sheet1 in column C where column A in Sheet1 has the same value as cell A3 on Sheet2.
You need to adjust the sheet names and cell references to reflect your workbook.
With that approach, you do not need to enter weekly totals into your first sheet at all. It's not good practice to interrupt a table of data entry cells with formulas. It's better to do the reporting and analysis outside of the data entry table.
I have two sheets in my spreadsheet and I'm looking for some VBA code (or a simple formula) to batch copy values from one sheet into the other.
Sheet1, has a list of cities, markets and products in three columns (A-C). Close to 19,000 rows in total.
Sheet2, has a list of products, product sub-category, and product origin (columns A-C), Close to 300 rows in total.
I would like to copy product sub-category and product origin (i.e. columns B and C in Sheet2) into Sheet1 where Product in Column C of Sheet1 = Product in Column A of Sheet2. Noting that I would like to keep the order that the rows are in Sheet2 when copying to Sheet1.
I tried the following INDEX/MATCH approach, but it stops working after the 18th row (I have close to 19,000 rows in Sheet1), and it only works for one column at a time.
=IFERROR(INDEX('Sheet2'!$B$2:$B$284, SMALL(IF($D2='Sheet2'!$B$2:$B$284, ROW('Sheet2'!$B$2:$B$284)-1,""), ROW()-1)),"")
Example output using the sample data:
if it is just copying static data repeatedly then perhaps something like this. If not, then i misunderstood your question.
this is the formula in cell B2:
=INDEX(Copy.Table,IF(MOD(ROW()-ROW($B$1),Table.Count)=0,$E$2,MOD(ROW()-ROW($B$1),Table.Count)))
I have a workbook that has a separate sheet that is assigned to each classroom teacher. In the column A of each sheet I have the student's names from their rosters listed, in column B I have it set up for them to place an "x" for each incomplete assignment for these particular students. Under my Roster sheet I want the workbook to search through each of the 30+ teacher sheets and find the names of each student and calculate the number of "x's" by their name throughout the sheets and report that info in my "Roster" sheet. Essentially counting how many incomplete assignments each student has throughout. This is the formula that I have on my Roster sheet: =SUMPRODUCT(COUNTIFS(INDIRECT("'"&Sheetss&"'!A:A"),A2,INDIRECT("'"&Sheetss&"'!B:B"),"x"))
"Sheetss" is the range that I have defined for all of my teacher sheets.
My issue with this is that inside my first teacher sheet I can type a student's name (StudentB) in column A and an x in column B, it will return a 1 for StudentB on my Roster sheet, however, when typing StudentB on any other sheet and an x in column B on any other sheet it will not count that data and show a 2, 3, etc.
I feel as though the formula is not searching all of my sheets for data any help would be great. Thanks!!
I am trying to do the following.
I have 10 sheets labeled Teacher1 through Teacher 10 and an 11th sheet named StudentRoster.
In the StudentRoster sheet I have a list of 100 students names. StudentA, StudentB, StudentC, etc..
In each of the sheets Teacher1, Teacher2, Teacher3, etc. I have about 20 cells in column A that use some of the names listed within StudentRoster (these would be class rosters)
In each of the Teacher1, Teacher2, etc sheets column A will have the student names and column B will be a column in which I will manually insert an "X" to indicate completion of an assignment. Within the StudentRoster sheet I would like to have excel search through Teacher1, Teacher2, Teacher3, ... Teacher10 and count how many "X"s exist for StudentA. Student A may or many not be in all Teacher sheets
Can someone provide me with a way of doing this, I have been trying to use the COUNTIFS formula but I am struggling having it look for StudentA and then to begin counting only the "X"s for StudentA.
List your worksheets on the 11th sheet and name the range sheets then you can use this formula:
=SUMPRODUCT(COUNTIFS(INDIRECT("'"&Sheets&"'!A:A"),A1,INDIRECT("'"&Sheets&"'!B:B"),"X"))
Easiest would be to add a column to each teacher sheet to the left of the studentname. In that column you put in =COUNTIF(range;"X"). Fill in relevant range e.g. C1:K1.
In the student roster list you could use add a top row with the teacher names and sum. With sumif(range of student names in Teacher 1 sheet; select cell with student name in roster; range in teacher 1 sheet with countif outcomes)
Then sum over all sumif statements by student for the total.
There would be other methods, but this one is least complicated and straightforward I think.
So I have this huge report and I'm looking to analyze it better. I have Data in one work book (1)and I'm creating a separate workbook (2) to reflect certain criteria.
Workbook 1-I have Data in Col A, Col B, Col C.
Column A has abbreviated businesses (ex. Abc, Def, Ghi)
Column B has Dates for everyday of last year and this year (ex.1/3/2017)
Column C has Y or N values.
Workbook 2- In work book 2, I need data from the previous month, of a particular business (Abc) with just values equal to Y
You should make a pivot table that contains the data you want, and then double click the cell containing the data meeting your criteria and it will pull up the source data for only those criteria. That's a pretty simple way to do it.
i.e. Make a pivot table in Workbook 1 with a month filter, a business filter, and a values equal to Y filter.
EDIT:
I took a stab at it without getting your specifics. Images including formula are attached.
Sheet1 contains the data. Sheet2 calculates the sum for the month for each business.
These are array formulas and require you use ctr+shift+enter to confirm the cell. Then you can drag down for month and business as needed.
{=SUM(IF(Sheet1!$A$2:$A$43=A2,IF(Sheet1!$B$2:$B$43>=D2,IF(Sheet1!$B$2:$B$43<=E2,Sheet1!$C$2:$C$43))))}
NOTE: My sheet1 only went down to row 43, hence the $43 in the equation. You'll need to replace those values with your values.
This also assumes that you are using dates down to the day. If you have a column that is for Months, and it's text, then you can nest an IF($B$2:$B$43="January", .... or however you have your months defined.