+ Reply to Thread
Results 1 to 5 of 5

Formula to find first empty cell in row and next empty cell in row

Hybrid View

  1. #1
    Registered User
    Join Date
    03-10-2004
    Posts
    45

    Formula to find first empty cell in row and next empty cell in row

    Ok, not sure if this can be done in a formula but was hoping a guru could help me out with finding the first empty cell in a row of data and the next empty cell in the same row of data. Can this be done with a formula or am I looking at having to code this.
    Thank you,
    Michael
    Last edited by Michael Wise; 06-24-2010 at 11:07 AM.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,523

    Re: Formula to find first empty cell in row and next empty cell in row

    Check this out
    http://excel.tips.net/Pages/T002103_..._a_Column.html

  3. #3
    Registered User
    Join Date
    03-10-2004
    Posts
    45

    Re: Formula to find first empty cell in row and next empty cell in row

    Dave, thank you for the URL. After reading and trying a couple variations of this particular one =INDIRECT("B"&MAX(ROW(1:65535)*(B1:B65535<>""))) but i'm having difficulty converting it from a column view to a row view. In this instance it finds the last cell in a COLUMN with data in it. I do not have the brain power to understand how to covert this to find the First empty cell and another conversion to find the next empty cell. I'm working on it but have yet to resolve. Thank you for any further assistance. Currently trying to reverse engineer the formula referenced above.

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

    Re: Formula to find first empty cell in row and next empty cell in row

    first empty cell is =MATCH(TRUE,INDEX(C1:J1="",0),0)
    "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

  5. #5
    Registered User
    Join Date
    03-10-2004
    Posts
    45

    Re: Formula to find first empty cell in row and next empty cell in row

    Thank you martindwilson, with the =MATCH(TRUE,INDEX(C1:J1="",0),0) I was able to use this in a series of columns in the same row adjusting where C1 progressed and using a Max at the end column to. I have attached the file to show how this was taken care of.
    Attached Files Attached Files
    Last edited by Michael Wise; 06-24-2010 at 11:18 AM.

+ 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