+ Reply to Thread
Results 1 to 6 of 6

Average of cells with rept formula

  1. #1
    Registered User
    Join Date
    09-08-2012
    Location
    endsmix gypsum
    MS-Off Ver
    Excel 2010
    Posts
    3

    Average of cells with rept formula

    Hi...

    I'm... VERY... new to excel

    Problem is:

    I have cells repeating the values from another sheet (is there a better option than rept?):
    | B | C
    1|
    2| =REPT('Sheet1'!G43, 1) | =REPT('Sheet1'!H43, 1)

    which returns:

    | B | C
    1|
    2| 90 | 95

    and then I try:

    =AVERAGE(B2:C2)

    and I just get #DIV/0.

    Why?

    Is it trying to calculate the underlying formula rather than the value?

  2. #2
    Registered User
    Join Date
    09-01-2012
    Location
    Missouri
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Average of cells with rept formula

    Replace =REPT('Sheet1'!G43, 1) with ='Sheet1'!G43

    I'm not 100% sure that will fix your problem but it works for me.

  3. #3
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Average of cells with rept formula

    or another way is the use of double negative

    ***For numbers only
    =--REPT(A1,2)
    or by multiplication
    =REPT(A1,2)*1
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  4. #4
    Registered User
    Join Date
    09-08-2012
    Location
    endsmix gypsum
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Average of cells with rept formula

    Thanks for the responses

    Unfortunately, they didn't work =\




    djw, I'm still getting a div/0 error after removing the rept function.
    The correct number is displayed, just not calculated in the average.

    95 95 #DIV/0!

    =sheet!G43 =sheet!G44 =AVERAGE(B2:C2)




    vlady, I tried adding double negative before the REPT, but I just get a #value error. and same thing with *1.

    #VALUE! 95 #VALUE!

    =--REPT(sheet!G43,1) =sheet!G44 =AVERAGE(B2:C2)

  5. #5
    Registered User
    Join Date
    09-08-2012
    Location
    endsmix gypsum
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Average of cells with rept formula

    No one knows?

  6. #6
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    964

    Re: Average of cells with rept formula

    why are you using the rept function. if you upload abook we can help better
    The Importance of INDEX - A GUIDE TO INDEX'S OTHER USES
    <--- If a post helps hit the star

+ 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