+ Reply to Thread
Results 1 to 3 of 3

Finding a header for a non-blank cell

  1. #1
    Registered User
    Join Date
    12-31-2012
    Location
    Poland
    MS-Off Ver
    2016
    Posts
    58

    Finding a header for a non-blank cell

    I want to set a formula that will show a header of a non-blank cell in a row. The example is

    VjT6YG7.jpg

    The formula in column H should show a correct name:

    RhSy7M1.jpg

    What will the formula be?

  2. #2
    Registered User
    Join Date
    07-10-2014
    Location
    England
    MS-Off Ver
    Office 2010
    Posts
    13

    Re: Finding a header for a non-blank cell

    Hi buhaj47

    This formula will work as long as there is only 1 "d" in the row:
    Please Login or Register  to view this content.
    Paste it in to H3 and you can drag it down to fill the other rows.

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,904

    Re: Finding a header for a non-blank cell

    =IFERROR(INDEX($B$2:$G$2,MATCH(1,INDEX(($B3:$G3<>"")*1,0),0)),"")
    try this and copy towards down
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Find last non blank cell and return the header
    By Newbie403 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-29-2015, 12:12 PM
  2. Need to copy header row in group to all rows below header; stop if blank and repeate
    By jmcaleer10 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-18-2013, 11:09 AM
  3. Finding blank cells and pasting below each blank cell
    By lilshaq in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-01-2011, 03:50 AM
  4. Replies: 0
    Last Post: 08-25-2005, 03:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1