SUMIF #NAME error

rs2k

Well-known Member
Joined
Aug 15, 2004
Messages
1,413
This formula is returning a '#NAME' error.

=SUMIF(A5:A,L5,D5:D)

When I tried it out on a new sheet it worked OK, but on the WS I need it on it produces the error, the ranges A5:A,L5,D5:D are populated by some code, all the cells are formatted as general.

Can anyone help/explain whats going wrong?

Cheers
Colin.
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Colin,
That's a strange notation your using A5:A or D5:D.
What's the limit of your range?

Do you mean A5:A65536 & D5:D65536 or just plain A:A and D:D?
 
Upvote 0
Leonard,
Thank you for that, A5:A65536 & D5:D65536 did the job.
btw, my range changes and I thought (wrongly) that A5:A would capture all the data from A5 down.

Thanks again,
Colin.
 
Upvote 0
No worries.

A word of warning though: using large sumif ranges like that can slow down your workbook immensely. It's not a problem if you have only one or two such formulae in your workbook, but if you have many sumifs, you should endeavour to make your ranges as specific (as small) as possible.
 
Upvote 0

Forum statistics

Threads
1,215,543
Messages
6,125,429
Members
449,223
Latest member
Narrian

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
Back
Top