# Match, Sumif, Multi Function Formulas???

#### cgreen

##### Active Member
Hi All, Hope you can help.

This is the formula I'm playing with:
=IF(B5>0,IF(MATCH(\$A\$1,'[Copy of Document Register.xls]Production Control'!\$B\$2:\$B\$1001,0),SUMPRODUCT(--('[Copy of Document Register.xls]Production Control'!\$C\$2:\$C\$1001=B5),('[Copy of Document Register.xls]Production Control'!\$J\$2:\$J\$1001)),0))

The month I am working on is in A1 on the 'monthly schedule' report. I want it to look at A1 then go to the 'copy of document register' and look at column B to see if it matches A1. If column B from 'copy of document register' matches A1, I want it to look at B5 and match to column C on the 'copy of document register' and total up the numbers in column (D-E) of the 'copy of document register'.
Copy of Document Register.xls
BCDE
1"Orders" MonthofSchdPCNQTYOrderedQTYReturned
2Jan-05N021ZG4
3Jan-05N03ZA052
4Jan-05N02MF54
5Dec-04N01STH1
6Dec-04N01STK1
Production Control
Monthly Schedule.xls
ABCDEFGHIJ
1Jan-05
2ProgramsDatabaseDocumentRegister
3PCN'sforFY05NameTypeAuth.TotalsMonthSchdRequiredMonthSchdOrderedTotalOrdered
41N01JQ0T700EngOCMI05--
52N02JQ0T700EngRecapA3200#REF!76
63N01BCZT701CEngOCMI010--
74N02BCZT701CEngConvC250--
85N03BCZT701CEngRecapA3220--
PC Count Report for FY05

### Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce

#### cgreen

##### Active Member
=SUMIF('[Copy of Document Register.xls]Production Control'!\$B\$2:\$B\$1001,A1,'[Copy of Document Register.xls]Production Control'!\$D\$2:\$D\$1001)

For the above spreadsheet: This formula gives me the total count for the date ordered. How do I get it to give me the total count only if the PCN matches to the date ordered??? ray:

Replies
4
Views
539
Replies
2
Views
648
Replies
8
Views
298
Replies
0
Views
236
Replies
7
Views
5K

1,181,125
Messages
5,928,247
Members
436,594
Latest member
asifm0

### We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

### Which adblocker are you using?

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

### Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

### Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

### Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back