![]() |
Counting numeric but not Alpha
I have three columns and two rows (to make this easy). The first row of
cells are blank. The second row uses a VLOOKUP that pulls a number based on a name entered into the first row. The first two columns have a name but the third is left blank (example I am looking up only two names at the time and not three). I want to add the numbers in the second row but if there is no name in the first row the second row shows as #N/A because the VLOOKUP is pulling no data at the moment. I want to sum up the numbers pulled by the VLOOKUP but the formula I have also counts the #N/A which I want it to ignore. Any suggestions? Let me thank you ahead of time. |
Counting numeric but not Alpha
Wrap your VLOOKUP() formula in a 'error trap' that returns 0 instead of #N/A.
As: =IF(ISNA(VLOOKUP(...)),0,VLOOKUP(...)) "Timothy Millar" wrote: I have three columns and two rows (to make this easy). The first row of cells are blank. The second row uses a VLOOKUP that pulls a number based on a name entered into the first row. The first two columns have a name but the third is left blank (example I am looking up only two names at the time and not three). I want to add the numbers in the second row but if there is no name in the first row the second row shows as #N/A because the VLOOKUP is pulling no data at the moment. I want to sum up the numbers pulled by the VLOOKUP but the formula I have also counts the #N/A which I want it to ignore. Any suggestions? Let me thank you ahead of time. |
Counting numeric but not Alpha
Change your VLOOKUP formulas to trap for #N/A
=IF(ISNA(VLOOKUP(G1,$A$1:$F$31,2,FALSE)),"",VLOOKU P(G1,$A$1:$F$31,2,FALSE)) Excel's SUM ignores the "" returned from the ISNA trap. Gord Dibben MS Excel MVP On Mon, 10 May 2010 12:00:03 -0700, Timothy Millar wrote: I have three columns and two rows (to make this easy). The first row of cells are blank. The second row uses a VLOOKUP that pulls a number based on a name entered into the first row. The first two columns have a name but the third is left blank (example I am looking up only two names at the time and not three). I want to add the numbers in the second row but if there is no name in the first row the second row shows as #N/A because the VLOOKUP is pulling no data at the moment. I want to sum up the numbers pulled by the VLOOKUP but the formula I have also counts the #N/A which I want it to ignore. Any suggestions? Let me thank you ahead of time. |
All times are GMT +1. The time now is 10:03 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com