+ Reply to Thread
Results 1 to 3 of 3

Vary column to sum in SumIf

  1. #1
    Steph
    Guest

    Vary column to sum in SumIf

    Hi. Given the following Sumif formula:
    =SUMIF(Data!$F$7:$F$1100,$A16,Data!$AA$7:$AA$1100)

    Column AA is January results, with AB February, AC March, and so on. Above
    each column header (for example, in cell AA1) I have the number of the month
    (1,2,3 etc). Then I have a pulldown validation list in A1 with 1 through 12
    in it. The goal here it to choose a number from the pulldown and have the
    formula update and sumif the proper column. It doesn't seem like that
    complicated of a problem, but I can't figure it out! Thanks for you help!



  2. #2
    Peo Sjoblom
    Guest

    Re: Vary column to sum in SumIf

    One way

    =SUMIF(Data!$F$7:$F$11,$A16,INDEX(Data!$AA$7:$AL$11,,A1))


    --

    Regards,

    Peo Sjoblom

    http://nwexcelsolutions.com



    "Steph" <[email protected]> wrote in message
    news:%[email protected]...
    > Hi. Given the following Sumif formula:
    > =SUMIF(Data!$F$7:$F$1100,$A16,Data!$AA$7:$AA$1100)
    >
    > Column AA is January results, with AB February, AC March, and so on.
    > Above
    > each column header (for example, in cell AA1) I have the number of the
    > month
    > (1,2,3 etc). Then I have a pulldown validation list in A1 with 1 through
    > 12
    > in it. The goal here it to choose a number from the pulldown and have the
    > formula update and sumif the proper column. It doesn't seem like that
    > complicated of a problem, but I can't figure it out! Thanks for you help!
    >




  3. #3
    Max
    Guest

    Re: Vary column to sum in SumIf

    "Steph" wrote:
    > Hi. Given the following Sumif formula:
    > =SUMIF(Data!$F$7:$F$1100,$A16,Data!$AA$7:$AA$1100)
    >
    > Column AA is January results, with AB February, AC March, and so on. Above
    > each column header (for example, in cell AA1) I have the number of the month
    > (1,2,3 etc). Then I have a pulldown validation list in A1 with 1 through 12
    > in it. The goal here it to choose a number from the pulldown and have the
    > formula update and sumif the proper column. It doesn't seem like that
    > complicated of a problem, but I can't figure it out! Thanks for you help!


    Another way ..

    =SUMIF(Data!$F$7:$F$1100,$A16,OFFSET(Data!$AA$7:$AA$1100,,MATCH($A$1,Data!$AA$1:$AL$1,0)-1))
    --
    Max
    Singapore
    http://savefile.com/projects/236895
    xdemechanik
    ---

+ 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