J
Jeff Polack
I'm trying to use a SUMIF formula to total the values of
each row which is selected because the search criteria
matches an entry in one of several columns:
=SUMIF(A1:G10,X,$H$1:$H$10)
In other words, if the function finds X in B5 it will add
the value in H5 to the total. Same thing if the function
finds X on C5 or D5, etc.
This works fine if X is found in column A. However, if X
is found in column B, SUMIF uses the value found in column
I (i.e., a relative calculation, 1 to the right of H
because B is one to the right of A). This occurs even if
the sum_range is locked so as not to be relative (i.e., as
shown above).
Anyone have any ideas on how to work around this w/o
structuring a SUMIF on each column (e.g., A-G)?
Thanks in advance!
each row which is selected because the search criteria
matches an entry in one of several columns:
=SUMIF(A1:G10,X,$H$1:$H$10)
In other words, if the function finds X in B5 it will add
the value in H5 to the total. Same thing if the function
finds X on C5 or D5, etc.
This works fine if X is found in column A. However, if X
is found in column B, SUMIF uses the value found in column
I (i.e., a relative calculation, 1 to the right of H
because B is one to the right of A). This occurs even if
the sum_range is locked so as not to be relative (i.e., as
shown above).
Anyone have any ideas on how to work around this w/o
structuring a SUMIF on each column (e.g., A-G)?
Thanks in advance!