+ Reply to Thread
Results 1 to 8 of 8

does excel know how to add five... o.o

Hybrid View

  1. #1
    Registered User
    Join Date
    06-28-2010
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    5

    does excel know how to add five... o.o

    Hi,

    I have a HUGE column of heart rate data, every 2 secs the heart rate for about an hour. I have tanken an average for every ten seconds in a separate column. But I need to put all this into one uninterrupted column so I can put it next to other data that I have.

    At first I tried typing in a new column, for example, =J20 then =J25, then =J30 etc and dragging this formula down in the hope it would continue the pattern adding five each time. It didn't

    Then I thought, oh i'll try making a macro. So I made a column with basically the five times table running down, and recorded adding =J to the beginning of the first. I tried running this on the next, but it changed the number next to it too.

    I have never used macros, and I have so much data here, and hours and hours more of this heart rate data to process in this way - I desperately need to find a way to not have to do it all manually...

    I hope I have explained the situation clearly... any help is very very greatly appreciated!

    Thank you in advance

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    re: does excel know how to add five... o.o

    Try: =INDIRECT("J"&15+ROW(A1)*5)

    Copied down.

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,482

    re: does excel know how to add five... o.o

    Assumes list start at A20 and output in B20

    =INDEX($A$20:$A$49,((ROW()-ROW($A$20))*5)+1,1)
    Cheers
    Andy
    www.andypope.info

  4. #4
    Registered User
    Join Date
    06-28-2010
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    5

    re: does excel know how to add five... o.o

    The data starts in J70, J75, J80 etc, and I want to put it into like, L2, L3, L4 etc... how do I modify these formulas to do that? Doesn't seem to work as they are

    Thank you so much for your replies!!

  5. #5
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    re: does excel know how to add five... o.o

    Try: =INDIRECT("J"&65+ROW(A1)*5)

    In L2 copied down.

    Dom

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,482

    re: does excel know how to add five... o.o

    In L2

    =INDEX($J$70:$J$300,((ROW()-ROW($L$2))*5)+1,1)

  7. #7
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,008

    re: does excel know how to add five... o.o

    If you want a simple way...
    Enter the following:
    In L2: zzJ70
    In L3: zzJ75

    select both and fill down as far as required (you should see zzJ80, xxJ85 etc). With the cells still selected, press Ctrl+H to bring up the replace dialog and enter:
    Find: zz
    Replace: =

    and press Replace All.
    Everyone who confuses correlation and causation ends up dead.

  8. #8
    Registered User
    Join Date
    06-28-2010
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: does excel know how to add five... o.o

    Aah perfect, thank you so much Why didn't I think of that, it's so obvious -_-

+ 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