Formula to find location of second row from the bottom containing specific text

fishmonger

New Member
Joined
Jul 28, 2022
Messages
9
Office Version
  1. 2016
Platform
  1. Windows
I am trying to find a formula to identify the second row from the bottom containing the word "Summary". So in this example should return A11. Thank you
Book1
AB
101-Sep-241
202-Sep-242
303-Sep-243
404-Sep-244
505-Sep-245
6Summary Sep 1 to Ssp 515
7
806-Sep-246
907-Sep-247
1008-Sep-248
11Summary Sep 6 to Sep 821
12
1309-Sep-249
1410-Sep-2410
1511-Sep-2411
1612-Sep-2412
17Summary Sep 9 to Sep 1242
Sheet1
Cell Formulas
RangeFormula
B6B6=SUM(B1:B5)
B11B11=SUM(B8:B10)
B17B17=SUM(B13:B16)
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Sub Macro2()
'
' Macro2 Macro
'

'
For Each Ra In Range("A1:A17")
If Ra.Value = "" Then

Cells(Ra.Row, Ra.Column + 2) = "A" & Ra.Row
End If

Next
End Sub
 
Upvote 0
I am trying to find a formula to identify the second row from the bottom containing the word "Summary". So in this example should return A11
Is one of these formulas in column D what you mean?

24 11 11.xlsm
ABCD
101-Sep-2412nd last Summary
202-Sep-242Summary Sep 6 to Sep 8
303-Sep-243A11
404-Sep-244
505-Sep-245
6Summary Sep 1 to Ssp 515
7
806-Sep-246
907-Sep-247
1008-Sep-248
11Summary Sep 6 to Sep 821
12
1309-Sep-249
1410-Sep-2410
1511-Sep-2411
1612-Sep-2412
17Summary Sep 9 to Sep 1242
18
19
20
2nd last
Cell Formulas
RangeFormula
D2D2=INDEX(A:A,AGGREGATE(14,6,ROW(A1:A20)/(LEFT(A1:A20,7)="Summary"),2))
D3D3=ADDRESS(AGGREGATE(14,6,ROW(A1:A20)/(LEFT(A1:A20,7)="Summary"),2),1,4)
B6B6=SUM(B1:B5)
B11B11=SUM(B8:B10)
B17B17=SUM(B13:B16)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,710
Messages
6,174,019
Members
452,542
Latest member
Bricklin

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