+ Reply to Thread
Results 1 to 7 of 7

adding a constant number to a column of numbers

  1. #1
    Registered User
    Join Date
    07-23-2010
    Location
    herts
    MS-Off Ver
    Excel 2003
    Posts
    12

    adding a constant number to a column of numbers

    Hi guys.

    I have a column of numbers say 1 - 10
    in another cell after i have entered the above string i want to be able to adjust them all by the same amount

    ie if i type '2' in a cell i want the column to adjust by '2'

    1,2,3,4,5,6,7,8,9,10 becomes 3,4,5,6,7,8,9,10,11,12

    Thanks in advance

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: adding a constant number to a column of numbers

    It's not very clear what you're doing exactly but if we assume you enter the "adjusting" value in A1 and have the 10 values listed beneath (A2:A11) then you can use a VBA change event

    Please Login or Register  to view this content.
    to insert the above - right click on tab on which values reside - select View Code and paste above into result window (ensuring Macros enabled thereafter)

  3. #3
    Valued Forum Contributor
    Join Date
    05-14-2009
    Location
    gold coast
    MS-Off Ver
    Excel 2007
    Posts
    843

    Re: adding a constant number to a column of numbers

    Hello,

    If you put somethink like =ROW(B1)+$C$1 In B1 and and drag it down. This will adjust by whatever is placed in C1

    cheers


    Whoot i actually used a formular where DO used code. never though ild see that come.


  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: adding a constant number to a column of numbers

    I used code because my interpretation of the question is such that:

    a) the original values need to be updated

    and

    b) the increment may be repeated

    and

    c) presuming b) holds true - the next increment would adjust the latest values as opposed to the starting values

    If the above holds true then same cell Formulae aren't viable given the Circular requirement would lead to the cells becoming Volatile which is likely to lead to unsatisfactory outputs
    (ie results will update with each calculation in Excel as opposed to only when the incrementing cell is updated)

  5. #5
    Valued Forum Contributor
    Join Date
    05-14-2009
    Location
    gold coast
    MS-Off Ver
    Excel 2007
    Posts
    843

    Re: adding a constant number to a column of numbers

    Way to burst my bubble on a folmular i spent 5min on.

  6. #6
    Registered User
    Join Date
    07-23-2010
    Location
    herts
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: adding a constant number to a column of numbers

    Thank you for your input so far.

    In actuall fact i need the numbers in the row to reset to the initial values when they are updated.

    Does this change anything?

  7. #7
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: adding a constant number to a column of numbers

    I think you need to explain the work flow more fully I'm afraid (pref. by means of example(s))

+ 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