+ Reply to Thread
Results 1 to 2 of 2

Find first non-empty cell in a spreadsheet row and copy the content to a separate column

  1. #1
    Registered User
    Join Date
    05-30-2012
    Location
    Auckland, New Zealand
    MS-Off Ver
    Excel 2007
    Posts
    12

    Find first non-empty cell in a spreadsheet row and copy the content to a separate column

    I've got a fairly simple Excel spreadsheet with many rows and columns of data. Each row contains a single non-empty cell (all the rest being empty). However the column may differ row by row.

    Is there a simple way to search the rows and present the content of the non-empty cell in a single column. I have tried concatenate but wondered if there is another formulae that I can use.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Find first non-empty cell in a spreadsheet row and copy the content to a separate colu

    if its numbers or text
    =INDEX(B1:T1,MATCH(TRUE,INDEX(B1:T1<>"",0),0))
    if just numbers =LOOKUP(99^99,B1:t1)
    if just text =LOOKUP(REPT("z",255),B1:t1)
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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