Hi,
I'm using the formula shown below (Excel 2003) to generate some required total figures, but I keep getting the dreaded #VALUE! error even though I can see the correct value being generated in the function arguments box when it is opened.
I know it's giving this error because there are text & numeric values being returned, but how do I get around this annoying problem?
=SUM((INDEX(sysClaimsAll,,1)="ABG")*(INDEX(sysClaimsAll,,6)="Housing")*INDEX(sysClaimsAll,,VLOOKUP($E$19,sysClaimsOffSet,2)))
I'm trying to sum up all the rows that have both 'ABG' (column 1) & 'Housing' (column 6) alongside each other, is there another way to do the above? I've been looking at various examples on the internet and the above is the nearest I've gotten to a working solution, unfortunately I can't quite get it to work as I want.
To explain some of the above formula:
sysClaimsAll:
This my named array, the first six columns hold various text values, all the columns after these hold my various figures.
INDEX(sysClaimsAll,,VLOOKUP($E$19,sysClaimsOffSet,2))
This part of the formula is generating the correct value required and as such can be ignored, it is using a dropdown list (located at cell $E$19) to lookup a column number in a lookup table, this column number is the one that I require totalling.
Thanks in advance!
I'm using the formula shown below (Excel 2003) to generate some required total figures, but I keep getting the dreaded #VALUE! error even though I can see the correct value being generated in the function arguments box when it is opened.
I know it's giving this error because there are text & numeric values being returned, but how do I get around this annoying problem?
=SUM((INDEX(sysClaimsAll,,1)="ABG")*(INDEX(sysClaimsAll,,6)="Housing")*INDEX(sysClaimsAll,,VLOOKUP($E$19,sysClaimsOffSet,2)))
I'm trying to sum up all the rows that have both 'ABG' (column 1) & 'Housing' (column 6) alongside each other, is there another way to do the above? I've been looking at various examples on the internet and the above is the nearest I've gotten to a working solution, unfortunately I can't quite get it to work as I want.
To explain some of the above formula:
sysClaimsAll:
This my named array, the first six columns hold various text values, all the columns after these hold my various figures.
INDEX(sysClaimsAll,,VLOOKUP($E$19,sysClaimsOffSet,2))
This part of the formula is generating the correct value required and as such can be ignored, it is using a dropdown list (located at cell $E$19) to lookup a column number in a lookup table, this column number is the one that I require totalling.
Thanks in advance!