+ Reply to Thread
Results 1 to 6 of 6

Want a simple Macro to move a cell down from a current cell

  1. #1
    Registered User
    Join Date
    09-24-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    3

    Question Want a simple Macro to move a cell down from a current cell

    hello friends,

    i am very much new to the macros. i am having a problem recording a macro hope u could help me out.

    i have quantity in one cell n the rates below that in many rows now i want to calculate the value of the quantity by multiplying it with the last rate

    i need an output in such a way that when i enter a new rate in the row at the last n then run the macro the result should be quantity multiply by the rate which i have entered last ie the last entry made by me in the bottom.

    hope u understand my problem i am developing a sheet based on this

    thanks for the help

  2. #2
    Registered User
    Join Date
    09-01-2012
    Location
    India
    MS-Off Ver
    Excel 2007/10
    Posts
    45

    Re: Want a simple Macro to move a cell down from a current cell

    only one line of code is required
    select your quantity cell.
    assuming that rates begin from immediately below this cell,

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    09-01-2012
    Location
    India
    MS-Off Ver
    Excel 2007/10
    Posts
    45

    Re: Want a simple Macro to move a cell down from a current cell

    You can even use an excel formula.
    Suppose your qty is in A1.
    Rates begin from A2 onwards.
    Put this formula in B1.

    =A1* OFFSET(A1,COUNTA(A2:A500),0)

  4. #4
    Registered User
    Join Date
    09-24-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Want a simple Macro to move a cell down from a current cell

    Thank u very much pooja for ur quick reply its working

  5. #5
    Registered User
    Join Date
    09-01-2012
    Location
    India
    MS-Off Ver
    Excel 2007/10
    Posts
    45

    Re: Want a simple Macro to move a cell down from a current cell

    glad to be of help.
    please mark this thread as solved if you are satisfied with the results.

  6. #6
    Registered User
    Join Date
    09-24-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Want a simple Macro to move a cell down from a current cell

    hey pooja thanx once again now i have a bit more query hope so u can help me out but for that i will have to send u a excel file so can u provide me ur email id or can u mail me at hariarahul at gmail dot come

    thanx

+ 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