I have a spreadsheet with data for individual dealers.
In “district” columns, I’m calculating district averages with the sums of the raw dealer data. All dealers report one element of the formula (in row 7), but some don’t report the data specific to this formula (in row 38), so I’m using SUMIF to only include data that’s complete.
In this example, the dealer data is in B through H. I is the district column.
=IF(AND(I38″-“,I7>0),I38/(SUMIF(B44:H44,”0″,B7:H7)/$A$2),”-“)
I38 = SUM(B38:H38)
I7 = SUM(B7:H7)
B44 through H44 = IF (B38=”-“, 0,1)…
This works fine, but recently the districts changed. I’d like to just add new district columns to the right of my existing table so I don’t need to change overall structure of all the data.
=IF(AND(AX38”-“,AX7>0),AX38/(SUMIF((B44,D44,K44,L44,M44),”0″,(B7,D7,K7,L7,M7))/$A$2),”-“)
Unfortunately, this generates a #VALUE! error message.
Is there a function I can use to tell Excel to use my list of cell references as a range?
Thanks
Chris