Adjustable column ref

mole999

Well-known Member
Joined
Oct 23, 2004
Messages
10,524
Office Version
  1. 2019
  2. 2016
  3. 2013
Platform
  1. Windows
I have seven day columns, with blanks and entries, I have a formula to identify the last ROW of each day, and use a MAX function to return the row number. so far so good

I need to use =COUNTBLANK(M14:S34)+COUNTA(M14:S34) and =COUNTA(M14:S34) to be able to identify the difference between filled and blanks, and this is where I am struggling.

i need to incorporate =INDIRECT("s3") = 34 in the above COUNTBLANK & COUNTA and whatever syntax something like =COUNTA(M14:"S"&INDIRECT(S3)) I think

i have tried I'm not getting the result i'm after.

Any pearls of wisdom that knows what I want
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Hi, so in cell S3 you have 34 and want that to be used as the last row in the formula? If so you can try like this:

=COUNTBLANK(M14:INDEX(S:S,S3))
 
Upvote 0
@FormR That works thank you, do we really need to reference the whole column when I already know where the value is stored, or have I missed something
 
Upvote 0
do we really need to reference the whole column when I already know where the value is stored

There are no negative performance issues referencing the whole column here and it offers a certain level of robustness.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,179
Members
453,021
Latest member
Justyna P

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