PULL DATA FROM TWO SHEETS - excel-formula

Looking for an excel formula to match data in sheet 1 column A (delivery number) to data in sheet 2 column B (delivery number), then pull the data that's in sheet 2 column A (PO number) to a new column in sheet 1. There are more lines in Sheet 2 column B than in Sheet 1, column A. Please help!

If the PO number is numeric you can use =SUMIFS(Sheet2!A:A,Sheet2!B:B,A2)/COUNTIFS(Sheet2!B:B,Sheet1!A2)

Related

Compare column A sheet 1 and compare column B sheet 2 and if duplicate found, copy and return value on column B sheet 1 from column C sheet 2?

I am looking for a formula -
Compare column A sheet 1 and compare column B sheet 2 and if duplicate found, copy and return value on column B sheet 1 from column C sheet 2?
Hope that make sense.
Thanks is advance.
A Classic INDEX/MATCH
In e.g. cell B2 of Sheet1 use:
=IFERROR(INDEX(Sheet2!$C:$C,MATCH($A2,Sheet2!$B:$B,0)),"")
and copy down.
It is actually the same as the inferior:
=IFERROR(VLOOKUP($A2,Sheet2!$B:$C,2,FALSE),"")
Possibly you want to restrict it to something like
=IFERROR(INDEX(Sheet2!$C$2:$C$101,MATCH($A2,Sheet2!$B$2:$B$101,0)),"")

Excel Formula Vlookup issue

I have 2 excel sheets ("sheet 1, sheet 2").
Sheet 1 and Sheet 2 have "product #" in column A and "price" in column C. I'm trying to write a formula that would allow Sheet 1 to lookup on sheet 2 if there is a Product # match In column A and if there is a product # match then to update on Sheet 1 Column C (Price) the product price from sheet 2. If there is no Match of product # from sheet 2 then to leave the price on sheet 1 alone.
I'm using this formula which returns a "0" on an error but I can't figure out how to modify it to leave price alone when there's no product # found.
=IFERROR(VLOOKUP(A2,updated!A:C,3,FALSE),0)
Thanks
The only caveat here is that you need to write this formula in a new column, let's say in D2, because you can't overwrite your original price with the formula.
=IFERROR(VLOOKUP(A2,updated!A:C,3,FALSE),C2)
This says, "if A2 matches a value in Column A of the Updated Sheet, return the price from Column C of the updated sheet, unless there is an error, in which case, use the original price on Sheet 1 (C2).
You want to use INDEX/MATCH for this:
Put the following formula in column C and populate down
=IFERROR(IF(INDEX(Sheet2!B:B,MATCH(A2,Sheet2!A:A,0))=Sheet1!B2,B2,INDEX(Sheet2!B:B,MATCH(A2,Sheet2!A:A,0))),"")
The MATCH will find, the row on Sheet2 with the same Product ID, the INDEX will return the matching price. If it matches the one on Sheet1, the formula returns the value on Sheet1 in column B. If it doesn't it will return the price from Sheet2

If Column D Sheet 3 Matches a Value in Column C Sheet 1 Pull Data

So I have a list of domains in Column D on Sheet 3. If they match a value in column C of Sheet one. I want it to pull the same data thats in column A of sheet 1 and put that the relevant column on sheet 3
In E1 on Sheet3:
=IFERROR(INDEX(Sheet1!A:A,MATCH(Sheet3!D1,Sheet1!C:C,0)),"")
This is assuming you have Excel 2007 or later. Otherwise it needs to be tweaked slightly.

EXCEL: matching two columns to another two columns and returning the result

Bit stuck on a problem in Excel. I need to match two columns from Sheet 1 to two columns from Sheet 2, if the results match I need to then return column D's(Sheet2) value into Sheet1. I would of done this manually but this spreadsheet is huge and the reference table (sheet2) will be updated continuously.
My Spreadsheet:
Sheet1: Column G and H
Sheet2: Column B and C
I need to return the value in Column D (Sheet2) into Column A (Sheet1).
Any help on this would be excellent!
Regards,
Neil

Copy from sheet 1 to sheet 2 with condition

I have sheet 1 that has values from 1 to 100 in column A. For each value there is another corresponding value (random numbers) in column B.
In sheet 2 in column A, I have some of the values from column An in sheet 1, and some that are not present there. I want in column B in sheet 2 to copy the values from column B in sheet 1 where the values in column An in the two sheets match.
Example:
sheet1: A1= 5, B1=4,50
sheet2: for all cells in column A, where it equals 5, set the value in B to 4,50
Put this formula in sheet2!B1
=VLOOKUP(A1,Sheet1!$A:$B,2,0)
and copy down as far as needed.
After this has calculated you can copy pastespecial values if you want to replace the formulas with values
use VLookup. you can find the tutorial here http://www.techonthenet.com/excel/formulas/vlookup.php

Resources