offtopic:
De toolkeuze laten afhangen van 1 voor velen niet-relevant minpunt, is misschien wat overdreven. Maar dit is hier offtopic en haast flamebait. Als je een discussie wil starten over wat de beste spreadsheet-tool is: maak daar ajb een los discussietopic voor.
En @
Marc Verbeek welkom! Probeer, zeker bij huiswerk etc, ajb volgende keren bij openen van een topic aan te geven wat er aan troubleshooting is geprobeerd / wat is gezocht / etc.
Optie zonder VBA: zoals
Bezulba in "[Excel] Leeftijd uitrekenen obv. geboorte en sterfdatum" zegt 1000 jaar optellen bij beide datums.
https://www.mrexcel.com/e...l-with-dates-before-1900/If the cell contains a real date, you want to add 1,000 years. An easy way to do this is to use the EDATE function and add 12,000 months to the date. =EDATE(A4,12000) returns a date that is 1,000 years after a valid date in A4. Note that this function requires the Analysis Toolpak in versions prior to Excel 2007. If you can ensure that the Analysis Toolpak is installed, you can use =DATE(YEAR(A4)+1000,MONTH(A4),DAY(A4)) .
of
=IF(ISTEXT(B4), DATEVALUE(LEFT(B4,LEN(B4)-4) & RIGHT(B4,4)+1000), EDATE(B4,12000)) - IF(ISTEXT(A4), DATEVALUE(LEFT(A4, LEN(A4)-4) & RIGHT(A4,4)+1000), EDATE(A4,12000))
[
Voor 7% gewijzigd door
F_J_K op 08-04-2024 12:06
]
'Multiple exclamation marks,' he went on, shaking his head, 'are a sure sign of a diseased mind' (Terry Pratchett, Eric)