How to sum visible cells only based on criteria in Excel?
In Excel, it may be easy for us to sum cells based on criteria with the SUMIFS function. However, if there is a range of filtered data, to sum the visible cells only with one or more criteria as below screenshot shown, how could you achieve this task in Excel?
Sum visible cells only based on one or more criteria with helper column
Sum visible cells only based on one or more criteria with formula
Sum visible cells only based on one or more criteria with helper column
To get the total values of the visible cells only based on one or more criteria, you can create a formula helper column first, and then apply the SUMIFS function to get the total result.
For example, to get the total order of the product Hoodie in the filtered range, please do as this:
1. Enter or copy the following formula into a blank cell beside your data range, and then drag the fill handle down to fill this formula to other visible cells, see screenshot:
2. After getting the visible values of column D, you should use the below SUMIFS function to get the total value, see screenshot:

If there are more criteria need to be added, you just need to join the criteria within the SUMIFS function like this: =SUMIFS(sum_range, criteria_range1, criteria1, [criteria_range2, criteria2], [criteria_range3, criteria3], ...)
Sum visible cells only based on criteria with formula
You can also create a formula based on the SUMPRODUCT, SUBTOTAL, OFFSET, ROW and MIN functions together to sum visible cells based on one or more criteria in Excel.
Please copy or enter the below formula into a blank cell to output the result, and then press Enter key to get the result, see screenshot:
Best Office Productivity Tools
Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time. Click Here to Get The Feature You Need The Most...
Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier
- Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
- Open and create multiple documents in new tabs of the same window, rather than in new windows.
- Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!