Thread: sumif error
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
tipoo tipoo is offline
external usenet poster
 
Posts: 15
Default sumif error

Hi Guys,
I have two sheets in an excel 2003 file. Sheet 1 has purchase order# and
relevant amounts. There can be more than 1 line record for same PO# on sheet
1. Just as an example would look like below:

Col A Col B
PO# Amount
2305675 50
2305675 50
2305897 23
2564111 4
56
2305675 200
2564111 450

Sheet 2 has invoice numbers in Col A and PO# in Col B and say amount in Col
C somewhat looks like as below:
ColA ColB Col C Col D
Inv# PO# Amount Rev Recog
456 2305675 50 300
456 2564111 56 454
466 2305675 235 300
888 2564111 456 454
2275 2305897 545 23

In Col D above when I use =SUMIF(Sheet2!A:A,Sheet1!B9,Sheet2!B:B) where
criteria is PO# from sheet 2 Col B, it adds up value of each PO if I have
more than 1 occurance of same PO# (for e.g., 2305675 has 300 against it on
sheet 2 while it only has 300 once in sheet 1. Is it possible to kill this
problem by one formula. Please accept thanks in advance for your help.

Tipoo