Skip to content

The World of Engineers

Treasure of Concepts, Latest Jobs and Scholarships

Menu
  • Home
  • Blog
  • MCQs
  • Past Papers
  • Contractors
    • SSEM
    • Al Gihaz
    • substation contractors
    • OHTL Projects
    • SEC Projects
  • Design
    • 380kV Substation Design
    • Extra High Voltage EHV Substation Design
    • Transmission lines design
  • Jobs
    • Electrical Jobs
  • Privacy Policy
Menu

Count items in a portion of column in Excel

Posted on March 14, 2023March 14, 2023 by Engr. Hamid Ali

This post is about how you can count items in a portion of a column in excel dynamically. We will use countifs excel function combine with index function. For example Look at the Figure 1. We have different types of towers in column A and PI points in column B. Here we want to count number of specific Towers (suspensions in this case) in Column A that are between PI-1 to PI-2 (including these cells) in Column B.

countifs function in excel
Figure. 1 Excel portion

To do this first we have to find row numbers of cells that contain PI-1 and PI-2. For this we will use Match function. Then we will use countifs function combine with index function.

Using Match Function in Excel

To use match function in excel first we have to write in column D the expression, for which we are going to find the row number. Here we want to find the row number of PI-1 in Column B. To do this we use Match function. write =match(D10,B:B,0). Here D10 is the Item we want to find, B:B is the column where PI-1 is located, and 0 is for exact match.

Match function in Excel
Figure 2 Match function in Excel

Using Countifs function in Excel

Now Since we found the start and end row numbers of the portion. we proceed to countifs function. To use the countif function we have to provide range and criteria. To access dynamic range like we want to access range from A4 to A10 but we have just 4 and 10 as shown in figure. for this we use index(A:A, Row number) to index(A:A, Row number) and then enter criteria as shown.
=COUNTIFS(INDEX(A:A,E10):INDEX(A:A,E11),”suspension”)

count in a portion of a column excel
Figure 3 CountIFS Excel

This will calculate number of suspension towers that are in Between A4 to A10. the result is shown below

countifs function in excel
Figure 4 Result of formula

Watch Video Explanation Step by step Here.


Our Latest Posts

  • Safety Assessment at Saudi Aramco Part 3
  • Classification of Lightning Protection Systems
  • Safety Assessment at Saudi Aramco Part 2
  • Safety Assessment at Saudi Aramco
  • Electrical Safety MCQs: Practice Quiz for Engineers

Categories:

  • Control System (4)
    • Research Work (4)
  • Courses (6)
    • Electrical Courses (5)
  • Extra High Voltage EHV Substation Design (17)
    • 380kV Substation Design (16)
      • Communication System (1)
  • Fellowships (2)
    • Fellowships in Pakistan (1)
  • Information for Engineers (38)
    • BSP Projects (16)
    • HVDC Projects (1)
    • OHTL Projects (7)
    • SEC Projects (19)
      • Al BABTAIN (1)
      • Al Gihaz (3)
      • AL-OJAIMI (1)
      • Alsharif Group (1)
      • SSEM (2)
      • TDP (1)
    • Synchronous Condensers (2)
  • Interview Preparation (27)
    • FPSC (1)
  • Jobs (14)
    • Electrical Jobs (7)
    • Jobs in KSA (11)
  • MATLAB and Simulink (1)
  • MCQs (15)
    • Electrical MCQs (13)
      • Basic Electrical (7)
      • Control System MCQs (3)
      • Microwaves MCQs (1)
    • Electronics MCQs (9)
      • Basic Electronics (5)
    • Safety MCQs (2)
  • Microsoft Excel (2)
  • Past Papers (10)
    • electrical (8)
    • NTS Past Papers (4)
  • Saudi ARAMCO (3)
  • Scholarships (3)
    • Scholarships in Pakistan (1)
  • Scholarships in Pakistan (1)
  • Transmission lines design (7)
  • Uncategorized (23)
  • Web Development (1)

Our Top Posts

  • List of Contractors who Won Major BSP Projects in 2024 in KSA
  • Top Electrical Engineering Courses on Coursera
  • List of Top Substation contractors in KSA
  • Transmission Line Design Important Points
  • Panels required inside substations
  • Electrical MCQs with Explanation of Answers
  • Electrical Past papers
  • How to Add MCQs in wordpress posts
  • Transmission Lines design Basics
  • 380kV Substation Design (16)
  • Al BABTAIN (1)
  • Al Gihaz (3)
  • AL-OJAIMI (1)
  • Alsharif Group (1)
  • Basic Electrical (7)
  • Basic Electronics (5)
  • BSP Projects (16)
  • Communication System (1)
  • Control System (2)
  • Control System MCQs (3)
  • Courses (5)
  • electrical (8)
  • Electrical Courses (5)
  • Electrical Jobs (7)
  • Electrical MCQs (12)
  • Electronics MCQs (9)
  • Extra High Voltage EHV Substation Design (16)
  • Fellowships (2)
  • Fellowships in Pakistan (1)
  • FPSC (1)
  • HVDC Projects (1)
  • Information for Engineers (36)
  • Interview Preparation (27)
  • Jobs (10)
  • Jobs in KSA (11)
  • MATLAB and Simulink (1)
  • MCQs (13)
  • Microsoft Excel (2)
  • Microwaves MCQs (1)
  • NTS Past Papers (4)
  • OHTL Projects (7)
  • Past Papers (10)
  • Research Work (4)
  • Safety MCQs (2)
  • Saudi ARAMCO (3)
  • Scholarships (3)
  • Scholarships in Pakistan (1)
  • Scholarships in Pakistan (1)
  • SEC Projects (19)
  • SSEM (2)
  • Synchronous Condensers (2)
  • TDP (1)
  • Transmission lines design (7)
  • Uncategorized (23)
  • Web Development (1)

Latest Posts

  • Safety Assessment at Saudi Aramco Part 3
  • Classification of Lightning Protection Systems
  • Safety Assessment at Saudi Aramco Part 2
  • Safety Assessment at Saudi Aramco
  • Electrical Safety MCQs: Practice Quiz for Engineers

All Pages

  • Active Scholarships
  • C++ Data Structures
  • Electrical MCQs with explanation
  • Jobs
  • Privacy Policy
  • Technical Posts
  • The World of Engineers
  • Top Electrical MCQs with explanation

Follow Us on

  • Facebook
  • YouTube
  • LinkedIn

© 2025 The World of Engineers | Powered by Superbs Personal Blog theme