Last populated row

jamescooper

Well-known Member
Joined
Sep 8, 2014
Messages
834
Can anyone help please?

=COUNTIF(Calculations!$L$3:$L$100000,WACM!$G9,Calculations!$I$3:$I$100000)

If I have this range and instead of putting 100000 as the last row, how would I put the last row populated? If I had last row populated in another cell, could I link to this formula?

Many thanks.
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
One formula for a dynamic column would be:
=$L$3:INDEX($L:$L, COUNTA($L:$L) + 2)

Other people use an OFFSET formula:
=$L$3:OFFSET($L$3, COUNTA($L:$L) - 1, 0)

The data in column L can't include blanks. I'm assuming no headers and no populated cells in the column outside of the data range. If there are other populated cells, you have to adjust the "+ 2" or the "- 1" in the two formulas.

I use these incantations as named formulas. A COUNTIF formula might become
=COUNTIF(MyColumnEllData,WACM!$G9)

I haven't found a way to use the defined name dynamic ranges in formulas with INDIRECT.

Another way of creating dynamic ranges is to convert the data to a structured table. The columns (fields) automatically become dynamic and are given named references. A COUNTIF formula might become:
=COUNTIF(Table1[Field12],WACM!$G9).

There are many good tutorials available. Google "excel dynamic ranges" and "excel tables"
 
Upvote 0

Forum statistics

Threads
1,215,606
Messages
6,125,805
Members
449,262
Latest member
hideto94

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