10-19-2010, 12:02 PM | #1 | ||
Pro Starter
Join Date: Jan 2002
Location: Pittsburgh
|
PING: Excel People
Not sure where I am going wrong on this-
Have a ss with 13 tabs, a Total and each month. Each month will list a name and attendance, with multiple codes. At the end of the row is a sum of each possible code. The Total page will be a running total, year to date, of the codes. Here is the issue I am running into. As names are added (say a new name in October, not used from Jan-Sept), a row is inserted in the month tab and total tab. I'd like to keep the formulas consistent throughout the Total tab, therefore for each name, it will look to all months. In the instances where a new name is added, I am getting an error (as expected) since that name isn't found in some months. What formula can I use to eliminate the error, so that if the name doesn't exist for some months, I insert a "0", then continuing summing with the months I do get a value? I've tried =IF(ISNA(VLOOKUP........)),"0",VLOOKUP(......)), no dice. Same for ISERR and ISERROR. Where am I going wrong?
__________________
"Do you guys play fast tempos with odd time signatures?" "Yeah" "Cool!!" |
||
10-19-2010, 12:06 PM | #2 |
Hattrick Moderator
Join Date: Jan 2003
Location: Pintendre, Qc, Canada
|
have you tried putting the "0" as a simple 0 (without the ""). I think it might be taking your "0" as a text value and then might not be able to add it up, causing the error...
FM
__________________
A Black Belt is a White Belt who refused to give up... follow my story: The real life story of a running frog... |
10-19-2010, 12:10 PM | #3 |
Hattrick Moderator
Join Date: Jan 2003
Location: Pintendre, Qc, Canada
|
dola, otherwise, I don't see what might be the error as I always use the ISERROR function do make sure I don't screw up any formulas...
FM
__________________
A Black Belt is a White Belt who refused to give up... follow my story: The real life story of a running frog... |
10-19-2010, 12:11 PM | #4 |
Pro Starter
Join Date: Jan 2002
Location: Pittsburgh
|
Gold, that was it!
I knew FOFC wouldn't fail me. Thanks
__________________
"Do you guys play fast tempos with odd time signatures?" "Yeah" "Cool!!" |
10-19-2010, 12:13 PM | #5 |
Coordinator
Join Date: Oct 2000
Location: Big Ten Country
|
I generally do my if statement the opposite way:
IF(VLOOKUP(......),VLOOKUP(.......),0) Dunno if that will help, but that way you don't have to use the ISNA function (never used that). EDIT: Never mind! Last edited by Passacaglia : 10-19-2010 at 12:14 PM. |
10-19-2010, 12:17 PM | #6 |
Hattrick Moderator
Join Date: Jan 2003
Location: Pintendre, Qc, Canada
|
good!
FM
__________________
A Black Belt is a White Belt who refused to give up... follow my story: The real life story of a running frog... |
10-19-2010, 12:19 PM | #7 | |
Pro Starter
Join Date: Jan 2002
Location: Pittsburgh
|
Quote:
I think I need the additional one in there (in this case ISERROR was correct, started with ISNA) because I would get an error when the TOTAL tab was looking to January and Joe Schmoe doesn't have any data in that month. Or I just like making extra work for myself.
__________________
"Do you guys play fast tempos with odd time signatures?" "Yeah" "Cool!!" |
|
10-19-2010, 12:20 PM | #8 |
Hattrick Moderator
Join Date: Jan 2003
Location: Pintendre, Qc, Canada
|
might be easier (i.e. shorter in the formula) for you to use a SUMIF function. One per month, then you can skip the IF check because if excel doesn't find it in one tab, it will only sum up to zero...
Check the excel help if you've never used the SUMIF function. FM
__________________
A Black Belt is a White Belt who refused to give up... follow my story: The real life story of a running frog... Last edited by FrogMan : 10-19-2010 at 12:20 PM. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|