Count the non-numeric value starting with "T" based on specific date

ExcelNewbie2020

Active Member
Joined
Dec 3, 2020
Messages
360
Office Version
  1. 365
Platform
  1. Windows
i have a long range of dates.. i want to count all the non-numeric values starting with the latest "T" upto specific date (Q2).
However the count is zero if the specific date is "T" followed by a numeric value or a numeric value.. see below



Book2
ABCDEFGHIJKLMNOPQR
1
205-03-25
3
401-03-2502-03-2503-03-2504-03-2505-03-2506-03-2507-03-2508-03-2509-03-2510-03-2511-03-2512-03-2513-03-2514-03-2515-03-25Expected Result
58TVFT88888TSVFE0Since March 5 is T and followed by numeric values
666TFEFSTFFEFSVX3Starting March 3 "T" to March 5
78TSFFEFSVVFETSV4Starting March 2 "T" to March 5
8888TEFEFSVTEFSV2Starting March 4 "T" to March 5
9888888TFSVTEFSV0Since March 5 numeric values
108888TZFFSVTEFSV1Since March 5 is "T" followed by non-numeric values
Sheet2
 
How about this option:
Excel Formula:
=LET(fr,FILTER(A5:O5,$A$4:$O$4<=$Q$2+1),c,IF(TAKE(fr,,-1)="T",HSTACK(DROP(fr,,-1),"E"),fr),a,--ISTEXT(DROP(c,,XMATCH("T",c,,-1))),IF(TAKE(a,,1)=0,0,SUM(a)))
i think that solves it.. thank you very much
 
Upvote 0

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