Find the Last Row of data in Excel Using INDEX and COUNTA

Find the Last Row of data in Excel Using INDEX and COUNTA
Spread the love

Sometime we have a requirement that we want to fetch data from last cell in a column. This task can be achieve by using

  • INDEX Function (Return the value or reference of the cell at the intersection of particular row and column in a give range)
  • COUNTA Function (Count the number of cell in a range that are not empty)
=INDEX(A:A,COUNTA(A:A))

In the following example in Column A, we use COUNTA to find the last cell number containing data is 14. and place this value in INDEX Function to get last cell value

ABC
1DataFormulaResult Last Cell Value
2RAZIA BEEGUM W/o JAVAID MASIH=INDEX(A:A,COUNTA(A:A))ARIFA BIBI W/o FAZAL ABBAS
3RAZIA ASIF W/o ASIF ALI  
4SUMERA FAROOQ W/o FAROOQ RAFIQUE  
5ZUMURD BIBI W/o MOHAMMAD BASHIR  
6FOZIA BIBI W/o ASHRAF HUSSAIN  
7SHAHEEN ARSHAD W/o MUHAMMAD ARSHAD  
8NAZIA ABID W/o ABID HUSSAIN  
9ISHRAT ASIF W/o ASIF ALI  
10JOTI D/o IRFAN JAVED  
11SANA SHABBIR W/o SHABBIR AHMAD  
12SOBIA ASLAM W/o MUHAMMAD ASLAM  
13KHALIDA PARVEEN W/o MUHAMMAD ISHAQ  
14ARIFA BIBI W/o FAZAL ABBAS