Forum

Notifications
Clear all

I need optimize my formula for new Table

7 Posts
2 Users
0 Reactions
61 Views
(@soubasa)
Posts: 21
Eminent Member
Topic starter
 

Hello

​I have a table in sheet1 with manual data in A column and B column formula calculates maximum retrace in A column and ignored hidden rows. formula in column B is true.

​but please look at sheet2 I add manual column which is column A

in the column B I used SUBTOTAL,109 for auto sum column A with ignore hided rows

now in the column C formula is not work

I think my Array formula reads manual data but I need that works with table in sheet2

 

Would so appreciate help

 
Posted : 06/08/2023 9:34 am
Riny van Eekelen
(@riny)
Posts: 1185
Member Moderator
 

The support page for the SUBTOTAL function is clear about that.

"If there are other subtotals within ref1, ref2,… (or nested subtotals), these nested subtotals are ignored to avoid double counting."

In Sheet 2 you reference SUBTOTAL(109, ...) to a column that consists of formulas that all are SUBTOTALS. All are ignored, a zero value is returned.

By the way, I believe you can simplify your formula for MAX DD% to:

=SUBTOTAL(105,[Total R2])-[@[Total R2]]

I added this formula as an alternative. It works in Sheet1 but, obviously not in Sheet2 due what I explained above.

 
Posted : 07/08/2023 12:31 am
(@soubasa)
Posts: 21
Eminent Member
Topic starter
 

in the sheet 1 please hide row 15 which is last row. true result is 0 but SUBTOTAL,105 returns -2.00%. I can't understand it.

for the main question is it possible with helper column such as AGGREGATE function or anything else ?

 

I appreciate of your time and your knowledge

 
Posted : 07/08/2023 2:04 am
Riny van Eekelen
(@riny)
Posts: 1185
Member Moderator
 

I assume you refer to the -2% that shows up in C14. Why should that be zero?

 
Posted : 08/08/2023 3:54 am
(@soubasa)
Posts: 21
Eminent Member
Topic starter
 

Thanks for your time

after see the attached file please read below notes :

 

in the table if column A maked by hand, I don't have any problem to calculate maximum drowdown. but its automated and its eqaul column B in the sheet3 which is maked by SUBTOTAL,109. and arrey formula does not work with SUBTOTAL function.

I hope my words be clear
If there is a problem in my words, please let me explain more

 

Regards best.

 
Posted : 08/08/2023 7:27 am
Riny van Eekelen
(@riny)
Posts: 1185
Member Moderator
 

Then I just misunderstood your intentions. Forget my suggested formula change since your own seems to work for you.

Going back to your original question, the real issue was why the formula doesn't work in the original Sheet2. I believe I explained that in my first answer.

 
Posted : 09/08/2023 5:07 am
(@soubasa)
Posts: 21
Eminent Member
Topic starter
 

Hello

Thank you for your time

my question is solved with VALUE function in helper column

I attached solved file

 
Posted : 12/08/2023 9:14 am
Share: