Forum Discussion

sherikhan88's avatar
sherikhan88
Copper Contributor
Dec 05, 2021
Solved

Formula/VBA Help

Riny_van_Eekelen Sir, If you can help me with the below issue, which is similar to "https://techcommunity.microsoft.com/t5/excel/formula-vba-help/m-p/2979488#M122763" I would be greatful to you.   ...
  • Riny_van_Eekelen's avatar
    Riny_van_Eekelen
    Dec 05, 2021

    sherikhan88 Glad it worked. The part of the formula you refer to is just to "reset the calculation in column F when the product code in column A changes AND there's nothing more to be fulfilled. The N() function allows you to reference text fields in calculations. Entering E2-E1 would result in an error as E1 contains a text, i.e. the column header. Wrapping E1 in N(  ) returns zero in this case. Alternatively, you could use SUM(E2,-E1) as sum ignores texts. whatever you prefer.

    To understand what --(A2=A1) does, just enter it in an empty cell on row 2, with an= sign in front, of course, and drag it down.

     

     
     

Resources