Formula Changes When Rows Cleared

billy1989

New Member
Joined
Mar 22, 2023
Messages
19
Office Version
  1. 365
Platform
  1. Windows
I have a formula set up as below to see which last row number which contains data on another worksheet -

Excel Formula:
=SUMPRODUCT(MAX((CSV!$A$5:$A$235<>"")*ROW(CSV!$A$5:$A$235)))

However, when I clear the contents of the range, and then add anything else in the formula changes from $A$5 to $A$12, or wherever the previously cleared cells would have ended, thus making the max number as 0. How can I fix this please as it needs to be from A5 every time?
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
I don't fully understand what you are doing, but does this formula do what you want?

Excel Formula:
=XLOOKUP("*",CSV!A:A,ROW(CSV!A:A),,2,-1)
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,956
Members
449,096
Latest member
Anshu121

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