Excel User Group
Microsoft Excel blogs, forums, files. Read, ask questions, provide answers.

Update Excel first blank column in row?

Latest post Sat, Jun 28 2008 5:04 AM by Nick Hodge. 1 replies.
  • Fri, Jun 27 2008 8:32 PM

    • jenawade
    • Top 500 Contributor
    • Joined on Fri, Jun 27 2008
    • Posts 1
    • Points 21

    Update Excel first blank column in row?

    On an Excel sheet called 'CUT LIST' I need a button, called 'UPDATE'. When that button is click, it should do the following on the sheet called 'DATA' (in the same workbook):

    Look for the rows with the word 'DUE' in column P.

    *Those were lawns that were to be cut and are now complete. This is to update the data sheet to show these are now complete, as of today (when the Update button was clicked).

    For every one of the rows with DUE shown in col. P, find the first blank cell in that row (going left to right).

    *So, in the first row shown as DUE, row 7, the first blank column/cell is J. The next row shown as DUE, row 13, the first blank column/cell is N, etc.

    And finally, in those first blank columns along those DUE rows (J7, N13, H15, etc) enter/choose "Done - *Owe" from the validation dropdown list, and in the very next cell to the right of that, enter todays date.

    Does anyone know how I can accomplish this?

    Thanks!
    Jen
    • Post Points: 21
  • Sat, Jun 28 2008 5:04 AM In reply to

    • Nick Hodge
    • Top 10 Contributor
    • Joined on Sun, Dec 23 2007
    • Southampton
    • Posts 297
    • Points 4,959
    • MVP

    Re: Update Excel first blank column in row?

    Jen

    Wow, that's a full application, have you made a start?

    What I am struggling to understand is the part that says

    jenawade:

    enter/choose "Done - *Owe" from the validation dropdown list

    Who chooses this? Once the code runs it is modal and therefore has to complete. There is no possibility of user actions midway through. You could run the code multiple times, as the one just run would no longer be "Due" and certainly a DV list could be populated to do this.

    I can visualise this sheet and fear you have it set up badly, but that's how it is.

    Let us know what you have done so far and the answer to the quoted question

     

    Regards
    Nick Hodge
    Microsoft MVP, Excel
    Southampton, UK

    • Post Points: 5
Page 1 of 1 (2 items) | RSS
Copyright Excel User Group and the relevant contributors, 2008. All Trade Marks acknowledged. This site is a peer-to-peer site and NOT affiliated in any way to Microsoft Corp. All rights reserved.