+ Reply to Thread
Results 1 to 4 of 4

Adding a number to a large group of data

  1. #1
    Registered User
    Join Date
    04-28-2008
    Location
    Christchurch, New Zealand
    Posts
    8

    Talking Adding a number to a large group of data

    Hi,
    I have a problem which I think will be very basic but I cant think on how I would get on about getting it sorted. I have a large group of data and I want to add a number to every number within the group. The number to be added will be the same for all data.

    Example:

    Data: 1 2 3 4 5 6 7

    And I wish to add "5" to all of the data. So the desired result would be

    Result: 6 7 8 9 10 11 12

    Does anyone have an easier way to do this than manually updating every box?

    Many thanks in advance for all your help!!

    Regards,
    Ryan

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Ryan

    In a blank cell somewhere, enter the number 5. Then copy that cell. Highlight the original data, then go pastespecial, add. This will add the 5 to each number in the highlighted range. Remember to delete the 5 from the temp cell.

    HTH

    rylo

  3. #3
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    Assuming each number is in a seperate cell

    enter 5 into any blank cell
    Copy that cell

    Select cells that are to be increased by 5
    Select PasteSpecal
    Under the Operation option select Add
    Click OK button
    Values have now been increased by 5

    Delete the 5 you entered in step 1
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  4. #4
    Registered User
    Join Date
    04-28-2008
    Location
    Christchurch, New Zealand
    Posts
    8
    That has worked a treat. Thank you very much for your help guys!!

+ 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