• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Find the non-blank cell in a range and display the value of the cell

Kully Rai

New Member
Hi,

This seems straight forward but i am struggling to find a formula for this. I have data in rows and not all of the cells have data in them. For each row, i want to look up the range (i.e. A4:F4) and return the value from the last non-blank cell.

Could anyone please help?
 
Hi,

This seems straight forward but i am struggling to find a formula for this. I have data in rows and not all of the cells have data in them. For each row, i want to look up the range (i.e. A4:F4) and return the value from the last non-blank cell.

Could anyone please help?
Hi,

Try this. Drag down as required.

=LOOKUP(2,1/(A4:F4<>""),A4:F4)
 
@Kully Rai,

Hi,

With your data in second row, from A2 to H2, use this with Ctrl Shift Enter

=INDEX(B2:H2,MAX(ISBLANK(B2:H2)*COLUMN(B2:H2)))

See this file.
 

Attachments

  • Last Col.xlsx
    9.1 KB · Views: 5
Thank you both for the formulas. The Index formula worked for most of the rows but some came back with error for some reason and i couldn't see why. The Lookup formula also worked - thank you!
 
Back
Top