Substitute for SUMIF

Ophelia70

New Member
Joined
Jul 17, 2016
Messages
13
Hello,

I have a workbook that is pulling data from another workbook with a SUMIF so if the workbook is closed there are just #value errors. Usually I would use a SUMPODUCT instead but I can’t make it work just for column Code and to pull a value back for column Q4 actual. Usually when I do a sumproduct it looks at two references to pull back a figure so maybe it just can’t be done for 1?

Any suggestions as to what else would work?


Code<o:p></o:p>
Description<o:p></o:p>
Q4 actual<o:p></o:p>
800010<o:p></o:p>
Salaries<o:p></o:p>
<o:p></o:p>
<o:p></o:p>
11,000<o:p></o:p>
800015<o:p></o:p>
Share Based Payments<o:p></o:p>
<o:p></o:p>
<o:p></o:p>
0<o:p></o:p>
800016<o:p></o:p>
Employer's NI on SBP<o:p></o:p>
<o:p></o:p>
<o:p></o:p>
5,000<o:p></o:p>
800020<o:p></o:p>
Directors Fees<o:p></o:p>
<o:p></o:p>
<o:p></o:p>
0<o:p></o:p>
800030<o:p></o:p>
Employers National Insurance Contributions<o:p></o:p>
<o:p></o:p>
<o:p></o:p>
1,000<o:p></o:p>
800040<o:p></o:p>
Employers Pension Contributions<o:p></o:p>
<o:p></o:p>
<o:p></o:p>
2,000<o:p></o:p>
800100<o:p></o:p>
Temporary Staff<o:p></o:p>
<o:p></o:p>
<o:p></o:p>
31,845<o:p></o:p>
<tbody> </tbody>
<o:p>

Thanks
</o:p>
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Norie

Well-known Member
Joined
Apr 28, 2004
Messages
76,358
Office Version
  1. 365
Platform
  1. Windows
You can use SUMPRODUCT when there's only one column for criteria.

Can you post your existing SUMIF formula?
 
Upvote 0

BarryL

Well-known Member
Joined
Jan 20, 2014
Messages
1,436
Office Version
  1. 2019
Platform
  1. Windows
  2. MacOS
maybe:

=SUMPRODUCT(--('Other workbook'!$A:$A=A9),'Other workbook'!$J:$J)
 
Upvote 0

Forum statistics

Threads
1,191,671
Messages
5,987,958
Members
440,122
Latest member
branhill

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?

Disable AdBlock

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
Top