Hey there!
I'm doing some Excel work (in 2007) and I am running into an issue when summing certain VLookup results.
Not sure how to explain this, but anyway what I am doing is looking up multiple values in several columns on the one sheet and summing the values from another sheet. So I look up A1, B1, C1 from Sheet1 and sum the returned numbers from Sheet2, for example (there are 700+ rows and some cells have no information in them, hence the IF formula added in there):
etc, etc.
This works fine as long as there is a result on Sheet2 to be found, but if there is no result I get the dreaded #N/A 🙁 result and I have no idea how to get around that. I tried messing with ISERROR, but it did not seem to work if there were multiple results I was trying to sum.
Does anyone have thoughts on how I can fix this? Let me know if I need to provide more information, or if anything is unclear.
Thanks!
KT
I'm doing some Excel work (in 2007) and I am running into an issue when summing certain VLookup results.
Not sure how to explain this, but anyway what I am doing is looking up multiple values in several columns on the one sheet and summing the values from another sheet. So I look up A1, B1, C1 from Sheet1 and sum the returned numbers from Sheet2, for example (there are 700+ rows and some cells have no information in them, hence the IF formula added in there):
Code:
VLOOKUP(A384,'87 AC F10'!$A$6:$D$1108,4,FALSE)+IF(B384="",0,VLOOKUP(B384,'87 AC F10'!$A$6:$D$1108,4,FALSE))+IF(C384="",0,VLOOKUP(C384,'87 AC F10'!$A$6:$D$1108,4,FALSE))+IF(D384="",0,VLOOKUP(D384,'87 AC F10'!$A$6:$D$1108,4,FALSE))
This works fine as long as there is a result on Sheet2 to be found, but if there is no result I get the dreaded #N/A 🙁 result and I have no idea how to get around that. I tried messing with ISERROR, but it did not seem to work if there were multiple results I was trying to sum.
Does anyone have thoughts on how I can fix this? Let me know if I need to provide more information, or if anything is unclear.
Thanks!
KT