Forum Discussion
OlcayTo
Oct 03, 2023Copper Contributor
Formule Excel
I'm constantly searching, but can't find. I need a formula. For example. Someone travels 49 kilometers. The formula should not count up to 40 kilometers. So just the 9. (49-40) 9 kilometers to be paid. Cell should only show if the number of kilometers is above 40 and how much it is above 40. So in this case 9. For example, if the number of kilometers is 21, the cell should not show anything.
Dutch:
Ik ben constant aan het zoeken, maar kan niet vinden. Ik heb een formule nodig. Bijvoorbeeld. Iemand maakt 49 kilometer. De formule moet tot 40 kilometer niet tellen. Alleen de 9 dus. (49-40) 9 kilometer te betalen. Cel moet alleen laten zien als de aantal kilometers boven 40 is en hoeveel het boven 40 is. Dus in dit geval 9. Is de aantal kilometer bijvoorbeeld 21, dan moet de cel niets laten zien.
=MAX(0,A1-40)
You can try this formula if you want to return 0 if 21 is in cell A1.
=IF(A1>=40,A1-40,"")
This formula returns a blank cell if 21 is in cell A1.
- OliverScheurichGold Contributor
=MAX(0,A1-40)
You can try this formula if you want to return 0 if 21 is in cell A1.
=IF(A1>=40,A1-40,"")
This formula returns a blank cell if 21 is in cell A1.
- OlcayToCopper ContributorThis is him. Thank you very much OliverScheurich!