<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Excel Function CHOOSE on Sulprobil</title>
    <link>https://www.sulprobil.de/tags/excel-function-choose/</link>
    <description>Recent content in Excel Function CHOOSE on Sulprobil</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Wed, 03 Jun 2026 16:38:00 +0100</lastBuildDate>
    <atom:link href="https://www.sulprobil.de/tags/excel-function-choose/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Same Weekday and Calendarweek Last Year</title>
      <link>https://www.sulprobil.de/same_weekday_and_calendarweek_last_year_en/</link>
      <pubDate>Wed, 03 Jun 2026 16:38:00 +0100</pubDate>
      <guid>https://www.sulprobil.de/same_weekday_and_calendarweek_last_year_en/</guid>
      <description>&lt;h2 id=&#34;abstract&#34;&gt;Abstract&lt;/h2&gt;&#xA;&lt;p&gt;You want to determine a day about one year ago but it should be the same weekday?&#xA;You have two reasonable choices, I think:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;The same weekday and the same calendarweek of previous year:&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=B3-(52+(CALENDARWEEK(B3-MONTH(B3)+6,21)&amp;lt;&amp;gt;CALENDARWEEK(B3-MONTH(B3)-358,21)))*7&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Please note that this formula logically extends values if same calendarweek does not exist.&lt;/p&gt;&#xA;&lt;ol start=&#34;2&#34;&gt;&#xA;&lt;li&gt;Closest same weekday to direct day of source year:&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=DATE(F$2,MONTH(B3),DAY(B3))+CHOOSE(WEEKDAY(B3)-WEEKDAY(DATE(F$2,MONTH(B3),DAY(B3)))+7,1,2,3,-1,-2,-1,0,1,2,3,-3,-2,-1)&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;img src=&#34;https://www.sulprobil.de/Previous_Year_same_Weekday_and_Calendarweek.png&#34; alt=&#34;Previous_Year_same_Weekday_and_Calendarweek&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: A comprehensive documentation of my Excel implementations can be found in&#xA;&lt;a href=&#34;https://www.sulprobil.de/excel_vba_a_collection_en/&#34; title=&#34;Excel VBA A Collection&#34;&gt;Excel VBA A Collection&lt;/a&gt;.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
