Ask LibreOffice - RSS feedhttps://ask.libreoffice.org/en/questions/Questions and answers for LibreOfficeenSun, 14 Apr 2019 11:25:00 +0200How do I find the last entry in a column that may contain many blanks (Solved)https://ask.libreoffice.org/en/question/190297/how-do-i-find-the-last-entry-in-a-column-that-may-contain-many-blanks-solved/I wish to easily find the last value in a column that may contain blank entries. I am allowing up to 70 rows of data.
Column A will contain the Date of an entry, but not every other column will have an entry on that date.
I would like to find a way to determine what row contains the last entry in Column B, so I can select the corresponding date in Column A
In the accompanying image -The range is A10:D79. Column A will contain consecutive rows of data (presently to Row 15) the last entry in Column B is in Row 13. How do I find the row number of that value?
![image description](/upfiles/15551604027861383.png)
I want the row number of the range A10:D79 that would correspond to that circled entry (relative row 4) so I can use it, along with the offset (+9) to determine the actual row number (13) in that sheet. Then I can use the indirect address function to extract the required value for the date on that row.
Other related questions seem to assume that ALL columns in any row are filled, and do not seem to address my particular need where there are many blank rows that are irregularly spaced in the target column.Sat, 13 Apr 2019 15:26:02 +0200https://ask.libreoffice.org/en/question/190297/how-do-i-find-the-last-entry-in-a-column-that-may-contain-many-blanks-solved/Answer by celilo for <p>I wish to easily find the last value in a column that may contain blank entries. I am allowing up to 70 rows of data.</p>
<p>Column A will contain the Date of an entry, but not every other column will have an entry on that date.
I would like to find a way to determine what row contains the last entry in Column B, so I can select the corresponding date in Column A </p>
<p>In the accompanying image -The range is A10:D79. Column A will contain consecutive rows of data (presently to Row 15) the last entry in Column B is in Row 13. How do I find the row number of that value?</p>
<p><img alt="image description" src="/upfiles/15551604027861383.png"></p>
<p>I want the row number of the range A10:D79 that would correspond to that circled entry (relative row 4) so I can use it, along with the offset (+9) to determine the actual row number (13) in that sheet. Then I can use the indirect address function to extract the required value for the date on that row.</p>
<p>Other related questions seem to assume that ALL columns in any row are filled, and do not seem to address my particular need where there are many blank rows that are irregularly spaced in the target column.</p>
https://ask.libreoffice.org/en/question/190297/how-do-i-find-the-last-entry-in-a-column-that-may-contain-many-blanks-solved/?answer=190378#post-id-190378=MATCH(1E+018,MyRange,1) ; where my range is the range B9:B79 provides the offset of 4. You can use the offset function as you planned.
=MATCH(1E+018,B:B,1) ; where the range uses the entire column will yeild the row of the actual cell, 13. No offset function required.
Both of these are a bit hacky because they assume that you can provide a number for the search criterion that is larger than any number that will exist in column B. I just entered a bunch of 9's.Sun, 14 Apr 2019 03:10:50 +0200https://ask.libreoffice.org/en/question/190297/how-do-i-find-the-last-entry-in-a-column-that-may-contain-many-blanks-solved/?answer=190378#post-id-190378Answer by karolus for <p>I wish to easily find the last value in a column that may contain blank entries. I am allowing up to 70 rows of data.</p>
<p>Column A will contain the Date of an entry, but not every other column will have an entry on that date.
I would like to find a way to determine what row contains the last entry in Column B, so I can select the corresponding date in Column A </p>
<p>In the accompanying image -The range is A10:D79. Column A will contain consecutive rows of data (presently to Row 15) the last entry in Column B is in Row 13. How do I find the row number of that value?</p>
<p><img alt="image description" src="/upfiles/15551604027861383.png"></p>
<p>I want the row number of the range A10:D79 that would correspond to that circled entry (relative row 4) so I can use it, along with the offset (+9) to determine the actual row number (13) in that sheet. Then I can use the indirect address function to extract the required value for the date on that row.</p>
<p>Other related questions seem to assume that ALL columns in any row are filled, and do not seem to address my particular need where there are many blank rows that are irregularly spaced in the target column.</p>
https://ask.libreoffice.org/en/question/190297/how-do-i-find-the-last-entry-in-a-column-that-may-contain-many-blanks-solved/?answer=190401#post-id-190401The Formula extendet to return the relativ Date from Column A:.
=INDEX(A9:A79,MATCH(1E+018,B9:B79,1))Sun, 14 Apr 2019 09:39:42 +0200https://ask.libreoffice.org/en/question/190297/how-do-i-find-the-last-entry-in-a-column-that-may-contain-many-blanks-solved/?answer=190401#post-id-190401Comment by nobody_special for <p>The Formula extendet to return the relativ Date from Column A:. </p>
<pre><code>=INDEX(A9:A79,MATCH(1E+018,B9:B79,1))
</code></pre>
https://ask.libreoffice.org/en/question/190297/how-do-i-find-the-last-entry-in-a-column-that-may-contain-many-blanks-solved/?comment=190410#post-id-190410Your solution works perfectly well.
I tested with various values, in no particular order.
The result always came back with the correct date for the last entry in the column even when I included duplicate values in a previous noncontiguous row. Thank You.Sun, 14 Apr 2019 11:25:00 +0200https://ask.libreoffice.org/en/question/190297/how-do-i-find-the-last-entry-in-a-column-that-may-contain-many-blanks-solved/?comment=190410#post-id-190410Comment by celilo for <p>The Formula extendet to return the relativ Date from Column A:. </p>
<pre><code>=INDEX(A9:A79,MATCH(1E+018,B9:B79,1))
</code></pre>
https://ask.libreoffice.org/en/question/190297/how-do-i-find-the-last-entry-in-a-column-that-may-contain-many-blanks-solved/?comment=190404#post-id-190404Or: =INDIRECT("a"&MATCH(1E+018,B:B,1))
Lots of ways to get the same result:)Sun, 14 Apr 2019 09:51:46 +0200https://ask.libreoffice.org/en/question/190297/how-do-i-find-the-last-entry-in-a-column-that-may-contain-many-blanks-solved/?comment=190404#post-id-190404