How to SUMIF only Visible Cells In Excel

Поділитися
Вставка
  • Опубліковано 30 вер 2024
  • SUMIF Data Ignoring Hidden Rows in Excel is not as simple as other types of summation using criteria.
    This is because the SUMIF function does not ignore hidden rows.
    The solution comes from using a combination of SUBTOTAL & OFFSET functions to return only visible rows

КОМЕНТАРІ • 9

  • @danrow-c7x
    @danrow-c7x Рік тому +1

    Hello, do you have a COUNTIFS and a AVERAGEIF version of this formula ?

    • @crispexcel
      @crispexcel  Рік тому

      For Countif
      use below function
      =COUNT(SUBTOTAL(103,OFFSET(C2,
      ROW(INDIRECT("1:"&COUNTA(tblStaff[Gender]))),))
      *(tblStaff[Gender]="Male"))
      for averageif
      Use below function
      =AVERAGE(SUBTOTAL(103,OFFSET(C2,
      ROW(INDIRECT("1:"&COUNTA(tblStaff[Gender]))),))
      *(tblStaff[Gender]="Male")*tblStaff[Salary])

  • @mayurrajude
    @mayurrajude 8 місяців тому

    write the formula for the use

  • @anshikasahu9193
    @anshikasahu9193 Рік тому

    it's not working.

    • @crispexcel
      @crispexcel  Рік тому

      Which part is failing

    • @crispexcel
      @crispexcel  Рік тому

      Download worksheet here
      www.crispexcel.com/how-to-sumif-data-ignoring-hidden-rows-in-excel/

    • @anshikasahu9193
      @anshikasahu9193 Рік тому

      @@crispexcel can you please check your email.

    • @anshikasahu9193
      @anshikasahu9193 Рік тому

      @@crispexcel After putting the formula, the result I'm getting is "6,127" and not "37,051" that is the total of visible male staff.

    • @crispexcel
      @crispexcel  Рік тому +1

      @@anshikasahu9193 If you are not using office365 try Ctrl + Shift +Enter instead of just entering it