Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
So the formula needs to look at column D IN SHEET 1, go over to sheet 2, if it finds a match in column A, then paste the coordinates in column B into sheet 1 column E.IMAGE
As suggested by #Jeeped, you may use Excel Worksheet VLOOKUP() function: enter the following Formula into Cell "E2" of the first Worksheet("Sheet1"):
=VLOOKUP(D2,Sheet2!A:B,2,FALSE)
and extend it down to the last row with data in Column D. Hope this may help.
There are a couple of options on how to do it. As jeeped pointed out the VLOOKUP is a great choice for this layout. Alex's answer has the formula looking at the entire A and B column so you may want to edit that to match the rows of data you have. Another way of doing that automatically is
=vlookup(D2,offset(sheet2!$A$1,0,0,counta(sheet2!A:A),2),2,0)
Another method which could be more versatile if your data is layed out differently is:
=index(offset(sheet2!$A$1,0,1,counta(sheet2!A:A),1),match(D2,offset(sheet2!$A$1,0,0,counta(sheet2!A:A),1),0)-1)
Heck I think even the following would work in your case
=offset(sheet2!$A$1,match(D2,offset(sheet2!$A$1,0,0,counta(sheet2!A:A),1),0)-1,1,1,1)
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed last month.
Improve this question
I have several data rows in one sheet and would like to only show the rows where a product is in stock -> 'yes'.
example:
I have 10 products/rows in the first sheet from line 1 to 10 and would like to only show the 5 products/rows which are in stock in the second sheet from line 1 to 5.
Can you point me to the best function for that? Would be great to do it without VBA (:
I was trying to get results with vlookup but I did not get it to work as needed.
I could use the IF-function but would get 5 empty rows I guess.
As #Mayukh mentioned in comment, you can use FILTER() function in Sheet2 A1 cell like-
=FILTER(Sheet1!A2:A11,Sheet1!B2:B11="yes")
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I have the following table:
I'd like to fill automatically the column with '001,002...' following the previous column. Please see the image to see the pattern (We'll have many in the future, it's crazy doing it manually)
I'm attching an example file: https://1drv.ms/x/s!Akmhm4db64ebrHQF9rlhwNUa7tdS?e=kUkFlV
Thank you!
Use TEXT and IF, like the following:
=TEXT(IF(A2<>A1,1,B1+1),"000")
Tested this formula in excel and it worked for me. Paste into cell B2 for your L4 code column and just copy down. As new items are added in column A, the pattern will repeat.
=IF(A2=A1,BASE(B1+1,10,3),BASE(1,10,3))
If you need to have it automatically populate to a predetermined row, drag the formula down (for example 1,000 rows) and use the following:
=IF(A2="","",IF(A2=A1,BASE(B1+1,10,3),BASE(1,10,3)))
Just for explanation purposes, what the formula is doing is looking at the previous item in column A and checking to see if it is the same as the current item, if yes, increment by 1, else start over at 1. The BASE function is adding the leading 0's.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I have a complicated excel sheet with multiple variables to give a single output (I will name this the 'result') via multiple formula in various cells. One cell (I will name it X) can only have 60 possible entries. I would like to know what the 'result' for all 60 options while changing the variables in the other cells.
One way I have thought it could be possible is by having a table with the 60 possible entries in one column (I'll call this column A) and the 'result' in the corresponding cell in the column next to it (I'll call this column B). But I don't know how to get all the 'results', simultaneously in the other column.
I feel like it needs to be a formula like [when X = A1, B1 = 'result'] then filter this down the column.
Can anyone help?!
You can make this by two ways. By filter or pivot table. I find tutorial that can help you.
here is the filter link
https://support.office.com/en-us/article/video-filter-data-in-a-range-or-table-7fbe34f4-8382-431d-942e-41e9a88f6a96
here is the pivot table link
https://www.excel-easy.com/data-analysis/pivot-tables.html
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 years ago.
Improve this question
I want to multiply values in cells row by row and total them up in the resulting cell below, what is the formula?
the first column is ranging a1:a4, the second column ranging b1:b4.
I can write this: =((a1*b1) + (a2*b2) + (a3*b3)).
But i want nice and clean formula that uses ranges, like =( (a1:a3)*(b1:b3))
but it does not work
Figured this out quickly myself, fortunately google uses similar formulas as in excel.
Excel has this nice SUMPRODUCT(array1,array2) which multiplies row by row and sum it up.
so the answer is this: SUMPRODUCT(A1:A5,B1:B5)
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I have been attempting to figure out a formula to skip blank lines when I am referencing a list of parts for a bill of materials. The problem I've been running into is where the parts list is being held is updated based on what is selected and then transferred to the actual bill of materials there are blank spaces because some machines have more or less parts. I need to skip these and go to the next line and continue with the cells from there. So if I go from Cell if A1:A24 are filled and A25:A29 are blank and A30 has data I want to skip until it gets to A30 and continue on from there (A30:A35).
Let's pretend your data looks something like what's in column A, and the results you want are in column C:
In cell C2 and copied down is this formula:
=IF(ROW(C1)>ROWS($A$2:$A$11)-COUNTBLANK($A$2:$A$11),"",INDEX($A$2:$A$11,SMALL(INDEX(($A$2:$A$11<>"")*ROW($A$2:$A$11)-ROW($A$2)+1,),COUNTBLANK($A$2:$A$11)+ROW(C1))))
Adjust the $A$2:$A$11 to suit your data. Make sure that in the -ROW($A$2)+1 portion, the $A$2 is the first cell of your data, even it is blank (the point being that data could be there, and that it's not a header, and it's the first cell the formula should look at).
Within the loop that you use to hop from cell to cell, put your code within this if statement:
If Not IsEmpty(yourCell) Then 'yourCell needs to be replaced
'your code goes here
End If