SOLVED

Need a formula calculation dependent on the filter displayed.

%3CLINGO-SUB%20id%3D%22lingo-sub-1975250%22%20slang%3D%22fr-FR%22%3ENeed%20a%20formula%20calculation%20dependent%20on%20the%20filter%20displayed.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1975250%22%20slang%3D%22fr-FR%22%3E%3CP%3EHello%20friends%2C%3C%2FP%3E%3CP%3EFirst%20of%20all%2C%20i'm%20sorry%20for%20my%20English%2C%20i'm%20french%20%3CLI-EMOJI%20id%3D%22lia_slightly-smiling-face%22%20title%3D%22%3Aslightly_smiling_face%3A%22%3E%3C%2FLI-EMOJI%3E%3C%2FP%3E%3CP%3ESo%2C%20i%20would%20like%20to%20apply%20formula%20dependent%20on%20the%20filter%20displayed.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20created%20an%20Excel%20sheet%20to%20manage%20projects%20with%20start%20date%2C%20step%201%20date%2C%20step%202%20date%2C%20and%20again%20..%3C%2FP%3E%3CP%3EBut%20i%20need%20to%20know%3A%3C%2FP%3E%3COL%3E%3CLI%3EThe%20reaction%20between%20two%20date%20%3CEM%3E(Number%20of%20days%20between%20two%20date%20(Column%20E%20and%20F)%3C%2FEM%3E%26nbsp%3B%3C%2FLI%3E%3CLI%3EI%20need%20to%20apply%20a%20formula%20to%20this%20result%20(Number%20of%20projects%20%26lt%3B%3D%20at%207%20days).%3C%2FLI%3E%3C%2FOL%3E%3CP%3EOnce%20I%20have%20the%20number%20of%20days%20for%20all%20projects%20and%20number%20of%20days%22%26lt%3B%3D7%22%2C%20I%20need%20to%20apply%20a%20final%20formula%20%3A%3C%2FP%3E%3COL%3E%3CLI%3ECreate%20a%20percentage%20of%20among%20all%20reactivity%20date%2C%20how%20many%20percent%20are%20%26lt%3B%3D7%20days%3C%2FLI%3E%3C%2FOL%3E%3CP%3EAND%2C%20i%20need%20to%20manage%20all%20the%20formula%20to%20obtain%20the%20percent%20between%20project%20start%20date%20i%20choose.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3CU%3EMy%20issues%3A%3C%2FU%3E%3C%2FSTRONG%3E%3C%2FP%3E%3CUL%3E%3CLI%3EI've%20some%20trouble%20to%20apply%20the%20formula%20only%20on%20the%20column%20displayed%20with%20selected%20filter.%3C%2FLI%3E%3CLI%3EI%20need%20to%20exclude%20empty%20cells%20because%20some%20of%20my%20project%20start%20with%20the%20first%20date%20but%20they%20don't%20have%20yet%20the%20second%20date%20%3CEM%3E(But%20the%20line%20need%20to%20bee%20seen%20with%20the%20filter%20if%20needed)%3C%2FEM%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%3CEM%3ECan%20you%20help%20me%3F%20Do%20you%20have%20answers%3F%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3EThanks%20a%20lot!!%3C%2FEM%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%222020-12-10_105303.jpg%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F239499i63FAD3BD5367E8BD%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%222020-12-10_105303.jpg%22%20alt%3D%222020-12-10-105303.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1975250%22%20slang%3D%22fr-FR%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1977001%22%20slang%3D%22en-US%22%3ERe%3A%20Need%20a%20formula%20calculation%20dependent%20on%20the%20filter%20displayed.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1977001%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F897255%22%20target%3D%22_blank%22%3E%40RemyDup31%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETo%20count%20only%20non-filtered%20rows%20you%20need%20to%20add%20helper%20column%20with%20formula%20like%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-excel%22%3E%3CCODE%3E%3DAGGREGATE(3%2C5%2C%5B%40%5BEtat%20du%20projet%5D%5D)%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3Ewhich%20returns%20zero%20for%20filtered%20column%20and%201%20for%20visible%20(here%20is%20in%20column%20X).%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECount%20projects%20with%20less%20than%207%20days%20in%20duration%20and%20ignore%20blanks%20you%20may%20use%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-excel%22%3E%3CCODE%3E%3DCOUNTIFS(%5BR%C3%A9activit%C3%A9%0AIN01-RD2%5D%2C%22%26lt%3B%3D7%22%2C%5BDate%20Analyse%20%0A(2-FAD)%5D%2C%22%26gt%3B1%22%2C%5BHelper%5D%2C%22%3D1%22)%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EFrench%20notation%20of%20formulas%20will%20be%20within%20file.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1978085%22%20slang%3D%22fr-FR%22%3ERe%3A%20Need%20a%20formula%20calculation%20dependent%20on%20the%20filter%20displayed.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1978085%22%20slang%3D%22fr-FR%22%3EI%20speak%20French%3A)%3C%2FLINGO-BODY%3E
New Contributor

Hello friends, 

First of all, i'm sorry for my English, i'm french

So, i would like to apply formula dependent on the filter displayed.

 

I've created an Excel sheet to manage projects with start date, step 1 date, step 2 date, and again ..

But i need to know :

  1.  The reactivity between two date (Number of days between two date (Column E and F) 
  2.  I need to apply a formula to this result (Number of projets <= at 7 days).

Once i have the number of days for all projects and number of days "<=7", I need to apply a final formula :

  1.  Create a percentage of among all reactivity date, how many percent are <=7 days

AND, i need to manage all the formula to obtain the percent between project start date i choose.

 

My issues :

  • I've some trouble to apply the formule only on the column displayed with selected filter.
  • I need to exclude empty cells because some of my project start with the first date but they don't have yet the second date (But the line need to bee seen with the filter if needed)

Can you help me ? Do you have answers ?

Thanks a lot !!

 

2020-12-10_105303.jpg

4 Replies
Best Response confirmed by RemyDup31 (New Contributor)
Solution

@RemyDup31 

To count only non-filtered rows you need to add helper column with formula like

=AGGREGATE(3,5,[@[Etat du projet]])

which returns zero for filtered column and 1 for visible (here is in column X).

 

Count projects with less than 7 days in duration and ignore blanks you may use

=COUNTIFS([Réactivité
IN01-RD2],"<=7",[Date Analyse 
(2-FAD)],">1",[Helper],"=1")

French notation of formulas will be within file.

Yes !! Thanks a lot ! I just add SUB TOTAL function to calculate the percentage but it works great ! 

 

=(NB.SI.ENS([Réactivité
IN01-RD2];"<=7";[Date Analyse 
(2-FAD)];">1";[Helper];"=1"))/(SOUS.TOTAL(103;[Réactivité
IN01-RD2]))

 

Thank you @Sergei Baklan !!