Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default find last cell in a column that has a value

I have a sheet that users can add lines. I need to determine the last
row/cell with a value. This is to be used in countif(ci6:(need to put in last
cell),"")

Thanks for the help.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 252
Default find last cell in a column that has a value

If you know the last value is a number you can use this formula.

=MATCH(999999999,CI:CI)

I am not exactly sure why it works, but it does.

To use with the countif you would use this formula.

=COUNTIF(INDIRECT("CI6:CI"&MATCH(999999999,CI:CI)) ,"")

"Mitchell" wrote:

I have a sheet that users can add lines. I need to determine the last
row/cell with a value. This is to be used in countif(ci6:(need to put in last
cell),"")

Thanks for the help.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 252
Default find last cell in a column that has a value

I suppose an easier way to get the same answer would be with this formula

=COUNTIF(A:A,"")-COUNTIF(A1:A5,"")

"Sloth" wrote:

If you know the last value is a number you can use this formula.

=MATCH(999999999,CI:CI)

I am not exactly sure why it works, but it does.

To use with the countif you would use this formula.

=COUNTIF(INDIRECT("CI6:CI"&MATCH(999999999,CI:CI)) ,"")

"Mitchell" wrote:

I have a sheet that users can add lines. I need to determine the last
row/cell with a value. This is to be used in countif(ci6:(need to put in last
cell),"")

Thanks for the help.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default find last cell in a column that has a value

The column I'm checking has names in it. I have another column with numbers
(H) and can determine the last number of that column

countif(Tasks!ci6:MATCH(999999999,Tasks!H:H),"")

gives me an error message

"Sloth" wrote:

I suppose an easier way to get the same answer would be with this formula

=COUNTIF(A:A,"")-COUNTIF(A1:A5,"")

"Sloth" wrote:

If you know the last value is a number you can use this formula.

=MATCH(999999999,CI:CI)

I am not exactly sure why it works, but it does.

To use with the countif you would use this formula.

=COUNTIF(INDIRECT("CI6:CI"&MATCH(999999999,CI:CI)) ,"")

"Mitchell" wrote:

I have a sheet that users can add lines. I need to determine the last
row/cell with a value. This is to be used in countif(ci6:(need to put in last
cell),"")

Thanks for the help.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 252
Default find last cell in a column that has a value

You need to use the INDIRECT Function like this

=COUNTIF(INDIRECT("Tasks!CI6:CI"&MATCH(999999999,C I:CI)),"")

But the second function I gave you should work in either case (numbers or
names), because it ignores everything below the last entry in that column.

=COUNTIF(A:A,"")-COUNTIF(A1:A5,"")

"Mitchell" wrote:

The column I'm checking has names in it. I have another column with numbers
(H) and can determine the last number of that column

countif(Tasks!ci6:MATCH(999999999,Tasks!H:H),"")

gives me an error message

"Sloth" wrote:

I suppose an easier way to get the same answer would be with this formula

=COUNTIF(A:A,"")-COUNTIF(A1:A5,"")

"Sloth" wrote:

If you know the last value is a number you can use this formula.

=MATCH(999999999,CI:CI)

I am not exactly sure why it works, but it does.

To use with the countif you would use this formula.

=COUNTIF(INDIRECT("CI6:CI"&MATCH(999999999,CI:CI)) ,"")

"Mitchell" wrote:

I have a sheet that users can add lines. I need to determine the last
row/cell with a value. This is to be used in countif(ci6:(need to put in last
cell),"")

Thanks for the help.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I combine spreadsheets and documents in one file? Trish Excel Discussion (Misc queries) 3 November 9th 06 10:17 PM
find a cell matching separate column and row values LQEngineer Excel Worksheet Functions 2 July 26th 06 08:10 AM
insert date Larry Excel Worksheet Functions 28 July 15th 06 03:41 AM
run a macro in a locked cell Ray Excel Discussion (Misc queries) 8 January 10th 06 01:02 AM
Need to Improve Code Copying/Pasting Between Workbooks David Excel Discussion (Misc queries) 1 January 6th 06 04:56 AM


All times are GMT +1. The time now is 05:21 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"