Consulting

Results 1 to 5 of 5

Thread: function operations

  1. #1
    VBAX Regular
    Joined
    Mar 2013
    Posts
    13
    Location

    function operations

    hey guys

    just a quick question, when given a column of values, i want to create a function that performs a specific operation for all of the cells, for e.g. add 1 to the value then log it. any tips?

  2. #2
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    Log it where?
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

  3. #3
    Mac Moderator VBAX Guru mikerickson's Avatar
    Joined
    May 2007
    Location
    Davis CA
    Posts
    2,778
    A function takes inputs and returns values.

    It sounds like the CSE formula =A1:A1000 +1 will do what you want, but the question is where would you like those results displayed.

  4. #4
    VBAX Regular
    Joined
    Feb 2009
    Posts
    9
    Location
    It seems you're looking for paste special:
    http://www.contextures.com/xlDataEntry04.html

  5. #5
    Knowledge Base Approver VBAX Wizard
    Joined
    Apr 2012
    Posts
    5,645
    [VBA]Sub M_snb()
    [A1:A4] = [index(A1:A4+1,)]
    End Sub[/VBA]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •