Hello,
I need help with a formula, i want to get a sprint number, if a given date of a workshop is within a sprint cycle.
i wanted to use sumproduct,but i wont get the proper answer. Maybe i am missing something.
Can you take a short look over my example, wher i am going wrong?
kind regards stefan
Lookup between two dates
-
- 4StarLounger
- Posts: 419
- Joined: 29 Mar 2010, 11:50
- Location: Vienna, Austria
Lookup between two dates
You do not have the required permissions to view the files attached to this post.
-
- Administrator
- Posts: 79694
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Lookup between two dates
You switched <= and >=.
=SUMPRODUCT(($C$3:$C$111<=$G$3)*($D$3:$D$111>=$G$3)*$B$3:$B$111)
In German:
=SUMMENPRODUKT(($C$3:$C$111<=$G$3)*($D$3:$D$111>=$G$3)*$B$3:$B$111)
If you have Microsoft 365, Office 2021 or Office 2024, you can also use
=FILTER(B3:B111, (C3:C111<=G3)*(D3:D111>=G3), "No Match")
In German, use ; instead of ,
If you have an older version:
=IFERROR(INDEX(B3:B111, MATCH(1, (C3:C111<=G3)*(D3:D111>=G3), 0)), "No Match")
In German:
=WENNFEHLER(INDEX(B3:B111; VERGLEICH(1; (C3:C111<=G3)*(D3:D111>=G3); 0)); "No Match")
=SUMPRODUCT(($C$3:$C$111<=$G$3)*($D$3:$D$111>=$G$3)*$B$3:$B$111)
In German:
=SUMMENPRODUKT(($C$3:$C$111<=$G$3)*($D$3:$D$111>=$G$3)*$B$3:$B$111)
If you have Microsoft 365, Office 2021 or Office 2024, you can also use
=FILTER(B3:B111, (C3:C111<=G3)*(D3:D111>=G3), "No Match")
In German, use ; instead of ,
If you have an older version:
=IFERROR(INDEX(B3:B111, MATCH(1, (C3:C111<=G3)*(D3:D111>=G3), 0)), "No Match")
In German:
=WENNFEHLER(INDEX(B3:B111; VERGLEICH(1; (C3:C111<=G3)*(D3:D111>=G3); 0)); "No Match")
Best wishes,
Hans
Hans
-
- 5StarLounger
- Posts: 619
- Joined: 14 Nov 2012, 16:06
Re: Lookup between two dates
=INDEX(B3:B111;MATCH(G3;C3:C111;1)+1)
-
- 4StarLounger
- Posts: 419
- Joined: 29 Mar 2010, 11:50
- Location: Vienna, Austria
Re: Lookup between two dates
Ahhhhh, thank you so much, Hans!
& SNB
& SNB
-
- 5StarLounger
- Posts: 619
- Joined: 14 Nov 2012, 16:06
Re: Lookup between two dates
Since there's some regularity in your data:
=B3+INT((G3-C3)/14)+1
=B3+INT((G3-C3)/14)+1