{"items":["5fda1ff2ffb0f20017abdb74","5fda1ff2ffb0f20017abdb70","5fda1ff2ffb0f20017abdb71"],"styles":{"galleryType":"Columns","groupSize":1,"showArrows":true,"cubeImages":true,"cubeType":"max","cubeRatio":1.7777777777777777,"isVertical":true,"gallerySize":30,"collageAmount":0,"collageDensity":0,"groupTypes":"1","oneRow":false,"imageMargin":5,"galleryMargin":0,"scatter":0,"rotatingScatter":"","chooseBestGroup":true,"smartCrop":false,"hasThumbnails":false,"enableScroll":true,"isGrid":true,"isSlider":false,"isColumns":false,"isSlideshow":false,"cropOnlyFill":false,"fixedColumns":0,"enableInfiniteScroll":true,"isRTL":false,"minItemSize":50,"rotatingGroupTypes":"","rotatingCropRatios":"","columnWidths":"","gallerySliderImageRatio":1.7777777777777777,"numberOfImagesPerRow":3,"numberOfImagesPerCol":1,"groupsPerStrip":0,"borderRadius":0,"boxShadow":0,"gridStyle":0,"mobilePanorama":false,"placeGroupsLtr":true,"viewMode":"preview","thumbnailSpacings":4,"galleryThumbnailsAlignment":"bottom","isMasonry":false,"isAutoSlideshow":false,"slideshowLoop":false,"autoSlideshowInterval":4,"bottomInfoHeight":0,"titlePlacement":["SHOW_ON_THE_LEFT","SHOW_BELOW"],"galleryTextAlign":"center","scrollSnap":false,"itemClick":"nothing","fullscreen":true,"videoPlay":"hover","scrollAnimation":"NO_EFFECT","slideAnimation":"SCROLL","scrollDirection":0,"scrollDuration":400,"overlayAnimation":"FADE_IN","arrowsPosition":0,"arrowsSize":23,"watermarkOpacity":40,"watermarkSize":40,"useWatermark":true,"watermarkDock":{"top":"auto","left":"auto","right":0,"bottom":0,"transform":"translate3d(0,0,0)"},"loadMoreAmount":"all","defaultShowInfoExpand":1,"allowLinkExpand":true,"expandInfoPosition":0,"allowFullscreenExpand":true,"fullscreenLoop":false,"galleryAlignExpand":"left","addToCartBorderWidth":1,"addToCartButtonText":"","slideshowInfoSize":200,"playButtonForAutoSlideShow":false,"allowSlideshowCounter":false,"hoveringBehaviour":"NEVER_SHOW","thumbnailSize":120,"magicLayoutSeed":1,"imageHoverAnimation":"NO_EFFECT","imagePlacementAnimation":"NO_EFFECT","calculateTextBoxWidthMode":"PERCENT","textBoxHeight":26,"textBoxWidth":200,"textBoxWidthPercent":65,"textImageSpace":10,"textBoxBorderRadius":0,"textBoxBorderWidth":0,"loadMoreButtonText":"","loadMoreButtonBorderWidth":1,"loadMoreButtonBorderRadius":0,"imageInfoType":"ATTACHED_BACKGROUND","itemBorderWidth":0,"itemBorderRadius":0,"itemEnableShadow":false,"itemShadowBlur":20,"itemShadowDirection":135,"itemShadowSize":10,"imageLoadingMode":"BLUR","expandAnimation":"NO_EFFECT","imageQuality":90,"usmToggle":false,"usm_a":0,"usm_r":0,"usm_t":0,"videoSound":false,"videoSpeed":"1","videoLoop":true,"jsonStyleParams":"","gallerySizeType":"px","gallerySizePx":292,"allowTitle":true,"allowContextMenu":true,"textsHorizontalPadding":-30,"itemBorderColor":{"themeName":"color_12","value":"rgba(220,226,233,0)"},"showVideoPlayButton":true,"galleryLayout":2,"calculateTextBoxHeightMode":"MANUAL","targetItemSize":292,"selectedLayout":"2|bottom|1|max|true|0|true","layoutsVersion":2,"selectedLayoutV2":2,"isSlideshowFont":true,"externalInfoHeight":26,"externalInfoWidth":0.65},"container":{"width":300,"galleryWidth":305,"galleryHeight":0,"scrollBase":0,"height":null}}

# Find First Non Blank Cell in a Row

This tutorial will show you a powerful array formula to find the first non blank cell in a row in Excel.

In this example I have data in the cell range C2:K12. The formulas in column A finds the first non blank cell in each row.

The formula in cell A2 is:

**=INDEX(C2:K2,1,MATCH(1,INDEX(1-ISBLANK(C2:K2),1,0),0))**

Normally with array formulas you have to press Ctrl+Shift+Enter on your keyboard. The great thing about this array formula is that you don't need to do this.

**How this Formula Works**

The formula contains the INDEX, MATCH and ISBLANK functions. The INDEX function returns a value in an array when you specify the row or column number.

The MATCH function returns a row or column number of the value you are looking up in an array.

The ISBLANK function simply returns the Boolean values TRUE if the cell is empty and FALSE if it's not empty.

I will use the formula in cell A2 to explain how this works working from the inside out.

**INDEX(1-ISBLANK(C2:K2),1,0)**

This part of the formula looks at all the cells which are empty and not empty in the cell range C2:K2. It assigns a 1 if there is a value in a cell and 0 if there isn’t. The result returns the array {0,0,0,1,0,0,0,0,0}.

**MATCH(1,INDEX(1-ISBLANK(C2:K2),1,0),0)**

This section of the formula is saying that we want to lookup value 1 in the array {0,0,0,1,0,0,0,0,0}. The 1 in the array is in position 4 so the MATCH function will return 4.

**INDEX(C2:K2,1,MATCH(1,INDEX(1-ISBLANK(C2:K2),1,0),0))**

The INDEX function looks in the cell range C2:K2 and in the column argument of the INDEX function looks at the fourth column and returns the answer 8.

**Final Word**

I hope you have enjoyed this tutorial on how to find the first non blank cell in a row. If you have any questions or feedback on this tutorial then please leave a comment.

This cool formula is taken from a book that helps you solve 100 incredibly difficult Excel problems called Excel Gurus Gone Wild by Bill Jelen. You can see my review of this book by clicking here. You can also buy the book from my online shop or by clicking on the link below.

If you would like to see the true potential of Excel and how to create some truly magical formulas then you can download my workbook which contains 10 of the most powerful formulas with explanations of how they work. The best thing is that it is completely FREE!! Just return to the blog homepage and fill in your email address to receive a copy.

**Excel Formulas and Functions: The Complete Excel Guide for Beginners Book**

If you want to learn more on the INDEX and MATCH functions then you can buy my book called Excel Formulas and Functions: The Complete Excel Guide for Beginners here. This book shows you all the best Excel functions to use for your spreadsheets. This includes sum and count functions, lookup functions, logical functions and text functions.

**Buy the Book**