<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>[discussion topic goes here] by COLLIN POON</title>
      <link>https://padlet.com/collinpoon2023/hewwo</link>
      <description>Post your response to the discussion topic by clicking the plus button below.</description>
      <language>en-us</language>
      <pubDate>2025-05-14 00:59:01 UTC</pubDate>
      <lastBuildDate>2025-05-14 09:57:06 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url>https://padlet.net/icons/png/1f4ac.png</url>
      </image>
      <item>
         <title></title>
         <author>collinpoon2023</author>
         <link>https://padlet.com/collinpoon2023/hewwo/wish/3449431209</link>
         <description><![CDATA[<p>Sub AddEntryToDataSheet()</p><p>    Dim entrySheet As Worksheet</p><p>    Dim dataSheet As Worksheet</p><p>    Dim inputCell As Range</p><p>    Dim nextRow As Long</p><p>    Dim inputValue As String</p><p>    Set entrySheet = ThisWorkbook.Sheets("Sheet1") ' Form sheet</p><p>    Set dataSheet = ThisWorkbook.Sheets("Sheet2")  ' Data sheet</p><p>    Set inputCell = entrySheet.Range("B2")         ' Where user enters value</p><p>    inputValue = Trim(inputCell.Value)</p><p>    ' Check if user entered something</p><p>    If inputValue = "" Then</p><p>        MsgBox "Please enter a code in cell B2.", vbExclamation</p><p>        Exit Sub</p><p>    End If</p><p>    ' Find next empty row in Sheet2 Column A</p><p>    nextRow = dataSheet.Cells(dataSheet.Rows.Count, 1).End(xlUp).Row + 1</p><p>    If dataSheet.Cells(1, 1).Value = "" Then nextRow = 1 ' Handle if sheet is completely blank</p><p>    ' Paste the entry</p><p>    dataSheet.Cells(nextRow, 1).Value = inputValue</p><p>    ' Optional: clear input</p><p>    inputCell.ClearContents</p><p>    MsgBox "Code '" &amp; inputValue &amp; "' added to data sheet!", vbInformation</p><p>End Sub</p><p><br/></p>]]></description>
         <enclosure url="" />
         <pubDate>2025-05-14 01:04:58 UTC</pubDate>
         <guid>https://padlet.com/collinpoon2023/hewwo/wish/3449431209</guid>
      </item>
      <item>
         <title></title>
         <author>collinpoon2023</author>
         <link>https://padlet.com/collinpoon2023/hewwo/wish/3449736843</link>
         <description><![CDATA[<p>=IF(SUMPRODUCT((A2&gt;=Sheet2!A:A)*(A2&lt;=Sheet2!B:B))&gt;0, 1, 0)</p><p><br/></p>]]></description>
         <enclosure url="" />
         <pubDate>2025-05-14 03:27:56 UTC</pubDate>
         <guid>https://padlet.com/collinpoon2023/hewwo/wish/3449736843</guid>
      </item>
      <item>
         <title></title>
         <author>collinpoon2023</author>
         <link>https://padlet.com/collinpoon2023/hewwo/wish/3449749235</link>
         <description><![CDATA[<p>=IF(AND(A2&gt;=Sheet2!A1, A2&lt;=Sheet2!B1), 1, 0)</p><p><br/></p><p><br/></p>]]></description>
         <enclosure url="" />
         <pubDate>2025-05-14 03:35:19 UTC</pubDate>
         <guid>https://padlet.com/collinpoon2023/hewwo/wish/3449749235</guid>
      </item>
      <item>
         <title></title>
         <author></author>
         <link>https://padlet.com/collinpoon2023/hewwo/wish/3450159649</link>
         <description><![CDATA[<p>=XLOOKUP(L31,'Invoice '!$B$3:$B$300,XLOOKUP('ICSS Revenue Analysis '!R11,'Invoice '!$E$3:$E$300,'Invoice '!$O$3:$O$300))</p>]]></description>
         <enclosure url="" />
         <pubDate>2025-05-14 07:54:59 UTC</pubDate>
         <guid>https://padlet.com/collinpoon2023/hewwo/wish/3450159649</guid>
      </item>
      <item>
         <title></title>
         <author>collinpoon2023</author>
         <link>https://padlet.com/collinpoon2023/hewwo/wish/3450259715</link>
         <description><![CDATA[<p>Sub InsertDynamicFormulaEvery5Rows()</p><p>    Dim ws As Worksheet</p><p>    Set ws = ActiveSheet</p><p>    Dim startCell As Range</p><p>    Set startCell = ws.Range("B2") ' Start point for formula</p><p>    Dim i As Long</p><p>    Dim numRepeats As Long</p><p>    numRepeats = 20 ' Number of times to paste</p><p>    For i = 0 To numRepeats - 1</p><p>        Dim targetRow As Long</p><p>        targetRow = startCell.Row + i * 5</p><p>        ' Build a formula that references column A of the current row</p><p>        Dim formulaText As String</p><p>        formulaText = "=A" &amp; targetRow &amp; "+1" ' Change logic here as needed</p><p>        ' Place the formula using Formula2 to avoid @ symbol</p><p>        ws.Cells(targetRow, startCell.Column).Formula2 = formulaText</p><p>    Next i</p><p>    MsgBox "Dynamic formulas inserted every 5 rows from " &amp; startCell.Address</p><p>End Sub</p><p><br/></p>]]></description>
         <enclosure url="" />
         <pubDate>2025-05-14 09:11:16 UTC</pubDate>
         <guid>https://padlet.com/collinpoon2023/hewwo/wish/3450259715</guid>
      </item>
      <item>
         <title></title>
         <author></author>
         <link>https://padlet.com/collinpoon2023/hewwo/wish/3450283267</link>
         <description><![CDATA[<p>=XLOOKUP($A11,'Ad-Hoc Pivot Table'!$E$4:$E$219,XLOOKUP('ICSS Revenue Analysis '!G$10,'Ad-Hoc Pivot Table'!$F$3:$J$3,'Ad-Hoc Pivot Table'!$F$4:$J$219,0),0)</p>]]></description>
         <enclosure url="" />
         <pubDate>2025-05-14 09:29:43 UTC</pubDate>
         <guid>https://padlet.com/collinpoon2023/hewwo/wish/3450283267</guid>
      </item>
      <item>
         <title></title>
         <author>collinpoon2023</author>
         <link>https://padlet.com/collinpoon2023/hewwo/wish/3450286673</link>
         <description><![CDATA[<p>Sub InsertNestedXLOOKUP_Every5Rows()</p><p>    Dim ws As Worksheet</p><p>    Set ws = ThisWorkbook.Sheets("ICSS Revenue Analysis") ' or ActiveSheet if preferred</p><p>    Dim startCell As Range</p><p>    Set startCell = ws.Range("B11") ' Starting cell</p><p>    Dim i As Long</p><p>    Dim numRepeats As Long: numRepeats = 20 ' Set how many times you want it inserted</p><p>    For i = 0 To numRepeats - 1</p><p>        Dim targetRow As Long</p><p>        targetRow = startCell.Row + i * 5</p><p>        Dim formulaText As String</p><p>        formulaText = "=XLOOKUP($A" &amp; targetRow &amp; ",'Ad-Hoc Pivot Table'!$E$4:$E$219," &amp; _</p><p>                      "XLOOKUP('ICSS Revenue Analysis '!G$10," &amp; _</p><p>                      "'Ad-Hoc Pivot Table'!$F$3:$J$3,'Ad-Hoc Pivot Table'!$F$4:$J$219,0),0)"</p><p>        ws.Cells(targetRow, startCell.Column).Formula2 = formulaText</p><p>    Next i</p><p>    MsgBox "Nested XLOOKUP inserted every 5 rows starting from " &amp; startCell.Address</p><p>End Sub</p><p><br/></p>]]></description>
         <enclosure url="" />
         <pubDate>2025-05-14 09:32:29 UTC</pubDate>
         <guid>https://padlet.com/collinpoon2023/hewwo/wish/3450286673</guid>
      </item>
      <item>
         <title></title>
         <author>collinpoon2023</author>
         <link>https://padlet.com/collinpoon2023/hewwo/wish/3450307674</link>
         <description><![CDATA[<p>Sub PasteFormula_GColumn_Offset2RowsUp_SingleLine()</p><p>    Dim ws As Worksheet</p><p>    Set ws = ActiveSheet ' Or: ThisWorkbook.Sheets("ICSS Revenue Analysis")</p><p>    Dim startCell As Range</p><p>    Set startCell = ws.Range("G13") ' Start here</p><p>    Dim numRepeats As Long: numRepeats = 20</p><p>    Dim i As Long</p><p>    For i = 0 To numRepeats - 1</p><p>        Dim pasteRow As Long</p><p>        pasteRow = startCell.Row + i * 5</p><p>        Dim lookupRow As Long</p><p>        lookupRow = pasteRow - 2 ' Reference 2 rows above in column A</p><p>        Dim formulaText As String</p><p>        formulaText = "=XLOOKUP($A" &amp; lookupRow &amp; ",'Ad-Hoc Pivot Table'!$E$4:$E$219,XLOOKUP('ICSS Revenue Analysis '!G$10,'Ad-Hoc Pivot Table'!$F$3:$J$3,'Ad-Hoc Pivot Table'!$F$4:$J$219,0),0)"</p><p>        On Error Resume Next</p><p>        ws.Cells(pasteRow, startCell.Column).Formula2 = formulaText</p><p>        If Err.Number &lt;&gt; 0 Then</p><p>            ws.Cells(pasteRow, startCell.Column).Formula = formulaText</p><p>            Err.Clear</p><p>        End If</p><p>        On Error GoTo 0</p><p>    Next i</p><p>    MsgBox "Formulas pasted in G13, G18, G23... with references to A11, A16, A21, etc."</p><p>End Sub</p>]]></description>
         <enclosure url="" />
         <pubDate>2025-05-14 09:48:24 UTC</pubDate>
         <guid>https://padlet.com/collinpoon2023/hewwo/wish/3450307674</guid>
      </item>
   </channel>
</rss>
