+ Reply to Thread
Results 1 to 4 of 4

problem in looping

Hybrid View

  1. #1
    Registered User
    Join Date
    12-07-2012
    Location
    germany
    MS-Off Ver
    Excel 2003
    Posts
    2

    problem in looping

    Hallo All,

    I am new to excel and having problems in looping with macros.
    I have a worksheet which has 2 columns.
    each cell in a column needs to be operated with cells in other column. (for eg A+B)
    but im not able to make a code for this task.

    A B C D E F G H
    12 7 19 30 and so on..........
    23 2 14 25
    45 3 15 26
    65 6 18 29
    45 1 13 24
    34 4 16 27

    I need to do this for three columns but i'm having problems with two only.
    i know it sounds bit stupid but i'll really appreciate your help.
    Thanks in advance.

    katie

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: problem in looping

    You say that your worksheet has 2 columns, but the sample data that you populated shows multiple columns. Where do you need the output to show?

    You can achieve this via formula, why do you want to do it via code?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    12-07-2012
    Location
    germany
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: problem in looping

    actually C is sum of A and B with A!1 fixed.
    D is sum of A and B with A2 fixed. and so on.
    I have 3 such columns and i am not sure it can be done via formula.
    a friend of mine told me it can only be done by VB
    Last edited by katie1987; 12-07-2012 at 06:50 AM.

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: problem in looping

    No, you didnt reply here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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