I am trying to sum the totals of data stored in 3 sheets based on 2 variables into a summary sheet (ie. a forth sheet).
I want to match both the place name and the week number for each place on the summary sheet.
On the Summary table we have at the top the week number we want to use. A list of places in column A and the number of visits in column B.
THis formula worked.
=SUMIFS(ND!$V$3:$V$4000,ND!$F$3:$F$4000,TEST!$A$1,ND!$B$3:$B$4000,TEST!A3)
In column B of the summary sheet for each row. However it only looks up data from one sheet not all 3. I tried this but it causes an error:
=SUMIFS(AND(ND!$V$3:$V$4000,GK!$V$3:$V$4000,TW!$W$3:$W$4000),AND(ND!$F$3:$F$4000,GK!$F$3:$F$4000,TW!$F$3:$F$4000),TEST!$A$1,AND(ND!$B$3:$B$4000,GK!$B$3:$B$4000,TW!$B$3:$B$4000),TEST!A3)
How do we get it to work.
Could you just use the formula
=SUMIFS(ND!$V$3:$V$4000,ND!$F$3:$F$4000,TEST!$A$1,ND!$B$3:$B$4000,TEST!A3)
3 times like
=SUMIFS(ND!$V$3:$V$4000,ND!$F$3:$F$4000,TEST!$A$1,ND!$B$3:$B$4000,TEST!A3)+SUMIFS(GK!$V$3:$V$4000,GK!$F$3:$F$4000,TEST!$A$1,GK!$B$3:$B$4000,TEST!A3)+SUMIFS(GW!$V$3:$V$4000,GW!$F$3:$F$4000,TEST!$A$1,GW!$B$3:$B$4000,TEST!A3)
Related
I have an excel workbook with 2 sheets.
Column A of Sheet 1 and 2 are the exact same data. When I sort the first sheets data, Sheet 2 Column A is automatically sorted because it is referenced. (='Sheet1'!$A$2:$A$100).
But when I sort the above, Column B's cells in Sheet 2 don't follow the row of data. Now the data gets messed up because B2 in Sheet 2 did not move with the original A2 data that is referencing the first sheet.
Is there a way to keep the data together?
Below are images of sample data:
Sheet 1
Sheet 2
Now when I sort sheet 1 from Z-A:
Sheet 1 Sorted:
Sheet 2's sorted data (Not matching)
I want the phone number and contact name in sheet 2 to follow Alafia Village. Is there a way to make that happen?
For what it's worth, I don't agree that this is fundamentally bad design. If your two sheets were two tables in a database and you wanted to join them on 'something' so that the name was taken from the first table and the other details from the second table, that would be fine - much better than duplicating the names in the second table, which would be bad design. The only is issue is that the 'something' here is the row number and as soon as the order in sheet 1 changes, the row number doesn't work any more.
The answer would be to have a key in sheet 1 and look up the key in sheet 2. If this key were in column C (say) in both sheets, you would have an index/match in column A of sheet 2 like this:
=INDEX(Sheet1!A:A,MATCH(C2,Sheet1!C:C,0))
In practice, you might also want to look at Power Query.
need some help on my excel production report.
I want to Lookup for the daily unique ID, gram and pieces from Sheet 1 into Sheet 2.
The daily unique ID consists of up to 5 categories.
Each day, there could be up to a maximum of 3 unique ID produced with each one having different categories (some have 2 same categories with different grams and pieces. It need to be shown in a separate column in Sheet 2), grams and pieces.
I came out with an excel formula but it only works IF there is only one daily unique ID per day. If there is more than one unique ID, this formula fails as it only captures the first one.
Please see my formula below
I2:I100 is the gram in Sheet 1
E2:E100 is the "unique code-category" in Sheet 1
D11 is the unique code in Sheet 2
P11 is the type of categories
{=IFERROR(INDEX('A'!$I$2:$I$100,SMALL(IF(($D$11&"-"&$P$11)='A'!$E$2:$E$100,MATCH(ROW('A'!$E$2:$E$100),ROW('A'!$E$2:$E$100)),""),ROWS($A$1:$A1))),"")}
Is there a way I could capture everything?
Can I do it with excel formula or a VBA is required?
I have tried many different formulas but nothing came out right, please help :(
Please let me know if my explanation isn't clear. Thanks.
Sheet 1
Sheet 2 (Final Report)
So I have a question. I am looking to have excel auto-populate a cell based off of referencing the data in 2 cells that are on Sheet 1 and Sheet 2. Sheet 2 contains the dollar figure that I want to display.
On both sheets I have the same training course name and same training location. I have a spot on Sheet 1 to display the cost of the course, but would like it to auto-populate that cell with the information on sheet 2. Sheet 2 has the exact same items; Training Course Name, Training Location but also has the cost of each course listed.
I am using this to track training costs on a per job basis.
You could combine a VLOOKUP and a MATCH function to do it.
=VLOOKUP(H2,Sheet2!A2:D15,MATCH(J2,Sheet2!A1:D1))
The MATCH function returns the index of the column that matches your training facility. Then the VLOOKUP function returns the price.
Edit: Formula with parameters to look for exact matches.
=VLOOKUP(H2,Sheet2!A2:D15,MATCH(J2,Sheet2!A1:D1,0),0)
I need some help regarding an issue that I was not able to solve. I tried to figure it out but without reaching my goal. This is what I have:
In sheet 1 I have estimated active customers for a period of time, where columns are months and rows are departments/states:
Sheet 1
Then, in sheet 2, I'm forecasting sales and need excel to return values from sheet 1 depending on which month we are kicking-off for each department:
Sheet 2
Of course, the kick-off month may vary for each department and values from sheet 1 should accommodate according to the selected month on column B in sheet 2.
And within C2:I4 I have used this formula:
=IFERROR(IF(C$1>=$B2,INDEX(Sheet1!$B$2:$F$4,MATCH($A2,Sheet1!$A$2:$A$4,0),MONTH(C$1)-MONTH($B2)+1),""),"")
The formula above actually works great when departments are not repeated in sheet 1 but, what would happen if departments are repeated (as shown in sheet 1) and I have to sum values from the same department and show the result on each cell in sheet 2?
I look forward to your kind help!
Thanks!
Try using SUMIF like this:
=IFERROR(IF(C$1>=$B2,SUMIF(Sheet1!$A$2:$A$4,$A2,INDEX(Sheet1!$B$2:$F$4,0,MONTH(C$1)-MONTH($B2)+1)),""),"")
Please try this formula, designed for your Sheet2!C2 cell.
=IFERROR(SUMIF(INDEX(Rodrigo,,1),$A2,INDEX(Rodrigo,,MONTH(C$1)-MONTH($B2)+1)),"")
In order for this formula to work you should declare a named range comprising of your range Sheet1!A2:F4. My formula calls the range Rodrigo. If you choose another name please change the name in the formula accordingly.
You can exclude zero results by adding a further IF condition to the formula. I would prefer to do that via cell formatting, like 0;0;; where the third semi-colon determines that a zero will not be shown. You can also suppress display of zeros for the entire sheet in the worksheet options.
I need to use a character-based field to obtain a number from a different sheet to be used in a sum with a column from the first sheet.
I have a sheet in google spreadsheet that has the columns:
Vets, number of males, and cost.
I need to have a SUM that will multiply Vets * number of males to provide cost.
BUT the info in vets will be character-based - i.e. Jones, for vet's names - and in another sheet I have a list of vets with the next column having a cost - i.e. 36.77.
I then want to take what is in the cost column of the 2nd sheet and multiply it with the column number of males in the first sheet to give me cost in the first sheet.
Any ideas?!
This FAQ explains how to reference cells from other sheets:
Within a single spreadsheet, you can replicate data and copy it from one sheet to another by entering the sheet name and an exclamation mark before the cell being copied. Here are some examples:
=Sheet1!A1
='Sheet number two'!B4
Is this example something like what you're looking for?