Started By
Message

Need some Excel help

Posted on 1/13/15 at 9:20 pm
Posted by Guess
Down The Road
Member since Jun 2009
3781 posts
Posted on 1/13/15 at 9:20 pm
I have a form that automatically updates a Google spreadsheet with a time value. I need another column to simply add 29 minutes to that time value in the corresponding row of the other column.

For example:

Start time____________________________End Time
__6:00 pm_______________________(need 6:29 pm to show here)

There is no limit, I just need the second time to show up automatically after the initial time is added to the calendar. I do know that to add time you use +Time(Hr,Min,Sec)

An easier example without time is simply

Number____________________________Number and 3
___2__________________________(I would need 5 to show up here)


I can do it for each row manually, but I need it to be done automatically soon as a new row is added from the form.
This post was edited on 1/13/15 at 9:24 pm
Posted by chrisman17
New Orleans, LA
Member since Dec 2007
1008 posts
Posted on 1/13/15 at 9:38 pm to
You'll need a macro with auto fill script or copy a "if"statement for the entire column.
Posted by Floating Change Up
Member since Dec 2013
11868 posts
Posted on 1/15/15 at 12:17 pm to
You have to create a Macro.

quote:

Sub macroNewRow()
ActiveCell.EntireRow.Select
Selection.Copy
Selection.Insert Shift:=xlDown
End Sub


If your Developer Tab is not visible, add it by customizing the toolbar ribbon under "File:Options". Once you have the developer ribbon displayed, then simply click on Developer->Insert->Form Control->Button

It will popup with the list of Macros to assign to the button. Select the macro you want. The one I have above basically copies the active row and inserts it directly below. So basically, each new row is an exact duplicate of whatever row is currently active.

You can dress this up by specifying the active range to copy from -- that way instead of relying on the user to have the "right row" highlighted, it always copies the same row and inserts it into the same place in the sheet.
first pageprev pagePage 1 of 1Next pagelast page
refresh

Back to top
logoFollow TigerDroppings for LSU Football News
Follow us on Twitter, Facebook and Instagram to get the latest updates on LSU Football and Recruiting.

FacebookTwitterInstagram