Sumifs throwing # Value error

snchandan

New Member
Joined
May 31, 2023
Messages
3
Office Version
  1. 365
  2. 2021
  3. 2019
  4. 2016
  5. 2013
Platform
  1. Windows
The following formula throws up # Value error
=SUMIFS(sheet1!$B17:$XFD58,sheet1!$B8:$XFD8,sheet2!D4,sheet1!$B7:$XFD7,"<>Y",sheet1!A16:A58,sheet2!A3)

where as the following works fine.
=SUMIFS(sheet1!$B17:$XFD17,sheet1!$B8:$XFD8,sheet2!D4,sheet1!$B7:$XFD7,"<>Y")

please suggest what is wrong when adding a 3rd criteria.
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Hi & welcome to MrExcel.
You cannot use sumifs when the ranges are not the same size. Try
Excel Formula:
=SUMPRODUCT((Sheet1!$B8:$XFD8=Sheet2!D4)*(Sheet1!$B7:$XFD7<>"Y")*(Sheet1!A16:A58=Sheet2!A3)*(Sheet1!$B16:$XFD58))
 
Upvote 0
Hello Fluff,

Thanks for the warm welcome and the suggestion.

I am getting same #Value error with the sumproduct too with 3 criteria.

with 2 criteria as follows works fine.
=SUMPRODUCT((Sheet1!$B8:$XFD8=Sheet2!D4)*(Sheet1!$B7:$XFD7<>"Y")*(Sheet1!$B17:$XFD17))

please suggest other solutions.
 
Upvote 0
Hello Fluff,

Thanks for the warm welcome and the suggestion.

I am getting same #Value error with the sumproduct too with 3 criteria.

with 2 criteria as follows works fine.
=SUMPRODUCT((Sheet1!$B8:$XFD8=Sheet2!D4)*(Sheet1!$B7:$XFD7<>"Y")*(Sheet1!$B17:$XFD17))

please suggest other solutions.
I don' think you understood Fluffs comment.
I'm not sure what your formula with 3 criteria is because you didn't display it.
Also, is your data really 16000 columns wide?

try this:

i've tried to create your data on one sheet and also shrunk it up. I have no idea what column A contains. but I guess row 8 has a date, so I used 1st of months.
and for formula transparency I put the Y in a cell and reference that also.

This is what i think you want in the first formula that gives you errors:


Mr excel questions 39.xlsm
ABCDEFGHIJKLMNOPQRSTUVWXY
1
2Index?DateY/NResult
3303/21Y9
4
5
6
7YNYYYYYNYNNNYYNYNYNNNYY
801/2102/2103/2104/2105/2106/2107/2108/2109/2110/2111/2112/2101/2202/2203/2204/2205/2206/2207/2208/2209/2210/2211/22
9
10
16
171181624646349185910828669
18251184464182374331328164
193429678185776493183381072
204625122187962671101758266
2152647347310134591526110417
22621067841713103998410324511
2379666415644710232210366918
248410516841193719333945121
259991179727838149639682108
26101046104162239105101714923107
27111031033214364481061036634109
281298717474343457149229619
291349921842615751109437102110
301432109651181227210661475103
3115610181932110410482958410493
32166426108811055297767671259
331768472834105444664771018910
34188951013884611101156554999
35191455635758723728588810104
362010896610939881079419698649
37211732102102421069222108354104
3822441574916710294519636149
3923771492104357769298944539
402410410110966118586343228944
412578351710591497784410102368
422610110938693976169538561068
432767732954410111095639107458
44281610282657486925181681093
45294591106816767797552315810
4630599187456392526953710629
47318264787389442102955321062
483272499107691669105444715105
493328145799366418542695865
50344781856410423105753315549
5135221107348491829976186842
52364325941041514656776810719
5337842531188246135721011274
54381591081343210389104663810108
55398311056976816109710133106101
56408192357106196421079113329
57418774917749753103104217534
5842541485632328222106573498
59
snchandan
Cell Formulas
RangeFormula
J3J3=SUMPRODUCT( (B17:X58)* (--(B8:X8=D3))* (A3=A17:A58) * (G3=B7:X7))
B8B8=DATE(2021,1,1)
C8:X8C8=EDATE(B8,1)
 
Upvote 0
if the above doesn't work then you really need to post your data using XL2BB add in (Link Below). NOTE: Images will not help!
Note (if what I call is index is a user or product that repeats throughout column A the above formula will still work).
(the double negative portion of the formula can probably be taken out).
 
Upvote 0
I don' think you understood Fluffs comment.
I'm not sure what your formula with 3 criteria is because you didn't display it.
Also, is your data really 16000 columns wide?

try this:

i've tried to create your data on one sheet and also shrunk it up. I have no idea what column A contains. but I guess row 8 has a date, so I used 1st of months.
and for formula transparency I put the Y in a cell and reference that also.

This is what i think you want in the first formula that gives you errors:


Mr excel questions 39.xlsm
ABCDEFGHIJKLMNOPQRSTUVWXY
1
2Index?DateY/NResult
3303/21Y9
4
5
6
7YNYYYYYNYNNNYYNYNYNNNYY
801/2102/2103/2104/2105/2106/2107/2108/2109/2110/2111/2112/2101/2202/2203/2204/2205/2206/2207/2208/2209/2210/2211/22
9
10
16
171181624646349185910828669
18251184464182374331328164
193429678185776493183381072
204625122187962671101758266
2152647347310134591526110417
22621067841713103998410324511
2379666415644710232210366918
248410516841193719333945121
259991179727838149639682108
26101046104162239105101714923107
27111031033214364481061036634109
281298717474343457149229619
291349921842615751109437102110
301432109651181227210661475103
3115610181932110410482958410493
32166426108811055297767671259
331768472834105444664771018910
34188951013884611101156554999
35191455635758723728588810104
362010896610939881079419698649
37211732102102421069222108354104
3822441574916710294519636149
3923771492104357769298944539
402410410110966118586343228944
412578351710591497784410102368
422610110938693976169538561068
432767732954410111095639107458
44281610282657486925181681093
45294591106816767797552315810
4630599187456392526953710629
47318264787389442102955321062
483272499107691669105444715105
493328145799366418542695865
50344781856410423105753315549
5135221107348491829976186842
52364325941041514656776810719
5337842531188246135721011274
54381591081343210389104663810108
55398311056976816109710133106101
56408192357106196421079113329
57418774917749753103104217534
5842541485632328222106573498
59
snchandan
Cell Formulas
RangeFormula
J3J3=SUMPRODUCT( (B17:X58)* (--(B8:X8=D3))* (A3=A17:A58) * (G3=B7:X7))
B8B8=DATE(2021,1,1)
C8:X8C8=EDATE(B8,1)

Thanks a ton for the detailed explanation. It works fine now.
appreciate your support.
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,921
Messages
6,122,280
Members
449,075
Latest member
staticfluids

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