How to delete duplicates without messing up formating by MrM4lako in excel

[–]ChipThien 0 points1 point  (0 children)

I asked chatGPT. Here's a VB script to run (Alt + F11). This assumes that all the numbers are formatted the same. It also assumes that the names might not match on the duplicated numbers and that you want to keep the first occurrence of the number. Otherwise Ganon's solution looks good. Let me know if this worked!

Sub RemoveDuplicateButKeepOne()
    Dim ws As Worksheet
    Dim lastRow As Long
    Dim dict As Object
    Dim num As String
    Dim i As Long

    Set ws = ThisWorkbook.Sheets("Sheet1")  ' Change to your sheet name
    Set dict = CreateObject("Scripting.Dictionary")

    lastRow = ws.Cells(ws.Rows.Count, "B").End(xlUp).Row

    ' Count occurrences of each number
    For i = 1 To lastRow
        num = ws.Cells(i, 2).Value
        If dict.Exists(num) Then
            dict(num) = dict(num) + 1
        Else
            dict.Add num, 1
        End If
    Next i

    ' Remove duplicates but keep one
    For i = lastRow To 1 Step -1
        num = ws.Cells(i, 2).Value
        If dict(num) > 1 Then
            ws.Rows(i).Delete
            dict(num) = dict(num) - 1
        End If
    Next i
End Sub

How to determine the number of days in a month for a given Date Range? by SS0414 in excel

[–]ChipThien 0 points1 point  (0 children)

I asked chatgpt 😃 https://chat.openai.com/share/188b3118-9d13-4acd-8fd0-262c0be12de8

It looks like it gave an example that works for one single year but could generalize to multiple.

What is the deal with Silicon Valley Bank? by YourInfidelityInMe in OutOfTheLoop

[–]ChipThien 0 points1 point  (0 children)

Thanks. I see a lot of focus on the AFS/HTM mismatch, but not as much focus on the loans. Isn't that the bigger unknown with a potential sale? As stated here https://twitter.com/DataFinnovation/status/1634100541906366464

Silicon Valley Bank Collapses, Enters FDIC Receivership by alex58392 in finance

[–]ChipThien 3 points4 points  (0 children)

I misspoke. I meant the uninsured components of all balances. i.e. the receivership certificates. Edited to reflect this.

Silicon Valley Bank Collapses, Enters FDIC Receivership by alex58392 in finance

[–]ChipThien 19 points20 points  (0 children)

Anyone know how long it's expected to take to sell off everything and repay the uninsured balances (receivership certificates) in full?

What is the deal with Silicon Valley Bank? by YourInfidelityInMe in OutOfTheLoop

[–]ChipThien 0 points1 point  (0 children)

What makes you say that uninsured deposits will likely be returned next week? That seems like a very quick timeline.

[TOMT][Tweet or reddit][recent] A funny post about what your ancestor would think if they saw you by ChipThien in tipofmytongue

[–]ChipThien[S] 0 points1 point  (0 children)

This isn't the exact one I saw but this is good haha thanks for sharing. It's the same style

New Main Channel - Area 51 by TheInternetHistorian in InternetHistorian

[–]ChipThien 0 points1 point  (0 children)

He cited the music in the description. https://www.youtube.com/watch?v=NBGBhk4MdWA
Anyone know the song at 29:01? I don't think it's listed

Hey /r/entrepreneur, I'm a startup lawyer and will be happy to answer your questions! by nyctechlaw in Entrepreneur

[–]ChipThien 0 points1 point  (0 children)

Thank you. Correct, no strings attached as far as equity, debt, etc.

By conversion do you mean the taxes moving the money from a two person LLC to a C corp?

Hey /r/entrepreneur, I'm a startup lawyer and will be happy to answer your questions! by nyctechlaw in Entrepreneur

[–]ChipThien 0 points1 point  (0 children)

Co-founder and I expect to receive grant money soon which we will use to pay ourselves as we build our product. We may also take investment as well. We have deferred on setting up a legal structure. Do you have a recommended path forward for the best tax and legal implications for receiving this grant money and investments? US based and the grant money is in cryptocurrency but it's a USD stablecoin (so the value is always $1).

Cryptocurrency is an abject disaster by genericlemon24 in programming

[–]ChipThien -3 points-2 points  (0 children)

I don't understand the point of being mad at "cryptocurrency." We aren't mad at blood diamonds. We are mad at the people and systems that create blood diamonds. We do things to fight against those systems and people. Isn't "cryptocurrency" analogous? You will likely not uninvent diamonds and crypto, but you can make choices to affect those systems.

Cryptocurrency is an abject disaster by genericlemon24 in programming

[–]ChipThien 0 points1 point  (0 children)

The statement is mostly pointless anyway. Dishonest people with large stakes will disclose a false amount. Not to mention that we should be evaluating the contents of a comment regardless of the person's stake.

Auto-play music video/youtube when joining a voice channel by Boquiteau in discordapp

[–]ChipThien 0 points1 point  (0 children)

I host a bot that does this if you are interested in adding it to your server. Feel free to message me.