+ Reply to Thread
Results 1 to 8 of 8

Repeationg same data row multiple times

Hybrid View

  1. #1
    Registered User
    Join Date
    07-30-2013
    Location
    Grimstad, Norway (Southern part)
    MS-Off Ver
    Excel 2010
    Posts
    48

    Repeationg same data row multiple times

    I want to repeat the same date 24 times. The date sequence is to be generated from 1-Jan-2007 to 13-April-2013 by repeating one day, 24 times(indicating no of hours as in column B). And also it is required to calculate the mean Kt only counting non zero values for specified 24 intervals (indicated in column C).Number of Non zero values are different for each 24 hour intervals. Kindly help me. I hv attached the relevant file. Thank You very much.
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Repeationg same data row multiple times

    Dates....

    B2: 1-Jan-2007 (enter date manually)
    B3: =IF(A3=0,B2+1,B2)

    For Mean Kt, please provide the answer for the first couple of sets manually and explain how you got them, we can create the formula from there.

    If all you're wanting is the "average/mean" of the non-zero values for each day group, put this formula in D2, the copy down the entire data set:

    =IF(A2=0, AVERAGEIF(C2:C25, "<>0", C2:C25), "")
    Last edited by JBeaucaire; 09-03-2013 at 09:07 AM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    07-30-2013
    Location
    Grimstad, Norway (Southern part)
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: Repeationg same data row multiple times

    Dear Admin,
    Great, thank you very much.
    I hv illustrated how to calculate daily mean kt for first specified 24 data set and next one.I want to do the same so on so on. Here the important fact is, for the average only count non zero values. Many thanks.
    Attached Files Attached Files
    Last edited by dimuthumme; 09-03-2013 at 09:24 AM.

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Repeationg same data row multiple times

    Formula for column D was given above.

    F2, then copied down: =INDEX(D:D, MATCH(E2,B:B, 0))

  5. #5
    Registered User
    Join Date
    07-30-2013
    Location
    Grimstad, Norway (Southern part)
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: Repeationg same data row multiple times

    It's been fantastic.
    However I find N/A error after 98th row.
    Attached Files Attached Files

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Repeationg same data row multiple times

    You didn't copy the column B formula down any further than that date.

    You should also format column E the same as column B so it's easier to read.


    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  7. #7
    Registered User
    Join Date
    07-30-2013
    Location
    Grimstad, Norway (Southern part)
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: Repeationg same data row multiple times

    Yes, It's being very kind of you.
    It's my fault. I got corrected.

  8. #8
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Repeationg same data row multiple times

    I've marked this thread as SOLVED for you.
    Next time, select Thread Tools from the links above to mark a thread as SOLVED. Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 09-18-2012, 10:21 PM
  2. Macro to copy data multiple times
    By TheVril in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-19-2012, 11:31 AM
  3. copy a row multiple times according to a range of data
    By stakar in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-25-2009, 10:25 AM
  4. Print a certificate multiple times with different data
    By scoreed in forum Excel General
    Replies: 4
    Last Post: 09-15-2007, 08:48 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