+ Reply to Thread
Results 1 to 3 of 3

Sumproduct, dynamic range

Hybrid View

  1. #1
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,699
    I'm not quite sure why COLUMN() doesn't work but perhaps try using COLUMNS function like this

    =SUMIF(f,"x",OFFSET(f,0,COLUMNS($E37:E37)))/SUMPRODUCT(N(f="x"),N(OFFSET(f,0,COLUMNS($E37:E37))>0))

    in E37 copied across

    It's more robust too because it still gives the correct result if columns are added or deleted

  2. #2
    Registered User
    Join Date
    11-06-2007
    Posts
    48
    Thank you very much, that helped me out significantly.

+ 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