Can anyone point me at a function or code that can compare a range of cells to a range of cells in another sheet and return a value. The lists have the same format:
Example:
Compare Sheet1 A1 B1 C1 D1
to Sheet 2 A1 B1 C1 D1
and return Sheet 2 E1
value
In my head it's like a multiple column VLOOKUP
.
If you can move the job code to E2 then this, adapted from the link siddharth posted will work:
Change the rows as necessary, and instead of msgbox, save it as a variable or however you want.
Edit
the following will work also:
provided that the ranges to compare are only 1 row each. if either range spans more than one row it wont work.
Edit2
So that there is 2 methods. the first, takes a particular column, in the example, column 1, and the first 5 cells, and puts it on 1 row. in the example, row 7. Then the transpose method, takes the row and compares it. so the first method can be used to get a particular column on a row, and the second can be used to compare 2 rows and return a particular cell if the comparison is true.