Solved

Problem with finding last number in a column

Posted on 2014-02-26
5
267 Views
Last Modified: 2014-02-26
Folks,
I have attached a workbook where I am trying to identify the last number used in a column. There are two examples. The first one works, but the second one under the Practice section does not give me the correct answer and I do not know why.
LastNumberColumn.xlsx
0
Comment
Question by:Frank Freese
5 Comments
 
LVL 35

Accepted Solution

by:
mvidas earned 250 total points
ID: 39889741
fh_freese,

Technically, your cell A1 is not empty, as it says "Find the Last Number in a Column". Your J1 cell is empty though, since "Practice" is in H1.

Since J1 is blank, change the countblank range to start in row 1 instead of row 3.

Matt
0
 
LVL 10

Assisted Solution

by:JEaston
JEaston earned 250 total points
ID: 39889742
The reason the first formula works, and the second one doesn't is due to the merged cells.  The Cell A1 has a value, the cell J1 doesn't.  This is because the data for a merged cell is stored in the first cell of the merged area.

If you adjust the merged cell and put data in cell J1 both formula work the same.
0
 

Author Closing Comment

by:Frank Freese
ID: 39889759
Thanks folks. I can now see my problem!
0
 
LVL 92

Expert Comment

by:Patrick Matthews
ID: 39889800
BTW, if you want the last number in a column, you can make your formula much simpler:

=LOOKUP(10^200,A:A)
0
 

Author Comment

by:Frank Freese
ID: 39889821
great tip! thank you
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now