+ Reply to Thread
Results 1 to 3 of 3

SUMPRODUCT: can sum a cell formula result?

  1. #1
    Registered User
    Join Date
    07-25-2008
    Location
    Spain
    Posts
    2

    SUMPRODUCT: can sum a cell formula result?

    I'm totally lack of experience, this is easy for you guys, if someone can help me i need to deliever this report to my boss.

    Cell I27=SUMPRODUCT((MOD(ROW(I10:I25);3)=1)*(I10:I25))

    Cells I10 contains a formula =SUM(D10:H10) and so on...

    so the result of cell I27 is #VALUE! because it reads the formula (=SUM(D10:H10) instead of the result of that formula

    What do i need to do?!

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    I would suggest that there is another cause of that error. It doesn't matter to SUMPRODUCT whether the cells have just numbers or formulas, as long as those formulas don't return errors.

    Your SUMPRODUCT is summing every 3rd cell, i.e. I10, I13, I16 etc. but using that syntax any text in the intermediate cells, i.e. I11, I12 etc. will trigger an error. If there is text in those cells try changing to

    =SUMPRODUCT(--(MOD(ROW(I10:I25);3)=1);I10:I25)

    or, slightly more robust

    =SUMPRODUCT(--(MOD(ROW(I10:I25)-ROW(I10);3)=0);I10:I25)

  3. #3
    Registered User
    Join Date
    07-25-2008
    Location
    Spain
    Posts
    2
    You are right, i didn't though it was due to text because if i replaced the formula with a number it would result ok.
    Well, thanks alot, i need to work alot on excel

+ 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