Houstonwolf
Board Regular
- Joined
- Jul 28, 2006
- Messages
- 154
Hello. I have a worksheet that compares vendor shipments to depot receipts. I have been using the VLOOKUP command mostly successfully (actually this: =IF(ISNA(VLOOKUP(J29,'Receipt Audit - 0828-0911.xls'!$D:$E,2,0)),0,(VLOOKUP(J29,'Receipt Audit - 0828-0911.xls'!$D:$E,2,0))) in order to return a zero where an entry is not found).
One of my vendors sometimes adds suffixes to their purchases orders and -- thanks to the members on this board! -- I found that =SUMIF('Receipt Audit - 0828-0911.xls'!$D:$D,J41&"*",'Receipt Audit - 0828-0911.xls'!$E:$E) will encompass all the PO's whether or not a suffix is included.
However, in some cases the =SUMIF will return double the quantity actually received (that's due to internal coding of the original report from which the Receipt Audit report is exported), so it doesn't work in all cases or I'd use it instead of the VLOOKUP.
My question is can a formula be formatted so that it would apply the SUMIF and if the result was double the vendor's shipment it would apply the VLOOKUP and if the result was N/A it would return a 0?
Thank you again everybody. I really appreciate everyone on this board.
One of my vendors sometimes adds suffixes to their purchases orders and -- thanks to the members on this board! -- I found that =SUMIF('Receipt Audit - 0828-0911.xls'!$D:$D,J41&"*",'Receipt Audit - 0828-0911.xls'!$E:$E) will encompass all the PO's whether or not a suffix is included.
However, in some cases the =SUMIF will return double the quantity actually received (that's due to internal coding of the original report from which the Receipt Audit report is exported), so it doesn't work in all cases or I'd use it instead of the VLOOKUP.
My question is can a formula be formatted so that it would apply the SUMIF and if the result was double the vendor's shipment it would apply the VLOOKUP and if the result was N/A it would return a 0?
Thank you again everybody. I really appreciate everyone on this board.