+ Reply to Thread
Results 1 to 2 of 2

SumIF Problem

  1. #1
    Forum Contributor
    Join Date
    06-21-2010
    Location
    -
    MS-Off Ver
    Excel 2010
    Posts
    1,211

    SumIF Problem

    I'm using this formula to acquire values from another worksheet

    Please Login or Register  to view this content.
    My actual sheet is very complex. The formula is strctured in this way to allow me to drag it both across and down incrementing both row numbers and column letters, so it picks up the relevant values in the relevant cells from around 200 individual worksheets. I simply add each worksheet and name the sheet to the the value of A2, which when dragged down becomes the value in A3, A4, A5 etc in my Summary worksheet.

    My problem is, that I want to be able to adapt this to become a SUMIF formula, so that rather than just picking up a single value, it sums values across a range, so effectively I want to adapt the above to say

    Please Login or Register  to view this content.
    but I need to maintain the same structure, using the "'"&$A2&"'!$1:$1000" to reference each sheet.

    I've attached a greatly simplified sample to try an show what I'm trying to achieve. In cell B2 of the Summary sheet I need, using the same structure, to get the SUM of the values in cells B2:S2 on sheet 6BG, if the value in Row 1 = Red. I could of course take the oirginal formula and simply repeat the formula by adding multiples of it to add the value from B2, C2, D2 etc, but my actual sheet has around 150 columns, which is why I want to use a SUMIF solution. (I'm currently iunable to attach anything as there seems to bre problems with attachments at the moment)

    Is there any way to adapt =IFERROR(IF(INDEX(INDEX(INDIRECT("'"&$A2&"'!$1:$1000"),COLUMN(A1),),ROW($A$2))="Red",INDEX(INDEX(INDIRECT("'"&$A2&"'!$1:$1000"),COLUMN(A1)+1,),ROW($A$2)),""),"") from an 'IF' to a 'SUMIF', I've tried and so far failed.

    Many thanks

  2. #2
    Valued Forum Contributor ratcat's Avatar
    Join Date
    03-07-2008
    Location
    Rural NSW, Australia
    MS-Off Ver
    Vista 2007
    Posts
    1,111

    Re: SumIF Problem

    G'day

    Please Login or Register  to view this content.
    won't work but...

    Please Login or Register  to view this content.
    will

    You cannot sum words but you can count them.
    Have I made you happy ??? If yes, please make me happy by pressing the http://www.excelforum.com/images/buttons/reputation-40b.png Add Reputation button in my post.
    Please don't forget to do the same to other contributors of this forum.

    Thanks
    I don't void confusion, I create it

+ 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