I have 2 sheets on Google Sheets. In the first sheet I have multiple columns which are repeated, where for every 2 columns, the first one is the product name, and the second one is the quantity sold for each of the products. What I will do on this sheet is select the product that the customer bought on the dropdown, and insert the quantity bought in the next cell. I need multiple columns as some customer buy multiple product types at one time.
Then in the second sheet, I want to tabulate the quantity for each products which is predefined in the header. This is meant to be automated.
Sheet 1
Sheet 2
Below is the link to a sample file.
https://docs.google.com/spreadsheets/d/151D6-QE_ePOyPEeMfMO9GSOQrFVQ5AbsagOaQUm_2eU/edit?usp=sharing
Can anyone help me with getting the qty populated on the matrix table based on the qty input next to the dropdown list? The closest that I got is using below formula, but the quantity is always based on the first dropdown qty only.
=IF(SUMPRODUCT(--(C$2 = {product!$C4,product!$E4,product!$G4,product!$I4,product!$K4})) > 0, -1*product!$D4,"")
I guess a good starting point would be how to get the address from Sheet1 that have the value corresponding to the table header in Sheet2.
Heres how I would do it
I'd use an index with match the "Ref ID" Row and the "product" Column (offset by +1 for the value)
Then to make the results dynamic to the "Ref ID" I put an indirect range reference matching the "Ref ID". I then wrapped it in an IFERROR then 0 if it doesnt have a product within a Ref ID.
Hope this makes sense, I'm sure the example below will make more sense than me :)
Code to go in C4
=IFERROR(-index(Sheet1!$1:$607,match($A4,Sheet1!$A:$A,0),match(C$3,indirect("Sheet1!$"&match($A4,Sheet1!$A:$A,0)&":$"&match($A4,Sheet1!$A:$A,0)),0)+1),0)
Example on Sheet 2:
https://docs.google.com/spreadsheets/d/1eeonWF8gcvQdDrTlydmHiMzr9MZpRDAkX_fZBX95yaI/edit?usp=sharing
Related
I have a dataset on an Excel table in which each line has an Id and several other columns.
in some others sheets I need to select some columns depending on the given id.
I am using Excel 2016, so I've tried the "dget" function but it seems not to be the best solution.
For the dataset it's close to this:
id Name birth date gendre
1 Sara 10/05/1997 F
2 Edward 01/08/1994 M
3 Anna 06/10/1993 F
and for getting data I use
=DGET(Table1[#All];Table2[[#Headers];[Name]];A1:A2)
in each column (A1:A2 here is for id and 2)
id Name salary
2 Edward 5000
and then I add some new columns that I don't want them to be in the first dataset.
This solution works only for the first row since it requires a the Criteria (last field in DGET function) to be a range, the official definition:
Criteria Required. The range of cells that contains the conditions that you specify. You can use any range for the criteria argument, as long as it includes at least one column label and at least one cell below the column label in which you specify a condition for the column.
Starting from the second row the Criteria is not a range anymore it is like "A1;A3" (for the 1st row "A1:A2")
Is there any other solution or alternative to do so?
Select a cell in the Table, click Insert>PivotTable, then drag the ID, Name, BirthDate, and Gender fields into the ROWS area. Then add a Slicer on ID, Name, and Salary by clicking in the PivotTable and selecting Insert Slicer. Then choose the ID/Name/Salary values you want. To make multiple selections, hold down Ctrl or click the MultiSelect button of the Slicer.
I have a PRODUCT sheet with 500 products listed. In the same workbook, I have a DOCKET sheet - a copy of which is sent with each persons order. I'd like to be able to "Enable" any number of rows on the PRODUCT sheet, and have them appear on the DOCKET.
Product Sheet
With the formula I'm currently using, I have to sort the PRODUCT list so that any of the lines I've "Enabled" are in the first few rows and it is tedious - =IF(PRODUCTS!$A3="Enable",PRODUCTS!$C3,"")
I'd like to be able to "Enable" a row anywhere in the PRODUCT list and have the value in Column C appear on the DOCKET.
I think I need to slot 'INDEX' in there somewhere but can't for the life of me work it out. Anyone know what formula I should use?
If the number of products is not very high you can use something like this (enter into A2 of DOCKET sheet)
=IFERROR(INDEX(PRODUCT!C:C,AGGREGATE(15,6,ROW(PRODUCT!A:A)/(PRODUCT!A:A="Enable"),ROW(A1))),"")
The main part is this
AGGREGATE(15,6,ROW(PRODUCT!A:A)/(PRODUCT!A:A="Enable"),ROW(A1))
which finds n-th lowest row number that has "Enable" in column A of Product sheet, where n is to tied to row number so it starts at 1 and increments by 1 each row.
To make things easier I will explain what my document contains: I have 3 sheets in excel. The first and second contain Product Numbers and product Labels. The third sheet combines both sheets' product numbers, I want to compare both sheets product numbers and find the corresponding product label.
Which function would I use to do this? I would want the formula to search column 2 for any matching product numbers from column 1 and fetch the product label which matches. If not, I would want it to search column 3 and fetch the right product label from that sheet.
Sheet called "FORM" which needs labels from other 2 which match part number
Sheet called "B2B"
Sheet called "B2C"
[
In E2 of Form sheet paste
=IFERROR(IFERROR(VLOOKUP(A2,B2B!A:E,5,FALSE),VLOOKUP(A2,B2C!A:E,5,FALSE)),"Not found")
Then drag this formula down for however many rows you are trying to retrieve partnames for.
I have two separate sheets inside one spreadsheet; One is an 'Equipment Supplied' (ES) sheet, the other is a 'Inventory In Stock' (IIS) sheet.
If the name of an item in the Item column in the ES sheet matches the name of an item in the item column in the IIS sheet, I want to subtract the quantity (QTY) of that item in the IIS sheet based on the QTY of that item that was given out in the ES sheet.
Example: I have 10 x 5m Ethernet cables in stock. I give User A 4 x 5m Ethernet cables, I want the Stock sheet to dynamically update the QTY of the 5m Ethernet cables cell in the IIS sheet to now show that there is only 6 left without having to manually update the cell myself. Is this possible?
I am using Google Sheets for this but I would also like help for Excel.
If the names of the product are exactly the same then your inventory in stock sheet can headers can look like Name , initial QTY, current QTY. and each row needs to be unique in that table.
For the first line inset in c2 the formula:
=b2-sumif(ES!a:a,a2,ES!b:b)
You can drag the formula to the end of rows.
I have two sheets. Sheet1 has a list of products and Sheet2 has a list of products and their location. Since the product can be in multiple locations, there are a good amount of duplicates in Sheet2.
There are 26,000 products. I have assigned each product a number in Sheet1, 1-26,000. Is there a way for me to assign each number to the correct product in Sheet2?
This is a example of what I need:
The top table would be Sheet1 and the bottom table would be Sheet2, the one with duplicates.
This is what they look like right now:
Sheet1:
Sheet2:
Please let me know if I did not explain this well enough. I appreciate your help!
copy your column A in sheet 1 to column c
Then in your sheet 2 column C row 2, use =vlookup(B2,'sheet1'!B:C,2,0)
(if your first item is in B2)
Drag your formula down and it should work.
Use VLOOKUP or the INDEX MATCH combo formulas in the second sheet to locate the ITEM IDs in the first worksheet
If you're Item ID's are sorted the way you illustrate it, then you can simply use an IF formula:
For example you have a data as shown:
Enter this formula in A2:
=IF(B2=B1,IF(ISNUMBER(A1),A1,1),IF(ISNUMBER(A1),A1+1,1))
Above formula will give you what you've described.
Again, your items should be sorted so that same Item ID are in order.