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!
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.
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.
Works perfectly! Thanks a bunch :D
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks