Excel 2012 - Formula to find the last cell with data and return row #

Johnny Thunder

Well-known Member
Joined
Apr 9, 2010
Messages
693
Office Version
  1. 2016
Platform
  1. MacOS
Hello all,


I need help with a formula that looks in row A and finds the last cell with data and returns the cell number once found. Thanks for your help!
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
hi johnny thunder

try
=COUNTIF(A1:A1000,">""")
or
=COUNTIF(A1:z1,">""")
you refered to row a in your post
rows are numbered and columns are lettered
so not sure which one you want
cheers
kevin
 
Last edited:
Upvote 0
Actually I am glad you asked. The data is dates and when I used the formula that was given in the first comment it did not return the correct row number. Were almost there!

Thanks again everyone for your help! I love this site!
 
Upvote 0
That formula is looking to row 1 and counting columns. I need it to look down and count rows. Can you manipulate the formula to do this? Thanks again!
 
Upvote 0

Forum statistics

Threads
1,215,473
Messages
6,125,022
Members
449,203
Latest member
tungnmqn90

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top