+ Reply to Thread
Results 1 to 4 of 4

Thread: SumIf Column Number

  1. #1
    Registered User
    Join Date
    08-05-2011
    Location
    Toronto
    MS-Off Ver
    Excel 2007
    Posts
    17

    SumIf Column Number

    Hi there!

    Is there a way for me to use a column number in SumIf instead of a direct reference?

    For example, in SUMIF('Sheet2'!$F$2:$Y$600,B12, 'Sheet2'!$Y$2:$Y$600) I want to replace the sum_range ('Sheet2'!$Y$2:$Y$600) to the number that that colum is in the range- in this case 20. So the formula would read SUMIF('Sheet2'!$F$2:$Y$600,B12, 20) (or something like that) and pull the 20th column in the range.

    Thanks!

  2. #2
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636

    Re: SumIf Column Number

    Possibly:

    SUMIF('Sheet2'!$F$2:$F$600,B12, INDEX('Sheet2'!$F$2:$Y$600,0,20))
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  3. #3
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636

    Re: SumIf Column Number

    Possibly:

    SUMIF('Sheet2'!$F$2:$F$600,B12, INDEX('Sheet2'!$F$2:$Y$600,0,20))
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  4. #4
    Registered User
    Join Date
    08-05-2011
    Location
    Toronto
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: SumIf Column Number

    Works perfectly! Thanks a bunch :D

+ 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.2.0