I am desperately trying to find a formula that solves my problem.
Sheet1 structure:
name date weight
John 31.07.2020 80
Jack 01.08.2020 75
...
Sheet2 structure:
date John Jack ....
31.07.2020
01.08.2020
What I need to do is, for every date and name combination in Sheet2, I need to copy the weight information from Sheet1 into name's column of Sheet 2.
Example outcome:
date John Jack ....
31.07.2020 80
01.08.2020 75
I have used a couple of formulas but I could not make it work.
Can you help me with this?
Thank you
First, turn your data entry table into an Excel Table object by using Ctrl-T or Insert > Table.
Then, with one cell of that table selected, use Insert > Pivot Table.
Drag the Date into the Rows area, drag the Name into the Columns area and the Weight into the Values area. Format the pivot table to have no grand totals (Design Ribbon visible when a cell in the pivot table is selected).
When you add new data to the data entry table, the Table object will expand automatically and you can simply refresh the pivot table to include the new data.
It's really quite simple with SUMIFS.
If Sheet 1 looks like this:
...then you use this formula:
=SUMIFS(Sheet1!$C$2:$C$3,Sheet1!$A$2:$A$3,Sheet2!B$1,Sheet1!$B$2:$B$3,Sheet2!$A2)
=SUMIFS(Sheet1!R2C3:R3C3,Sheet1!R2C1:R3C1,Sheet2!R1C,Sheet1!R2C2:R3C2,Sheet2!RC1)
=SUMIFS(Table1[weight],Table1[name],Sheet2!B$1,Table1[date],[#date])
=SUMIFS(Table1[weight],Table1[name],Sheet2!R1C,Table1[date],[#date])
I get this:
Related
I have sheet Result and want to get data from sheet Source.
Pls help to show me how can I get data as image following.
Tks you so much !
First option:
Un-merge the cell in source sheet and instead of "Detail", type meaningful column names to B1 to F1.
Then select your data and create a pivot table (pls do some google if you need to).
Play with pivot table until you reach the view you want (it is possible to get the same view as the result sheet you shared.)
Second option as you requested:
Insert a new column after column A in your source (between abs and roma).
Type this formula in this new column: =A2&H2.
Then type this formula in Result sheet B2: =Vlookup($A2&"2";Source!$B$2:$G$13;3;false)
Copy this to other cells. Do not forget to update parameters for other cells.
I am currently working with the following excel workbook:
Workbook 1
I wanted a feature where I can find the total number of doors that need fixing, but based on Brand and Model of the cars. For example in the workbook, there are 5 Honda Vios (Blue) that needs to fix 1 door, then 2 Honda Vios (Red) that needs to fix 2 doors. Therefore, is there any formulation (sumifs / countifs) that I can use so that I can easily find the total number of doors that need fixing?
In cell G2 add this formula:
=COUNTIF(E2:F2;"YES")*D2
And drag it down.
This will count the number of doors on this row.
Then create a new table with the unique items and add the following formula which will sum all blue Honda Vios doors.
=SUMPRODUCT((A:A=M2)*(B:B=N2)*(C:C=O2)*G:G)
If "ES" is included:
=(IF(ISNUMBER(FIND("ES",E2)),1,0)+IF(ISNUMBER(FIND("ES",F2)),1,0))*D2
Regarding pivot table.
First make the table a official table by clickin on a cell in the table and go to insert -> table
Then again, click inside the table and go to insert -> Pivot table.
(To make it easier I added the pivot table on the same sheet)
Now set up the pivot as following:
When you add new items to your table, the pivot table must be refreshed.
Click on pivot table and go to Analyse -> refresh
i have a spreadsheet in excel 2016 that uses the following formulae
=IFERROR(INDEX(Attending!$A$2:$A$20,AGGREGATE(15,6,(ROW($A$2:$A$20)-ROW($A$2)+1)/(Attending!$B$2:$B$20="Yes"),ROW(1:1))),"")
This formula takes names in column A of the attending sheet and if column be against those names is set to "Yes" they show in the menu choices sheet.
but it only adds entries into column A of menu choices sheet
so then in the destination sheet entries against these peoples name in columns B, C and D get out of wack of someone else gets added above them.
how do I link a given persons B, C and D data to them so they stay in alignment when new entries are added in above them.?
Also when menu choices B1 has a value greater than empty I want attending sheets C1 to be set to a value of "Yes".
how do I do these things?
From the sample worksheet you provided, I can see that you have switched the columns as suggested. After checking the workbook, I think you should also add the Deposit column on the Menu Sheet and manually update the column on that sheet.
So presume you have filled out the Menu table as below:
Enter the following formula in Cell B2 in your Attending table, and drag it across to Column D and drag it down to the end of the table.
=IFERROR(IF(VLOOKUP($A2,Table2,COLUMN()+1,0)>0,"Yes","No"),"")
And enter the following formula in Cell G2 in the Attending table, and drag it down to the end of the table.
=IFERROR(VLOOKUP(A2,Table2,6,0),"")
Please note Table2 in the above formulas are the name for the table on your Menu sheet. Please replace it with the actual table name if needed.
Once done, you should have the following on Attending sheet:
Let's say later on you need to update the Menu table for AMC as below:
Your Attending table should be updated automatically as below:
---------------- EDIT #2 ----------------
As requested, I have changed Column F on the Menu Table to Amount Paid instead of Deposit, which allows the user to input the actual dollar value paid instead of the word Paid/Unpaid.
Then replace the formula in Cell G2 and H2 on the Attending Table as below, and drag them down to the last row of the table.
=IFERROR(VLOOKUP(A2,Table2,6,0),"")
=IF([#[Price:]]="","",F2-G2)
Then you should have the Amount Paid and Balance to Pay showing correctly on the Attending Table. It may not be necessary to maintain a separate column showing whether a fixed deposit is paid or not as long as it is not mandatory to pay a fixed amount up front.
Conclusion, it is A good practice to keep all manually updated data in one place, and keep all formula-driven data in another. Do not mix them up so you will not encounter the problem of hard-coded data entry does not match with formula-driven result.
In Excel 2010, I have a pivot table, in compact form, with 3 Row Labels (that represent a management hierarchy). Which of the 3 management levels is displayed in a particular row will change from day to day. (The source data is on another spreadsheet with the fields Manager L3, Manager L2 and Manager L1 in columns with John Smith, Gary Glen and Bob Stevens under them, respectively.)
In the column next to the pivot table, I need to capture which row label is being shown.
Pivot Table example
Is there a formula I can use to produce that info?
Let me know if you need more information. Thank you in advance.
Like I said above, I believe your solution would be to create an array on another (hidden) sheet like:
Then run a VLOOKUP to it: =VLOOKUP(A45,Sheet1!$A$1:$B$6,2,FALSE)
You'd put that formula in cell B45 on your sheet and drag down.
I have a spreadsheet that lists pieces of equipment with columns for the type of equipment and their city location etc. Each region (made up of multiple cities) has a sheet for all of their equipment.
I am trying to set up a sheet that summarizes which equipment is located in which city.
I have been trying to set up a formula that will look at Sheet2 and the column for location and the column for the equipment type and if the city matches say Adelaide and also matches Bench Shears then mark with an X.
I have tried using a =IF(ISNA(VLOOKUP formula but I can only get it to work with one variable and not 2.
Any help or suggestions would be greatly appreciated!!
Each region (made up of multiple cities) has a sheet for all of their equipment.
That does not sound like good data architecture. As the golden rule, all your data input should be in ONE sheet. Then you can build reports on that data on other sheets.
With the info you provide above, it looks like a better data structure might be a sheet with a table. The table would have columns for Region, City, Equipment Type.
This is a flat, two-dimensional table. Each piece of equipment goes into its own row. No blank rows, no blank columns. Use Excel's Table feature to make this a table with Ctrl-T.
Now you can create a pivot table. Click a cell in the data table and then Insert ribbon > Pivot table. Drag Region into the Rows area, drag City into the rows area, drag Equipment Type into the rows area and again into the Values area.
This is a simplified example. If you need more help to get this to work, please edit your question and post a sample file.
Are you trying to make a table of the listed values in sheet2, such that cities will be listed in a column and equipment listed in a row, with an x appearing in a cell where the city and equipmnt exist? If so then add a third column to your data in sheet 2:
=A1&B1
for all values in the list, then lookup the two values in each cell in you tabulated data in sheet 1:
=IF(ISNA(VLOOKUP($A2&B$1...
and use this in all the cells in the table. The dollar signs mean that the column $A and row $1 will not change when you copy the formula across the table.
You need to get all of the data from each region in a single list...