Forum Discussion
littlevillage
Dec 22, 2022Iron Contributor
SUMIFS not working with blanks.
Hi, I try to write a formula: =SUMIFS(Table1[unit],Table1[ID],G17,Table1[%percen],"<99%") Hope for your response, Thank you.
- Dec 23, 2022
If you run 2021 or 365, in H17:
=SUM((Table1[ID]=G17)*(Table1[%percen]<99%))
With other versions, to avoid validating the above as an array formula (Ctrl+Shift+Enter on Windows), in I17:
=SUMPRODUCT(--(Table1[ID]=G17), --(Table1[%percen]<99%))
Lorenzo
Dec 23, 2022Silver Contributor
If you run 2021 or 365, in H17:
=SUM((Table1[ID]=G17)*(Table1[%percen]<99%))
With other versions, to avoid validating the above as an array formula (Ctrl+Shift+Enter on Windows), in I17:
=SUMPRODUCT(--(Table1[ID]=G17), --(Table1[%percen]<99%))
- littlevillageDec 25, 2022Iron Contributor
Thank you for your response.
In your formula, I just slightly change as below:
=SUM((Table1[ID]=G17)*(Table1[%percen]<99%)*Table1[unit])
It's worked correctly.
- LorenzoDec 26, 2022Silver Contributor
Makes sense re. what you ultimately expect to acheive
Note PeterBartholomew1's SUMIFS approach that you can adapt to Excel 2021:
=SUM(SUMIFS(Table1[unit], Table1[ID], G17, Table1[%percen], {"<99%",""}))