Mr Excel & excelisfun Trick 185: Get Text Between First & Last Dash: 4 Methods

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 พ.ย. 2024

ความคิดเห็น • 25

  • @Victor-ol1lo
    @Victor-ol1lo 7 ปีที่แล้ว

    Give Mike a problem and he will deliver a perfect solution, really great !!! The PQ solution is my surely the best, but the formula the coolest solution. Thanks, Thumbs UP !!!

  • @zaighamuddinfarooqui1705
    @zaighamuddinfarooqui1705 7 ปีที่แล้ว +1

    Mike you are the "Formula King" !!! :)

  • @ericozman3544
    @ericozman3544 7 ปีที่แล้ว

    Can't express enough appreciation for how your solutions prompt us to attempt or own. Here is my own VBA solution:
    Sub StrComparison()
    For Each cell In Sheet1.Range("D1:D50")
    If Len(cell.Value) > 0 Then
    Length = Len(cell.Value)
    PosFromEnd = InStrRev(cell.Value, "-", -1, 1) - 1
    NoLastDash = Mid(cell.Value, 1, PosFromEnd)
    FirstDash = InStr(1, NoLastDash, "-") + 1
    FinalStr = Mid(NoLastDash, FirstDash, 50)
    Debug.Print Length, PosFromEnd, NoLastDash, FirstDash, FinalStr
    End If
    Next cell
    End Sub

  • @Luciano_mp
    @Luciano_mp 7 ปีที่แล้ว

    Mike você é o cara, quantas dicas, muito obrigado.

    • @excelisfun
      @excelisfun  7 ปีที่แล้ว

      You are welcome for the tips!

  • @rrrprogram8667
    @rrrprogram8667 7 ปีที่แล้ว

    Good Good Good.... was a good revision for how to use substitute and replace function....
    Thanks

    • @excelisfun
      @excelisfun  7 ปีที่แล้ว +1

      Glad it was good for you : )

  • @adamyaxley5969
    @adamyaxley5969 7 ปีที่แล้ว

    Hi all your videos are so helpful. I have a problem that I cant get to grips with I want to
    sum amounts using the today's date only can you direct me to the best video to do this. Many thanks

  • @levelzero3D
    @levelzero3D 7 ปีที่แล้ว

    OMG! Awesome Intro!

    • @excelisfun
      @excelisfun  7 ปีที่แล้ว

      Glad you like it! : )

  • @bluxer4225
    @bluxer4225 7 ปีที่แล้ว

    В этот раз Вы превзошли сами себя!

  • @Meolimo
    @Meolimo 7 ปีที่แล้ว +1

    Merci les gars ;-)
    Thanks guys !!

    • @excelisfun
      @excelisfun  7 ปีที่แล้ว +1

      You are welcome!

  • @krn14242
    @krn14242 7 ปีที่แล้ว +1

    Thanks Mike

    • @excelisfun
      @excelisfun  7 ปีที่แล้ว

      You are welcome, WRH!!!

  • @billisnice
    @billisnice 7 ปีที่แล้ว

    What about a routine to move rows from sheet1 to different tabs based on cell(s) values?

    • @excelisfun
      @excelisfun  7 ปีที่แล้ว

      Maybe VBA. Try posting here: mrexcel.com/forum

  • @javadkhalilarjmandi3906
    @javadkhalilarjmandi3906 7 ปีที่แล้ว

    hello,
    I have one problem,
    i wanna Subtract two cell .one cell(that show time for example 13:00)and other cell is current time(now() function) .and i wanna Subtract them.and then use if function and write: if the difference between two times(two cell)is less than 1 hour then do "this", how can I do that?anybody knows?

    • @josdiepenbeek469
      @josdiepenbeek469 7 ปีที่แล้ว +1

      You don't need an extra cell for the current time, use the TODAY() function.
      A combination from the IF and the TODAY() functions will solve your problem.
      Google is your friend: www.ablebits.com/office-addins-blog/2014/11/26/if-function-excel/

    • @javadkhalilarjmandi3906
      @javadkhalilarjmandi3906 7 ปีที่แล้ว

      oh thanks, and by the way that was a great website,

  • @MohamedAlyCLAY
    @MohamedAlyCLAY 7 ปีที่แล้ว

    why you use alt + enter in your formula !!

    • @excelisfun
      @excelisfun  7 ปีที่แล้ว +1

      Just to add a line so that the formula was easier to read because it is not so long.

  • @BillSzysz1
    @BillSzysz1 7 ปีที่แล้ว

    👍👍👍 :-))))

    • @excelisfun
      @excelisfun  7 ปีที่แล้ว

      Thanks, Poet PQ : )