[Solved] SUMIFS formula gives Err:508

Discuss the spreadsheet application
Locked
__John_L.
Posts: 1
Joined: Sun Dec 27, 2020 2:27 pm

[Solved] SUMIFS formula gives Err:508

Post by __John_L. »

I have data in Column D that is formatted as text (Credit or Debit), and data in Column E that is formatted as Number (General). Integers, actually, some with minus signs.

I have this in one cell (N129, if that matters): =SUMIFS($E2:$E128,$D2:$D128,"=$o$129")

and this in cell O129: "Credit"

Cell N129 displays: Err:508

Win 11 + Apache 4.1.16 from the Microsoft Store.

Thanks in advance for any insight you might provide. :crazy:

 Edit: Changed subject, was training wheels on... (sigh) 
Make your post understandable by others 
-- MrProgrammer, forum moderator 
Last edited by MrProgrammer on Wed Feb 04, 2026 4:03 am, edited 2 times in total.
Reason: Tagged ✓ [Solved]; Solution given and no further questions from __John_L.
OpenOffice 4.1.16 Windows 11
User avatar
MrProgrammer
Moderator
Posts: 5480
Joined: Fri Jun 04, 2010 7:57 pm
Location: Wisconsin, USA

Re: training wheels on... (sigh)

Post by MrProgrammer »

__John_L. wrote: Tue Jan 27, 2026 3:59 am =SUMIFS($E2:$E128,$D2:$D128,"=$o$129")
Try =SUMPRODUCT($E2:$E128;$D2:$D128=$O$129). I can't test that because I don't have your data. Use semicolon in the formula before $D2, not comma.
[Tutorial] The SUMPRODUCT function

If you need any additional assistance attach a spreadsheet demonstrating the difficulty (remove confidential information then use Post Reply, not Quick Reply, and don't attach a picture instead of the spreadsheet itself). I will not help further unless you attach a spreadsheet document.

__John_L. wrote: Tue Jan 27, 2026 3:59 am Win 11 + Apache 4.1.16 from the Microsoft Store.
I changed your forum signature shown at the bottom of your post from OpenOffice v4.1.7 Windows 10 to OpenOffice 4.1.16 Windows 11.


If this solved your problem please go to your first post use the Edit ✏️ button and add [Solved] to the start of the Subject field. Select the green checkmark icon at the same time.

[Tutorial] Ten concepts that every Calc user should know
Mr. Programmer
AOO 4.1.7 Build 9800, MacOS 13.7.8, iMac Intel.   The locale for any menus or Calc formulas in my posts is English (USA).
cwolan
Posts: 224
Joined: Sun Feb 07, 2021 3:44 pm

Re: SUMIFS formula gives Err:508

Post by cwolan »

__John_L. wrote: Tue Jan 27, 2026 3:59 am =SUMIFS($E2:$E128,$D2:$D128,"=$o$129")
  1. Use semicolon instead of comma — twice
  2. It seems the condition "=$o$129" should read "="&$o$129 or $o$129
⠀
sumifs_exAMPLE.png
sumifs_exAMPLE.png (74.42 KiB) Viewed 11917 times
OpenOffice 1.1.5 – 4.1.17
LibreOffice 3.3.0.4 – 26.8
Windows 7,10,11 64-bit
User avatar
Lupp
Volunteer
Posts: 3761
Joined: Sat May 31, 2014 7:05 pm
Location: München, Germany

Re: SUMIFS formula gives Err:508

Post by Lupp »

Distrusting my understanding of the "criteria" concept I mostly use SUMPRODUCT() which offers an imo clearer way to get expressions doing things for what SUMIF() and SUMIFS() may be appropriate. See example:
sumproduct_replacing_sumif_s.ods
(15.26 KiB) Downloaded 441 times
= =
SUMPRODUCT() is not a product of sums, but a sum of productS.
On Windows 10: LibreOffice 25.8.4 and older versions, PortableOpenOffice 4.1.7 and older, StarOffice 5.2
---
Lupp from München
cwolan
Posts: 224
Joined: Sun Feb 07, 2021 3:44 pm

Re: SUMIFS formula gives Err:508

Post by cwolan »

@Lupp

Thanks for the file. A few minor remarks:
  • "The criterion concept is easily misunderstood, IMO, or not clearly enough specified" (cell B1)
    Indeed.
  • Where is example of SUMIFS with mode modifier "(?-i)"
  • The formula in cell C27 reads =SUMPRODUCT($E$27:$E$44, IFERROR(REGEX($F$27:$F$44, $K27, , 1), "")<>"")
    Would a shorter formula =SUMPRODUCT($E$27:$E$44, ISTEXT(REGEX($F$27:$F$44, $K27, , 1))) do?
  • "SUNIFS() expressions can often be replaced by clearer SUMPRODUCT() expressions." (cell D1)
    SUNIFS it is a pretty funny function name.
OpenOffice 1.1.5 – 4.1.17
LibreOffice 3.3.0.4 – 26.8
Windows 7,10,11 64-bit
User avatar
Lupp
Volunteer
Posts: 3761
Joined: Sat May 31, 2014 7:05 pm
Location: München, Germany

Re: SUMIFS formula gives Err:508

Post by Lupp »

[2] Where is example of SUMIFS with mode modifier "(?-i)"
[3] The formula in cell C27 reads =SUMPRODUCT($E$27:$E$44, IFERROR(REGEX($F$27:$F$44, $K27, , 1), "")<>"")
Would a shorter formula =SUMPRODUCT($E$27:$E$44, ISTEXT(REGEX($F$27:$F$44, $K27, , 1))) do?
[4] "SUNIFS() expressions can often be replaced by clearer SUMPRODUCT() expressions." (cell D1)
SUNIFS it is a pretty funny function name.

[2] Sorry. I didn' give an example. Try (?-i)a(?i)b and copy the formulas to the respective row.
[3] Yes. I think so.
[4] Indeed. I should also have suggested SUNPRODUCT. Or would that have violated copyright?
On Windows 10: LibreOffice 25.8.4 and older versions, PortableOpenOffice 4.1.7 and older, StarOffice 5.2
---
Lupp from München
cwolan
Posts: 224
Joined: Sun Feb 07, 2021 3:44 pm

Re: SUMIFS formula gives Err:508

Post by cwolan »

Lupp wrote: Mon Feb 02, 2026 10:56 pm [4] Indeed. I should also have suggested SUNPRODUCT. Or would that have violated copyright?
No more than using the word SUNTAN for a trigonometric function…
OpenOffice 1.1.5 – 4.1.17
LibreOffice 3.3.0.4 – 26.8
Windows 7,10,11 64-bit
morchat
Posts: 58
Joined: Wed Dec 26, 2012 6:13 pm
Location: Poland

Re: SUMIFS formula gives Err:508

Post by morchat »

If the SUMIF and SUMIFS function criterion is stored in a cell, its address does not need to be specified as absolute. It must be specified as absolute when the SUM function is used for summing in matrix form.
sums.ods
(10.01 KiB) Downloaded 449 times
AOO 4.1.16, LibreOffice 25.8
Windows 11 64 bits
Locked