Basically, I could do this manually, but as the data is huge, it would take a lot of time. This is urgent, I am sure there should be any formulaic ways of doing it.
I have two worksheets in excel.
Worksheet 1.
Column-A Column-B
Device Names Total numbers
Device A 19
Device B 81
Device C 12
Device D 21
etc. etc.
Worksheet 2.
Column-A Column-B
Device Names Total numbers
Device D
Device S
Device Z
Device S
etc.
I need the formula which will look-up the Device names in Column-A/Worksheet 2 in ColumnA/Worksheet 1. If the device names in worksheet 2 and worksheet 1 match, the data in Column-B of worksheet-1 should be transferred to Column-B in worksheet-2.
You'll need a formula in the Number column on Sheet 2.
=LOOKUP(A2,Sheet1!A2:B5)
Assuming A2 is the "Device D" cell, and Sheet!A2:B5 is the range of device/number values over on Sheet 1.
Try the VLOOKUP function. I tried this with just 4 records like in your example and seemed to work. You might have to tweak the lookup range:
=VLOOKUP(A1,Sheet1!A$1:B$4,2,FALSE)
The result:
Device D 21
Device S #N/A
Device Z #N/A
Device S #N/A
Related
I have a spreadsheet with 18 columns....column 15 (o) is a list of accessories and column 5 (e) is the serial number tied to the accessory. I am trying to filter by accessory and return all of the accessories for the machine.
May be better to try and illustrate
column 15 Column 5
ACD 123456
ASR 123456
ACD 456789
AOM 456789
ER2 678901
If I filter column 15 for ACD I would like 4 rows returned the 2 for 123456 and the 2 for 456789.
This is so I can see what other accessory(ies) is/are on the machine in addition to the one I am looking for to see if it is a good fit for my need.
I'd create a new column that checks if each row shares the Serial Number with the Accessory you're looking for using COUNTIFS. Taking into account that you have accessories in the Column A and Serial Numbers in Column E, the formula would look like that for cell row 4:
COUNTIFS($E$4:$E$8,E4,$A$4:$A$8,$E$1)
In Cell E1 is where you write the accessory you're looking for.
I create Column F where the formula is applied.
See screenshot:
I have seen a few answers which were close to what I am looking for, but can't quite figure it out. I apologize as I am not a programmer, but am tasked with these types of things periodically.
I have a spreadsheet with data in multiple rows. I would like to compare column A with C and have them align, and then the data in B move with column A. (I can rearrange the columns if need be to make this work.
I have this:
Inventory ID# count Original ID# vendor item number
1234 2 1000 vendor 1 1234566
1456 1 1234 vendor 2 546564
7000 3 1456 vendor 3 af4566
2003 vendor 4 56778
7000 vendor 1 788asd
What I want it to look like is after:
Inventory ID# count Original ID# vendor item number
1000 vendor 1 1234566
1234 2 1234 vendor 2 546564
1456 1 1456 vendor 3 af4566
2003 vendor 4 56778
7000 3 7000 vendor 1 788asd
I have tried macros, and VLOOKUP, but can't figure out how to have the count move with the inventory ID # Thank you for your help.
I'll assume your data starts in Sheet1!A1
Move the Invenotry ID# and count columns to a different sheet (say, Sheet2). Then replace the value in cells A2 with the following:
=IFERROR(VLOOKUP($C2,Sheet2!$A:$B,1,FALSE),"")
and similar for cell B2:
=IFERROR(VLOOKUP($C2,Sheet2!$A:$B,2,FALSE),"")
Fill it down. The VLOOKUP will place your id's and counts in the right rows, and the IFERROR( ... ,"") part will put a blank string where there is no match, so it will look like you desired table
If your data starts from cell A1, insert 2 columns C and D like below,
Enter the below formula in cell C2 and drag it right to column D and then down throughout the range,
=IFERROR(INDEX($A:A,MATCH($E2,$A:$A,0),COLUMN(A1)),"")
You can then copy-pastespecial Column C and D to A and B and delete C and D.
Basically my problem is that I have an integer (1) in one cell in excel, and I want to show all the rows from an another worksheet, where the first column has the same integer (1).
Example of Worksheet 2
Slot Data1 Data2
1 15 124
2 20 23
1 89 523
3 20 23
Now I want to scan the Slot column for 1 and then populate the cells with the values under Data1.
I have tried to work with functions INDEX and MATCH, but the problem is it gives back only the first row where the Slot column has 1
My function is: =INDEX('Worksheet2'!DATA1:DATA1;(MATCH(1;'Worksheet2'!SLOT:SLOT)))
This function search in Worksheet 2's SLOT column for the integer 1 and gives back the value of DATA1 from the same row.
In this case we've got back 15 as result. The only problem is, this function only finds the first row with the value 1 in SLOT's column, but I want to get back all of the rows having 1 as SLOT.
How can I get 15 also 89 as result - maybe in another cell in Worksheet 1? Do I need to use VBA on this?
(I'm using Excel 2013)
You will have to transcribe this to your named ranges with worksheet scope.
=IFERROR(INDEX(DATA1, SMALL(INDEX(ROW(SLOT)+(SLOT<>1)*1E+99, , ), ROW(1:1))), "")
Fill down for the second, third, etc. matches.
I am trying to compare data from one sheet to another. Address and its ID.
Both sheets have Address and ID. ID can be repetitive.
Sheet 1 Sheet 2
Address ID Address ID
23 1 22 1
45 1 45 1
23 2 23 2
45 2 45 3
I want to check whether the data address & ID on sheet 1 appear on Sheet 2 thus making a new row with return Yes or No on sheet 1 for every column.
This can be done very quickly with an array formula.
Picture of ranges and result shows the data on the same sheet so that it is easier to see what is going on. Pretend Sheet1 is on the left and Sheet2 is on the right.
Formula in cell D3 is an array formula (enter with CTRL+SHIFT+ENTER) and then copied down to fill.
=(B3=$F$3:$F$6)*(C3=$G$3:$G$6)
This formula will simple return a 0 or 1 for no match/match. You can wrap it in an IF if you want text instead. It is simply checking that the relevant values match for both columns in both "sheets".
I need an Excel formula that will look at driver number is column A (as compared to driver roster list) and return the fastest time in column B for that particular driver. For Example, sheet A list all drivers and times in columns A & B:
A 150.00
B 175.00
C 150.50
A 156.00
C 151.00
The next sheet has all drivers listed
A John Doe
B Steve Smith
C Mike Johnson
I need the third column to look at the first sheet and wherever the driver is the same as column A on sheet two, it returns the highest value. So, for driver A, it needs to return 156.00, and for driver B, 175.00.
Use following formula to returns max speed of driver "A":
=MAX(IF(Sheet1!A:A="A",Sheet1!B:B))
and press CTRL+SHIFT+ENTER to evaluate it.
You can change hardcoded "A" to any cell reference, say A1 as in image below: