Results 1 to 10 of 10

Macro to sum selected cells into a new row - size and positions ARE RELATIVE

Threaded View

  1. #1
    Registered User
    Join Date
    08-17-2013
    Location
    Prague
    MS-Off Ver
    Excel 2003
    Posts
    20

    Macro to sum selected cells into a new row - size and positions ARE RELATIVE

    Hi guys after great experience with the geniuses on this forum iam asking for more of your time and expertise to solve this little porblem… iam to newbie in excel to figure this out myself… if somebody find some time to look at this i would be very thankfull

    Iam working on a bit advanced food diary… ill show you on pictures what i would need if anyone have a bit of time to help me please…

    check the attached diagrams and the sample excel (had to use xlsx or some functionality error pops-up)...

    As you can see from diagrams i need quite a simple macro that will take a manually selected region (which will be sometimes 1 line, sometimes 2 or more so it has to be flexible) and SUM the columns of the selected region into new row of cells which will be positioned relatively to the position of the source region…

    The main trouble is the relative size of the source region (sometimes i will select 1 line sometimes more) and the generated row with SUM of values must be always positioned relatively to the currently used region - always relatively to the top line, right corner of the source region…

    plaease check the pictures and maybe if you can… post a macro code that i can paste into macro editor and assign a simple shortcut that will trigger the macro AFTER i manually select the region i want to SUM

    any help greatlly apreciated… thanks everyone

    macro03.gifmacro02.gifmacro01.gifmacro_sample.xlsx
    Last edited by macropulos; 08-28-2013 at 01:59 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Change positions of cells in selected area
    By MFranzen in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-08-2009, 12:59 PM
  2. Draw an arrow equal the size of the selected cells
    By koticphreak in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 09-24-2008, 04:08 AM
  3. Return ALL relative positions of a value within an array
    By bekaii in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-19-2007, 07:37 PM
  4. [SOLVED] Relative positions from a button
    By Steve in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-16-2006, 12:45 PM
  5. [SOLVED] How do I sum using relative cell positions?
    By DavidB in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-26-2005, 11:06 PM

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