Warm tip: This article is reproduced from serverfault.com, please click

Sum with Datedif Formula

发布于 2020-11-28 05:15:35

Ihave a formula like this

=IF(DATEDIF(D4;DATE(2014;8;31);"Y")>15;DATEDIF(D4;DATE(2014;8;31);"Y")*12500+VLOOKUP(VALUE(LEFT(C4;1));$U$22:$Z$25;7;FALSE);0)

But returned a #REF! results, can you tell me what's wrong on this formula?

Questioner
Oryza Sativae
Viewed
11
Máté Juhász 2020-11-28 13:54:13

One obvious mistake I see is here :

VLOOKUP(VALUE(LEFT(C4;1));$U$22:$Z$25;7;FALSE

$U$22:$Z$25 has only 6 columns but you want to get value from the 7th.