Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 63
Default Remove #n/a in vlookup to sum results

Excel 2007 - I have vlookup formulas in cell c2 and d2. In c2 the result of
the vlookup is 5 and in d2 the results of the vlookup is #n/a. I then need
to sum cell c2 and d2 but I cannot since d2 contains #n/a. How can I
remove/change this so I can sum these two cells together?

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Remove #n/a in vlookup to sum results

Try
=SUMIF(C2:D2,"<#N/A")

You can handle the #na in your VLOOKUP() formula like

=IF(ISNA(vlookupformula),0,vlookupformula)
or
=IF(ISNA(vlookupformula),"",vlookupformula)

If this post helps click Yes
---------------
Jacob Skaria


"duketter" wrote:

Excel 2007 - I have vlookup formulas in cell c2 and d2. In c2 the result of
the vlookup is 5 and in d2 the results of the vlookup is #n/a. I then need
to sum cell c2 and d2 but I cannot since d2 contains #n/a. How can I
remove/change this so I can sum these two cells together?

Thanks!

  #3   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Remove #n/a in vlookup to sum results

You could try something like this:
=SUMIF(C2:D2,"<#N/A")
which will ignore the error
Any good? Hit the YES below
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
---
"duketter" wrote:
Excel 2007 - I have vlookup formulas in cell c2 and d2. In c2 the result of
the vlookup is 5 and in d2 the results of the vlookup is #n/a. I then need
to sum cell c2 and d2 but I cannot since d2 contains #n/a. How can I
remove/change this so I can sum these two cells together?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 703
Default Remove #n/a in vlookup to sum results

Hi

Use an if statement to check for the error like this:

=If(Iserror(Vlookup(.....)),0,Vlookup(…))

Regards,
Per


On 15 Sep., 15:47, duketter
wrote:
Excel 2007 - I have vlookup formulas in cell c2 and d2. *In c2 the result of
the vlookup is 5 and in d2 the results of the vlookup is #n/a. *I then need
to sum cell c2 and d2 but I cannot since d2 contains #n/a. *How can I
remove/change this so I can sum these two cells together?

Thanks!


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Remove #n/a in vlookup to sum results

You could modify your formula so that it returns a 0 (or "") if there was no
match found.

In xl2007 only:
=iferror(vlookup(...),0)
or
=iferror(vlookup(...),"")

But you could use a different formula that =sum(C2:d2) or =c2+d2:
=sumif(C2:D2,"<1e37")

1E37 is just a giant number (1 followed by 37 0's)



duketter wrote:

Excel 2007 - I have vlookup formulas in cell c2 and d2. In c2 the result of
the vlookup is 5 and in d2 the results of the vlookup is #n/a. I then need
to sum cell c2 and d2 but I cannot since d2 contains #n/a. How can I
remove/change this so I can sum these two cells together?

Thanks!


--

Dave Peterson


  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 63
Default Remove #n/a in vlookup to sum results

When I try the ISNA formula I get the following error:
"You've entered too many arguments for this function.

It highlights the zero in my formula

here is my formula:

=IF(ISNA(VLOOKUP(Users!E2,'2nd door pivot
table'!$A$29:$B$50,2,FALSE),0,VLOOKUP(Users!E2,'2n d door pivot
table'!$A$29:$B$50,2,FALSE))




"Jacob Skaria" wrote:

Try
=SUMIF(C2:D2,"<#N/A")

You can handle the #na in your VLOOKUP() formula like

=IF(ISNA(vlookupformula),0,vlookupformula)
or
=IF(ISNA(vlookupformula),"",vlookupformula)

If this post helps click Yes
---------------
Jacob Skaria


"duketter" wrote:

Excel 2007 - I have vlookup formulas in cell c2 and d2. In c2 the result of
the vlookup is 5 and in d2 the results of the vlookup is #n/a. I then need
to sum cell c2 and d2 but I cannot since d2 contains #n/a. How can I
remove/change this so I can sum these two cells together?

Thanks!

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Remove #n/a in vlookup to sum results

Try the below...ISNA() closing braces were missing

=IF(ISNA(VLOOKUP(Users!E2,'2nd door pivot able'!$A$29:$B$50,2,FALSE))
,0,VLOOKUP(Users!E2,'2nd door pivot table'!$A$29:$B$50,2,FALSE))

If this post helps click Yes
---------------
Jacob Skaria


"duketter" wrote:

When I try the ISNA formula I get the following error:
"You've entered too many arguments for this function.

It highlights the zero in my formula

here is my formula:

=IF(ISNA(VLOOKUP(Users!E2,'2nd door pivot
table'!$A$29:$B$50,2,FALSE),0,VLOOKUP(Users!E2,'2n d door pivot
table'!$A$29:$B$50,2,FALSE))




"Jacob Skaria" wrote:

Try
=SUMIF(C2:D2,"<#N/A")

You can handle the #na in your VLOOKUP() formula like

=IF(ISNA(vlookupformula),0,vlookupformula)
or
=IF(ISNA(vlookupformula),"",vlookupformula)

If this post helps click Yes
---------------
Jacob Skaria


"duketter" wrote:

Excel 2007 - I have vlookup formulas in cell c2 and d2. In c2 the result of
the vlookup is 5 and in d2 the results of the vlookup is #n/a. I then need
to sum cell c2 and d2 but I cannot since d2 contains #n/a. How can I
remove/change this so I can sum these two cells together?

Thanks!

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sum the results of a vlookup Gino59 Excel Worksheet Functions 3 July 31st 09 02:52 PM
Remove Negative Signs from Formula Results Holly Excel Worksheet Functions 4 January 15th 08 04:01 AM
Sum results of VLOOKUP Dewayne Excel Worksheet Functions 7 November 28th 07 04:53 PM
Vlookup with two results Luke Excel Discussion (Misc queries) 2 March 22nd 07 05:41 PM
to sum up all value results from VLOOKUP Linn Excel Worksheet Functions 1 March 7th 07 02:45 AM


All times are GMT +1. The time now is 06:48 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"