Determine Row Count Based on Cell Contents "Annualized"

blaker

New Member
Joined
Jul 1, 2013
Messages
32
Office Version
  1. 365
Platform
  1. Windows
is there a way to write a formula that counts the number of rows, where the counts starts at offset(2,-1) from cell containing formula, and ends where the word "Annualized" Appears?
any help is much appreciated...
Thanks!!

hopefully this will help..
1626807336927.png
 

Attachments

  • 1626807206903.png
    1626807206903.png
    185.5 KB · Views: 2

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Well it certainly works on my sheet. And a screenshot is far from ideal for diagnosing and debugging your side of the situation.
Maybe try using xlbb to post your actual data here.
 
Upvote 0
Take the match part of the formula out and put it in an adjacent cell to see the result .
Excel Formula:
=MATCH("Annualized",OFFSET(S6,2,0,999999,1),0)-1
 
Upvote 0
What is your excel file type?
Try to reduce the nines by two so make it 9999 or 999 or even 1000.
If you don't expect such large counts.
 
Upvote 0
Hey I figured out the xlbb
Save-IT 70 THR Prototype ver 9 7-19-2021.xlsm
ARSTUVW
33E+06$42,74020212021THR
4Prior CasesRatioSavingsMar 28, 2021May 22, 202155
5Selected ItemConversion ratioAnnualized
6Count1.000$121.021This one should be 2
7Original CasesRatioAnnualized
831.000$121.02
911.000$40.34
10Selected ItemConversion ratioAnnualized
11Count1.000$18,095.751This one should be 6
12Original CasesRatioAnnualized
13751.000$18,095.75
14511.000$12,305.11
15771.000$18,578.31
1671.000$1,685.29
17101.000$2,412.77
18261.000$6,273.20
19Selected ItemConversion ratioAnnualized
20Count1.000$6,585.261This one should be 5
21Original CasesRatioAnnualized
2251.000$6,585.26
2331.000$4,422.51
2421.000$1,978.74
2541.000$5,683.03
2611.000$1,550.56
Convert
Cell Formulas
RangeFormula
S3S3=SUMIFS(S:S,B:B,"To")
T4:U4T4=T1&" "&T2&", "&T3
V4V4=U4-T4
R6,R20,R11R6=IF(Q6>0,(Q6/Q6),"")
S6,S20,S11S6=IFERROR(SUM(OFFSET(S8,0,0,SUM(T6),1)),"")
T6T6=COUNTA(OFFSET(S6,2,0,MATCH("Annualized",OFFSET(S6,2,0,1000,1),0)-1,1))
R8,R22,R13R8=IF(Q8>0,(Q8/Q6),"")
S8,S22,S13S8=IF(Q8>0,IF((H6-H8)=0,(R8*G8)*H8-(G8*R6*H6),((H8*A8))-(H6*G8))*$AL$2,"")
R9,R23,R14R9=IF(Q9>0,(Q9/Q6),"")
S9,S23,S14S9=IF(Q9>0,IF((H6-H9)=0,(R9*G9)*H9-(G9*R6*H6),((H9*A9))-(H6*G9))*$AL$2,"")
T11,T20T11=COUNTA(OFFSET(S11,2,0,MATCH("Annualized",OFFSET(S11,2,0,999999,1),0)-1,1))
R15,R24R15=IF(Q15>0,(Q15/Q11),"")
S15,S24S15=IF(Q15>0,IF((H11-H15)=0,(R15*G15)*H15-(G15*R11*H11),((H15*A15))-(H11*G15))*$AL$2,"")
R16,R25R16=IF(Q16>0,(Q16/Q11),"")
S16,S25S16=IF(Q16>0,IF((H11-H16)=0,(R16*G16)*H16-(G16*R11*H11),((H16*A16))-(H11*G16))*$AL$2,"")
R17,R26R17=IF(Q17>0,(Q17/Q11),"")
S17,S26S17=IF(Q17>0,IF((H11-H17)=0,(R17*G17)*H17-(G17*R11*H11),((H17*A17))-(H11*G17))*$AL$2,"")
R18R18=IF(Q18>0,(Q18/Q11),"")
S18S18=IF(Q18>0,IF((H11-H18)=0,(R18*G18)*H18-(G18*R11*H11),((H18*A18))-(H11*G18))*$AL$2,"")
Cells with Conditional Formatting
CellConditionCell FormatStop If True
S20Cell Value<0textNO
S20Cell Value>0textNO
S22:S26Cell Value>0textNO
S22:S26Cell Value<0textNO
S11Cell Value<0textNO
S11Cell Value>0textNO
S13:S18Cell Value>0textNO
S13:S18Cell Value<0textNO
S6Cell Value<0textNO
S6Cell Value>0textNO
S8:S9Cell Value>0textNO
S8:S9Cell Value<0textNO
S3Cell Value<0textNO
S3Cell Value>0textNO
 
Upvote 0
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

The cells with Annualized have a space after the word. If you get rid of that the formula should work.
 
Upvote 0
Hey Thanks!! That did work, never would of thought of that, I will update my user name
Thanks again for all the help!!
 
Upvote 0
Another option that doesn't use volatile functions in T6 copied down
Excel Formula:
=IF(AND(S7="annualized",R7="Ratio"),COUNTA(S8:INDEX(S8:S1000,IFNA(MATCH("Annualized",S8:S1000,0)-1,100))),"")
 
Upvote 0
Solution
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,685
Members
448,978
Latest member
rrauni

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