Comparing and filling in excel data - excel

I have two excel spreadsheets. The first column of each is a column of serial numbers. Basically I need to take the first sheet, match the serial numbers from the other sheet (they are out of order and some are missing) and the fill in the unique data from the fist sheet into the appropriate columns of the second sheet. Does that make sense? I'm an excel noob, but I'm trying to learn! Thanks!

You could use VLOOKUP in order to do that. In cell B2 on your second sheet, use the formula
=VLOOKUP($A2,Sheet1!A:B,2,FALSE)
From this, just add the column range as the second input between the serial number and the column you want to look up. Then repeat for each column.

This picture shows the setup in the first sheet:
All of the data is hard coded.
This picture shows the setup in the second sheet.
As #timthebomb suggests, the formula in the second column (second row) is the following Vlookup:
=VLOOKUP(A2,Sheet1!$A$2:$B$9,2,FALSE)

Related

Excel: Extract data from well beneath unique identifier

I have a spreadsheet full of data (simplified example below) that I would like to extract the number in the well underneath of "Gimme the number" and paste it into a new column on a separate sheet (i.e. if "Gimme the number" is in G6, I would like to retrieve the value for G7). I do not have access to Excel VBA and have not used macros in the past. I found some examples linked below, but, from what I understand, they would return "Gimme the number", or "Gimme" not 19, 20, and 21. I am not sure if a pivot table is appropriate, because I only want information from a single column. I will only have up to 11 values to extract at any given time, so I think a formula would do it. I am just having a hard time coming up with one that works. Any help would be greatly appreciated!
Search for a text string and return multiple adjacent values
Return multiple matches with wildcard vlookup
I am not sure I get the question well, but I try.
First add a column right of the column with "Gimme..." values. Name it e.g. "Next_value" in the first row. Put in the formula referencing previous column next row. If "Gimme..." is in the cell (for instance) E6, than your formula in the cell F6 is =E7. Copy that formula into the whole Next_value column.
Than select area of these two columns (Label, Next_value) and apply the filter from the Data toolbar. Use the small buttons with triangles at the top of the column Label to adjust the filter so only "Gimme..." rows are filtered.
Now, copy values of Next_value column where you like. If you want just the references, use Paste special function from the Home toolbar and click Paste link button.

Excel/VBA check if a whole row is present on another sheet

A quick question. I am trying to detect if a row is present on another sheet. Simply said, if article+description+quantity+serial is present on another sheet, output a "Y" otherwise, output a "N". The problem I am facing with this, is the fact that the rows on the other sheet could be anywhere, there isn't a fixed position, only the column is known.
However, both the sheet on which the Y/N calculation has to be made, as the sheet on which the row should be searched/found, are dynamically generated by the means of VBA.
Example of the tablestructure
Looking at the =COUNTIFS, I am actually wanting to have =COUNTIFS(A1;="Sheet2!A1:D100"), but the COUNTIFS functionality doesn't support the "range" lookup. I just want to search "ROW(1) in Sheet2!A1:D100"...
Does anyone know in which direction I should be looking?
You could use a Helper column which combines Number, Description & Serial.
Formula for Helper column:
=$I3&"_"&$J3&"_"&$L3
Formula for Instock column:
=IF(COUNTIF($M$3:$M$6,$E3)>0,IF(SUMIF($M$3:$M$6,$E3,$K$3:$K$6)>=$C3,"Y","N"),"N")
Instock formula checks if the value in the Helper column of Sheet1 appears in Helper column of sheet2. If appears, it is also check the sum of available parts satisfy the amount needed.
Output:

Excel VLOOKUP and getting data from another sheet

I work in office Excel online at it seems it is different than "regular" office. I have a standard case of two excel sheets that contain two matching columns both A columns (starting with 2 row, first is title of row). In first sheet I need to add second column value from second sheet where values from A match. This seems easy but, for some reason in online office this simple formula does not work:
=VLOOKUP(A2,Sheet2!$A$2:$B$4170,2,0)
this gives just N/A result although matching value in Sheet2 exists.
Column is in both sheets A, with title sku in row 1. Second sheet contains additional data in column 2 (B) which I want to put in F column of Sheet1 using this formula.
Can you tell me why this doesn't work? IS office.com different in term of formulas?
Also, when I pull down this formula this A starting number in "Sheet2!$A$THISNUMBER" gets bigger, like
=VLOOKUP(A3,Sheet2!$A$3:$B$4170,2,0)

Multiply all columns in an excel worksheet by the values in the first column

I have an excel worksheet with 1153 columns. I need the values in each column to be multiplied by those in the first column. I have inserted blank columns between each column to add the results and right now I am doing this by hand, but it is taking too long. Here is an example:
Example
EDIT- Right now I am copying the formula $A1*adjacent cell into each blank column and then simply double clicking to population the rest of the column. My hope was that there was an alternative.
Is there VBA code, a macro, or a formula that would make this process faster? Thank you.
It sounds like your looking for some form of direct addressing. For example, the relative cell address "A1" will change if you copy the address to another cell, but the address"$A$1" will always reference cell A1 regardless of where you copy it to.
However you can fix only the row or column with the address "A$1" or "$A1" so that the address will always reference the same row or column, but will update the other as it's copied. In your case you probably want to fix the column with "$A1".

In Excel, how to verify that numbers from one cell in sheet 1, are the same with numbers in several columns in sheet 2?

I don't know what formula to use to verify that the numbers in one cell in sheet one are the same with numbers found in sheet 2 arranged in columns. I tried with vlookup but that works only if I search between cell to cell, rows to rows or columns to columns. Can i use a formula/several to find what data I am missing from one cell to several rows? Thanks
UseĀ 
=(COUNTIF(E2:E100,A1)>0)+0
instead of
=VLOOKUP(A1,E2:E100,0)
where A1 houses the lookup value and E2:E100 is the first column of the lookup table of interest. Adjust the ranges to suit.
(source: http://www.mrexcel.com/forum/excel-questions/10000-how-compare-value-list-values-see-if-fir.html)
I think this could help you too: https://superuser.com/a/601421

Resources