Unable to copy data of intersecting row and column to another sheet - excel

I am trying to copy data from one sheet to another using index and match as i want specific data of intersecting rows and column.
i have attached the sheet where sheet 1 is source sheet and sheet 2 is destination. i want in cell value(C7) of sheet 1 and Cell value(B2) of sheet 2 same.I am using index match function but its returning department value.
=INDEX(Sheet1!A3:H15,MATCH(Sheet1!A7,Sheet1!A3:A15,0),MATCH(Sheet1!C3,Sheet1!C3:H3,0))
https://docs.google.com/spreadsheets/d/1YuIbG1tDQ9tp1k5OrZ8slP1PUCjG4vsRsAVLZbt8Wyw/edit?usp=sharing

Your second match range is less than the table width. Change C3:H3 to A3:H3 and you may get the result you want.
I find it helpful when doing multiple MATCH functions to break them out into a scratch area on the spread sheet and examine them separately. Then combine the correct formulae into the single cell formula.

Related

Using Excel to serach for all values in a column, or range, and then copying that row to another sheet

Does anyone know how to search for data that is in one sheet against data in another sheet in Excel? The data is in a column on each of the 2 sheets. Both are Serial Numbers located in Column D Row 2 and down.
A combination of INDEX and MATCH sounds just like what you’re after.
=INDEX(D2:D12, MATCH(“ValueToFind”, E2:E12,0),2)
Where D2:D12 are the range where you’d like to retrieve values from, and E2:E12 are the range where “ValueToFind” are located. Replace with a range to make it dynamic.

Count text matches in an Excel worksheet where two other cells on the same row match a value

I have a table of data in Excel with the name of the player in position 1, position 2, the map played on and the winner.
I am creating a table which counts how many wins were by the player in position 1 and position 2 for each map. That means looking at a column of data for a matching map name, then where it matches seeing if the position 1 cell matches the winner cell, and if so increasing the win count by 1, with a separate cell doing the same thing for position 2. It should look at the full range of data, and output the result into a cell on another worksheet.
The problem is while I know how to check for text matches in a range, I don't know how to check for the match and then perform another check on the same row for a whole range of data. Do I need an intermediary worksheet to achieve this, or is it possible to write a single cell formula which does it?
You haven't provided your data so I created basic example that accomplishes what you want. This is all shown on one sheet just for simplicity of the answer but you can easily modify this to change the formula to a different sheet.
See below example, top table is sample data and bottom table is the "Summary" table you desire.
The formula in cell B11 is dragged down to cell C13.
= SUMPRODUCT(($C$2:$C$7=$A11)*
(INDEX($A$2:$B$7,0,MATCH(B$10,$A$1:$B$1,0))=$D$2:$D$7))

How do I compare rows across sheets in Excel?

I've read through some of the topics that were similar to mine but I couldn't find an answer for what I need. Perhaps it is a logic problem on my part.
I have two sheets with identical data however they come from two different sources. I need to compare rows from 1 sheet to rows of the 2nd sheet to find out what is missing or different so I can fix.
I have columns A - M which has the data points. I then have column N which I concatenated all the columns together and compared them to other sheet doing the same thing so I could find the Non-matching. Out of 40,000 records I have 6100 that do not match.
What I am trying to do is compare the whole row (or the concatenated) and find out what value is different between the two. I was attempting to do this by IF with a VLookup and nested IFs but this didn't turn out correct because I wasn't getting it to compare the same value from the same Row plus I ran out of allotted nesting space. I was thinking a match,index system might work. I need some help!
Edit:
To be more clear the rows do not line up. What I have to do is make sure all the rows from sheet "1" are in sheet "2" but not all of sheet "2" need to be in "1". Basically I need this -
From sheet "1" find the value in cell A1 in sheet "2" A:A. Then match B1-N1 to that same row (whatever row it is). If possible I'd like to identify either by highlighting or having a word such as "Mismatch"
I usually create a new sheet and in use each cell to do a cell by cell comparison across the sheets. i.e. in new sheet cell a1 put =value(Sheet1!A1=Sheet2!A1) That give you a 1 where they're the same and a zero where they differ.
If you want you can set the column n on an original sheet to be the sum of the same row on the new sheet for easy reference.
I would use a VBA solution. If the number of rows are the same for each sheet and you are comparing row 1 with row 1, etc. then:
1) Loop through each row and concatenate the rows' cells for each sheet.
2) Apply the clean and trim function to the results.
3) Compare the results.
4) If they match, move to the next row.
5) If they don't match, loop through each cell of the row range to find the ones that differ and capture it somehow.
6) Print the results somewhere.
OR
Put the range values of each sheet into two arrays and compare the arrays (faster).
I'm certain there's a better way but that would be my approach, at least.

How do I automatically update cells to match values from another sheet when one cell is changed using data validation?

I have a list of items on Sheet 1 with the names of each item in column A and then further information in the subsequent 5 columns.
On Sheet 2, in each of the cells of column A, I have set it so that I can pick any item from a dropdown list using data validation. I want the subsequent cells in the row to automatically assume the value of the respective cells in Sheet 1.
So if in Sheet 2, Cell A1 I select Item 3 (which is in Cell A3 on Sheet one), I want Cell B1 on Sheet 2 to have the same value as Cell B3 on Sheet 1.
I could get the result I wanted by using =IF($A3='Sheet1'!A3,'Sheet1'!B3,) and then adding each possible item but that seems really long winded and would require adding to the formula every time I added an item.
Any idea if there is a way of doing this? Sorry if my explanation is a bit confusing. My excel knowledge is not great!!
Thanks in advance
Use the Vlookup function
Next to your data validation cell, enter (assuming the first sheet called Sheet1):
=Vlookup(a1,Sheet1!a:f,2,0)
This will return the data that match for the 2nd column. For the 3rd use:
=Vlookup(a1,Sheet1!a:f,3,0)
And so on..

Searching a Value across an entire spreadsheet

I have an excel spreadsheet and in one column (lets call it org numbers) of one sheet i have a list of values. On another tab i have these values scattered between A1:AX281.
I am trying to do a match/lookup/count to ensure the positions i have between A1:AX281 match the values i have in the org numbers sheet. I have searched this for a while now and haven't found something to an exact match. i have tried using certain formulas but i wonder if merged cells and formulas in these cells affect my result?
If you want to know if the cells A1:Ax281 have a matching value in column 1 of sheet one do the following:
On sheet three cell a1 add the following formula:
=Match(Sheet2!A1,Sheet1!$A:$A,0)
Copy the formula from A1 to AX1, then from A1:Ax1 to A281:AX281.
The result will be a heat map with #N/A's in every cell where the value does not match and a number in ever cell that does.
Alternatively, you can enhance the formula to display the matching value or blank by changing the formula to:
=if(isna(Match(Sheet2!A1,Sheet1!$A:$A,0)),"",Sheet2!a1)
If you want to identify the cells on Sheet 1 not found on sheet 2, copy all the values from sheet 2 into a single column in sheet3 then use the match function to look down the single list.

Resources