+ Reply to Thread
Results 1 to 3 of 3

Dynamic Sumif

  1. #1
    Forum Contributor
    Join Date
    03-18-2008
    Posts
    123

    Dynamic Sumif

    Hi,

    Need your help on the sumif function..

    I am trying pick up some values (Marked in grey color) in attached sheet using the Sumif function. Problem I am facing is that it is picking data of a particular month only (Jul-10) in the attached sheet...

    Function that I am using is:

    =IF(B6="","",SUMIF('1'!$A:$A,Review!$A6,'1'!$I:$I))

    I want to make this month ('1'!$I:$I) dynamic, so that whenever a user select month of its choice in the drop down (I2), data for that month gets published...

    Kindly help...

    Thanks in advance..
    Attached Files Attached Files

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Dynamic Sumif

    You can use INDEX/MATCH to get the relevant column. Try this formula in D6 copied down

    =IF(B6="","",SUMIF('1'!$A:$A,Review!$A6,INDEX('1'!$F:$I,0,MATCH(TEXT($I$2,"mmmyy"),'1'!$F$1:$I$1,0))))

    Now if you change I2 the numbers will change to match that month
    Audere est facere

  3. #3
    Forum Contributor
    Join Date
    03-18-2008
    Posts
    123

    Re: Dynamic Sumif

    Thanks a ton for the help..

    it worked..thanks..

+ 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