Formula: First non blank after last blank cell in Range

Поделиться
HTML-код
  • Опубликовано: 16 июл 2024
  • Each row has both blank and no-blank cells, for all you know it could be delivery information where days with no deliveries are blank and delivery days are non-blank. Our task is to return the first delivery after the last non-delivery day in the range
    Link to workbook:
    docs.google.com/spreadsheets/...
    00:00 Introduction and background
    01:47 Using XLOOKUP function
    02:40 Address function to confirm XLOOKUP
    04:10 Circular reference error
    05:16 Fixing the circular reference error
    06:40 Method 2 -Using XMATCH
    08:30 Making the formula spill
    09:56 Concluding thoughts

Комментарии • 19

  • @GrainneDuggan_Excel
    @GrainneDuggan_Excel 4 месяца назад +2

    ❤ thanks Victor. Your BYROW explanation is the clearest I have seen.

    • @ExcelMoments
      @ExcelMoments  4 месяца назад +1

      Thanks, Grainne, for the compliment. I am glad it helps you understand.

  • @jazzista1967
    @jazzista1967 4 месяца назад +1

    Victor.... my mind just exploded this early morning ... I think i have to rewatch the video 10 more times to understand the logic ......hahaha...

  • @excelpro365_1
    @excelpro365_1 4 месяца назад +1

    What a great welcome from GES.

  • @IvanCortinas_ES
    @IvanCortinas_ES 4 месяца назад +1

    I start watching a new video of Victor and I think... (there's no way he'll surprise me again).
    Well, he surprises me twice. Highly recommended. Thank you.

    • @ExcelMoments
      @ExcelMoments  4 месяца назад

      Thanks Ivan for your kind words

  • @stevereed5776
    @stevereed5776 4 месяца назад +1

    Thanks Victor.

  • @nadermounir8228
    @nadermounir8228 4 месяца назад +1

    Perfect Video 📹 👌 Thank you Victor

  • @Softwaretrain
    @Softwaretrain 4 месяца назад +1

    Great challenge Victor, I came up with other solutions as below:
    =IFERROR(INDEX(B5:K5,XMATCH(,B5:K5,,-1)+1),"")
    =IFERROR(INDEX(B5:K5,MATCH(2,IF(B5:K5="",1,""))+1),"")
    =IFERROR(INDEX(B5:K5,MAX((B5:K5="")*SEQUENCE(,COLUMNS(B5:K5)))+1),"")
    =IFERROR(TAKE(DROP(XLOOKUP(,B5:K5,B5:K5,,,-1):K5,,1),,1),"")
    =LOOKUP(2,HSTACK(1,IF(B5:K5="",1,"")),B5:K5)
    =IFERROR(INDEX(B5:K5,MAX((B5:K5="")*COLUMN(B5:K5))),"")
    =IFERROR(CHOOSECOLS(B5:K5,MAX((B5:K5="")*COLUMN(B5:K5))),"")
    =IFERROR(INDEX(B5:K5,XMATCH(TRUE,LEN(B5:K5)=0,,-1)+1),"")

    • @ExcelMoments
      @ExcelMoments  4 месяца назад

      Excellent Alternatives. I love all of them.

  • @williamarthur4801
    @williamarthur4801 4 месяца назад +1

    I slightly misunderstood, and thought I was supposed to get the last available for 'Jumper cables', I used
    Indirect inside offset,
    LET( o, OFFSET( INDIRECT( CELL("address", XLOOKUP(TRUE,ISBLANK(F4:O4),F4:O4,,0,-1))),0,1),
    p, XLOOKUP(FALSE,ISBLANK(F4:O4),F4:O4,,0,-1), IF( O4="",p,o))
    One thing, I did not know that was hwo you looked up blank in xmatch,, just skip, I have tried using
    using "" of course got NA and just gave up, so thanks for that.

    • @ExcelMoments
      @ExcelMoments  4 месяца назад +1

      Yea, one of the simple tricks that can go unnoticed

  • @raymondchew1331
    @raymondchew1331 4 месяца назад +1

    Thanks Sir! Could I know whether we can use CHOOSEROWS instead of FILTER function? CHOOSECOLS is used in this video to extract the columns we want. This makes me think CHOOSEROWS to replace FILTER

  • @excelenthusiasts
    @excelenthusiasts 4 месяца назад +1

    Hi,
    Assuming the dates in row 4 are consecutive, this formula works as well
    =XLOOKUP(XLOOKUP(TRUE,B5:K5="",$B$4:$K$4,,,-1)+1,$B$4:$K$4,B5:K5,"")
    Hope this helps.

    • @ExcelMoments
      @ExcelMoments  4 месяца назад

      Thanks, Ashish, It's always good to hear from you. great formula, once that assumption holds true

    • @excelenthusiasts
      @excelenthusiasts 4 месяца назад

      @@ExcelMoments Thank you.